Google BigQuery Storage V1 Client - Class ProtoData (2.0.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
Name Description
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
Type Description
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
Name Description
var Google\Cloud\BigQuery\Storage\V1\ProtoSchema
Returns
Type Description
$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
Type Description
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
Name Description
var Google\Cloud\BigQuery\Storage\V1\ProtoRows
Returns
Type Description
$this