Google BigQuery Storage V1 Client - Class AppendRowsResponse (1.8.0)

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

Response message for AppendRows.

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

Namespace

Google \ Cloud \ BigQuery \ Storage \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ append_result Google\Cloud\BigQuery\Storage\V1\AppendRowsResponse\AppendResult

Result if the append is successful.

↳ error Google\Rpc\Status

Error returned when problems were encountered. If present, it indicates rows were not accepted into the system. Users can retry or continue with other append requests within the same connection. Additional information about error signalling: ALREADY_EXISTS: Happens when an append specified an offset, and the backend already has received data at this offset. Typically encountered in retry scenarios, and can be ignored. OUT_OF_RANGE: Returned when the specified offset in the stream is beyond the current end of the stream. INVALID_ARGUMENT: Indicates a malformed request or data. ABORTED: Request processing is aborted because of prior failures. The request can be retried if previous failure is addressed. INTERNAL: Indicates server side error(s) that can be retried.

↳ updated_schema Google\Cloud\BigQuery\Storage\V1\TableSchema

If backend detects a schema update, pass it to user so that user can use it to input new type of message. It will be empty when no schema updates have occurred.

↳ row_errors array<Google\Cloud\BigQuery\Storage\V1\RowError>

If a request failed due to corrupted rows, no rows in the batch will be appended. The API will return row level error info, so that the caller can remove the bad rows and retry the request.

↳ write_stream string

The target of the append operation. Matches the write_stream in the corresponding request.

getAppendResult

Result if the append is successful.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\AppendRowsResponse\AppendResult|null

hasAppendResult

setAppendResult

Result if the append is successful.

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

getError

Error returned when problems were encountered. If present, it indicates rows were not accepted into the system.

Users can retry or continue with other append requests within the same connection. Additional information about error signalling: ALREADY_EXISTS: Happens when an append specified an offset, and the backend already has received data at this offset. Typically encountered in retry scenarios, and can be ignored. OUT_OF_RANGE: Returned when the specified offset in the stream is beyond the current end of the stream. INVALID_ARGUMENT: Indicates a malformed request or data. ABORTED: Request processing is aborted because of prior failures. The request can be retried if previous failure is addressed. INTERNAL: Indicates server side error(s) that can be retried.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

setError

Error returned when problems were encountered. If present, it indicates rows were not accepted into the system.

Users can retry or continue with other append requests within the same connection. Additional information about error signalling: ALREADY_EXISTS: Happens when an append specified an offset, and the backend already has received data at this offset. Typically encountered in retry scenarios, and can be ignored. OUT_OF_RANGE: Returned when the specified offset in the stream is beyond the current end of the stream. INVALID_ARGUMENT: Indicates a malformed request or data. ABORTED: Request processing is aborted because of prior failures. The request can be retried if previous failure is addressed. INTERNAL: Indicates server side error(s) that can be retried.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getUpdatedSchema

If backend detects a schema update, pass it to user so that user can use it to input new type of message. It will be empty when no schema updates have occurred.

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

hasUpdatedSchema

clearUpdatedSchema

setUpdatedSchema

If backend detects a schema update, pass it to user so that user can use it to input new type of message. It will be empty when no schema updates have occurred.

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

getRowErrors

If a request failed due to corrupted rows, no rows in the batch will be appended. The API will return row level error info, so that the caller can remove the bad rows and retry the request.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRowErrors

If a request failed due to corrupted rows, no rows in the batch will be appended. The API will return row level error info, so that the caller can remove the bad rows and retry the request.

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

getWriteStream

The target of the append operation. Matches the write_stream in the corresponding request.

Returns
TypeDescription
string

setWriteStream

The target of the append operation. Matches the write_stream in the corresponding request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResponse

Returns
TypeDescription
string