Google BigQuery Storage V1 Client - Class ProtoData (1.3.2)

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

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

Proto schema used to serialize the data. This value only needs to be provided as part of the first request on a gRPC network connection, and will be ignored for subsequent requests on the connection.

↳ 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

Proto schema used to serialize the data. This value only needs to be provided as part of the first request on a gRPC network connection, and will be ignored for subsequent requests on the connection.

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

hasWriterSchema

clearWriterSchema

setWriterSchema

Proto schema used to serialize the data. This value only needs to be provided as part of the first request on a gRPC network connection, and will be ignored for subsequent requests on the connection.

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