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 \ AppendRowsRequestMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
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 |