public static final class BeginTransactionRequest.Builder extends GeneratedMessageV3.Builder<BeginTransactionRequest.Builder> implements BeginTransactionRequestOrBuilder
The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].Protobuf type
google.spanner.v1.BeginTransactionRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BeginTransactionRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BeginTransactionRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BeginTransactionRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder mergeFrom(BeginTransactionRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BeginTransactionRequest.Builder>
IOException
public String getSession()
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSession
in interface BeginTransactionRequestOrBuilder
public ByteString getSessionBytes()
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSessionBytes
in interface BeginTransactionRequestOrBuilder
public BeginTransactionRequest.Builder setSession(String value)
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The session to set.public BeginTransactionRequest.Builder clearSession()
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public BeginTransactionRequest.Builder setSessionBytes(ByteString value)
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for session to set.public boolean hasOptions()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
hasOptions
in interface BeginTransactionRequestOrBuilder
public TransactionOptions getOptions()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
getOptions
in interface BeginTransactionRequestOrBuilder
public BeginTransactionRequest.Builder setOptions(TransactionOptions value)
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
public BeginTransactionRequest.Builder setOptions(TransactionOptions.Builder builderForValue)
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
public BeginTransactionRequest.Builder mergeOptions(TransactionOptions value)
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
public BeginTransactionRequest.Builder clearOptions()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
public TransactionOptions.Builder getOptionsBuilder()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
public TransactionOptionsOrBuilder getOptionsOrBuilder()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
getOptionsOrBuilder
in interface BeginTransactionRequestOrBuilder
public boolean hasRequestOptions()
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
hasRequestOptions
in interface BeginTransactionRequestOrBuilder
public RequestOptions getRequestOptions()
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
getRequestOptions
in interface BeginTransactionRequestOrBuilder
public BeginTransactionRequest.Builder setRequestOptions(RequestOptions value)
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
public BeginTransactionRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
public BeginTransactionRequest.Builder mergeRequestOptions(RequestOptions value)
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
public BeginTransactionRequest.Builder clearRequestOptions()
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
public RequestOptions.Builder getRequestOptionsBuilder()
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
.google.spanner.v1.RequestOptions request_options = 3;
getRequestOptionsOrBuilder
in interface BeginTransactionRequestOrBuilder
public final BeginTransactionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public final BeginTransactionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.