Google BigQuery Storage V1 Client - Class BatchCommitWriteStreamsResponse (1.5.0)

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

Response message for BatchCommitWriteStreams.

Generated from protobuf message google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse

Namespace

Google \ Cloud \ BigQuery \ Storage \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ commit_time Google\Protobuf\Timestamp

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

↳ stream_errors array<Google\Cloud\BigQuery\Storage\V1\StorageError>

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

getCommitTime

The time at which streams were committed in microseconds granularity.

This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCommitTime

clearCommitTime

setCommitTime

The time at which streams were committed in microseconds granularity.

This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getStreamErrors

Stream level error if commit failed. Only streams with error will be in the list.

If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStreamErrors

Stream level error if commit failed. Only streams with error will be in the list.

If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

Parameter
NameDescription
var array<Google\Cloud\BigQuery\Storage\V1\StorageError>
Returns
TypeDescription
$this