Google Cloud Spanner v1 API - Class BatchWriteRequest (5.0.0-beta04)

public sealed class BatchWriteRequest : IMessage<BatchWriteRequest>, IEquatable<BatchWriteRequest>, IDeepCloneable<BatchWriteRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Spanner v1 API class BatchWriteRequest.

The request for [BatchWrite][google.spanner.v1.Spanner.BatchWrite].

Inheritance

object > BatchWriteRequest

Namespace

Google.Cloud.Spanner.V1

Assembly

Google.Cloud.Spanner.V1.dll

Constructors

BatchWriteRequest()

public BatchWriteRequest()

BatchWriteRequest(BatchWriteRequest)

public BatchWriteRequest(BatchWriteRequest other)
Parameter
Name Description
other BatchWriteRequest

Properties

ExcludeTxnFromChangeStreams

public bool ExcludeTxnFromChangeStreams { get; set; }

Optional. When exclude_txn_from_change_streams is set to true:

  • Mutations from all transactions in this batch write operation will not be recorded in change streams with DDL option allow_txn_exclusion=true that are tracking columns modified by these transactions.
  • Mutations from all transactions in this batch write operation will be recorded in change streams with DDL option allow_txn_exclusion=false or not set that are tracking columns modified by these transactions.

When exclude_txn_from_change_streams is set to false or not set, mutations from all transactions in this batch write operation will be recorded in all change streams that are tracking columns modified by these transactions.

Property Value
Type Description
bool

MutationGroups

public RepeatedField<BatchWriteRequest.Types.MutationGroup> MutationGroups { get; }

Required. The groups of mutations to be applied.

Property Value
Type Description
RepeatedFieldBatchWriteRequestTypesMutationGroup

RequestOptions

public RequestOptions RequestOptions { get; set; }

Common options for this request.

Property Value
Type Description
RequestOptions

Session

public string Session { get; set; }

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

Property Value
Type Description
string

SessionAsSessionName

public SessionName SessionAsSessionName { get; set; }

SessionName-typed view over the Session resource name property.

Property Value
Type Description
SessionName