Package com.google.spanner.v1
Interface BatchWriteRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BatchWriteRequest,BatchWriteRequest.Builder
public interface BatchWriteRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.getMutationGroups(int index) Required.intRequired.Required.getMutationGroupsOrBuilder(int index) Required.List<? extends BatchWriteRequest.MutationGroupOrBuilder>Required.Common options for this request.Common options for this request.Required.com.google.protobuf.ByteStringRequired.booleanCommon options for this request.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSession
String getSession()Required. The session in which the batch request is to be run.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The session.
-
getSessionBytes
com.google.protobuf.ByteString getSessionBytes()Required. The session in which the batch request is to be run.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for session.
-
hasRequestOptions
boolean hasRequestOptions()Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;- Returns:
- Whether the requestOptions field is set.
-
getRequestOptions
RequestOptions getRequestOptions()Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;- Returns:
- The requestOptions.
-
getRequestOptionsOrBuilder
RequestOptionsOrBuilder getRequestOptionsOrBuilder()Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3; -
getMutationGroupsList
List<BatchWriteRequest.MutationGroup> getMutationGroupsList()Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getMutationGroups
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getMutationGroupsCount
int getMutationGroupsCount()Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getMutationGroupsOrBuilderList
List<? extends BatchWriteRequest.MutationGroupOrBuilder> getMutationGroupsOrBuilderList()Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getMutationGroupsOrBuilder
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getExcludeTxnFromChangeStreams
boolean getExcludeTxnFromChangeStreams()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.
bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The excludeTxnFromChangeStreams.
-