Cloud Spanner V1 Client - Class BatchWriteRequest (1.104.1)

Reference documentation and code samples for the Cloud Spanner V1 Client class BatchWriteRequest.

The request for BatchWrite.

Generated from protobuf message google.spanner.v1.BatchWriteRequest

Namespace

Google \ Cloud \ Spanner \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

โ†ณ session string

Required. The session in which the batch request is to be run.

โ†ณ request_options RequestOptions

Common options for this request.

โ†ณ mutation_groups array<BatchWriteRequest\MutationGroup>

Required. The groups of mutations to be applied.

โ†ณ exclude_txn_from_change_streams bool

Optional. If you don't set the exclude_txn_from_change_streams option or if it's set to false, then any change streams monitoring columns modified by transactions will capture the updates made within that transaction.

getSession

Required. The session in which the batch request is to be run.

Returns
Type Description
string

setSession

Required. The session in which the batch request is to be run.

Parameter
Name Description
var string
Returns
Type Description
$this

getRequestOptions

Common options for this request.

Returns
Type Description
RequestOptions|null

hasRequestOptions

clearRequestOptions

setRequestOptions

Common options for this request.

Parameter
Name Description
var RequestOptions
Returns
Type Description
$this

getMutationGroups

Required. The groups of mutations to be applied.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMutationGroups

Required. The groups of mutations to be applied.

Parameter
Name Description
var array<BatchWriteRequest\MutationGroup>
Returns
Type Description
$this

getExcludeTxnFromChangeStreams

Optional. If you don't set the exclude_txn_from_change_streams option or if it's set to false, then any change streams monitoring columns modified by transactions will capture the updates made within that transaction.

Returns
Type Description
bool

setExcludeTxnFromChangeStreams

Optional. If you don't set the exclude_txn_from_change_streams option or if it's set to false, then any change streams monitoring columns modified by transactions will capture the updates made within that transaction.

Parameter
Name Description
var bool
Returns
Type Description
$this

static::build

Parameters
Name Description
session string

Required. The session in which the batch request is to be run. Please see SpannerClient::sessionName() for help formatting this field.

mutationGroups array<BatchWriteRequest\MutationGroup>

Required. The groups of mutations to be applied.

Returns
Type Description
BatchWriteRequest