Google BigQuery Storage V1 Client - Class ProtoData (1.6.0)

Reference documentation and code samples for the Google BigQuery Storage V1 Client class ProtoData.

ProtoData contains the data rows and schema when constructing append requests.

Generated from protobuf message google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData

Namespace

Google \ Cloud \ BigQuery \ Storage \ V1 \ AppendRowsRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ writer_schema Google\Cloud\BigQuery\Storage\V1\ProtoSchema

The protocol buffer schema used to serialize the data. Provide this value whenever: * You send the first request of an RPC connection. * You change the input schema. * You specify a new destination table.

↳ rows Google\Cloud\BigQuery\Storage\V1\ProtoRows

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

getWriterSchema

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.
Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\ProtoSchema|null

hasWriterSchema

clearWriterSchema

setWriterSchema

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.
Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\ProtoSchema
Returns
TypeDescription
$this

getRows

Serialized row data in protobuf message format.

Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\ProtoRows|null

hasRows

clearRows

setRows

Serialized row data in protobuf message format.

Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\ProtoRows
Returns
TypeDescription
$this