public static final class BeginTransactionRequest.Builder extends GeneratedMessageV3.Builder<BeginTransactionRequest.Builder> implements BeginTransactionRequestOrBuilder
The request for BeginTransaction.
Protobuf type google.spanner.v1.BeginTransactionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BeginTransactionRequest build()
buildPartial()
public BeginTransactionRequest buildPartial()
clear()
public BeginTransactionRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BeginTransactionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BeginTransactionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearOptions()
public BeginTransactionRequest.Builder clearOptions()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
clearRequestOptions()
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;
clearSession()
public BeginTransactionRequest.Builder clearSession()
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public BeginTransactionRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public BeginTransactionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getOptions()
public TransactionOptions getOptions()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
getOptionsBuilder()
public TransactionOptions.Builder getOptionsBuilder()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
getOptionsOrBuilder()
public TransactionOptionsOrBuilder getOptionsOrBuilder()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
getRequestOptions()
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;
getRequestOptionsBuilder()
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;
getRequestOptionsOrBuilder()
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;
getSession()
public String getSession()
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The session.
|
getSessionBytes()
public ByteString getSessionBytes()
Required. The session in which the transaction runs.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for session.
|
hasOptions()
public boolean hasOptions()
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the options field is set.
|
hasRequestOptions()
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;
Returns |
---|
Type | Description |
boolean | Whether the requestOptions field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public BeginTransactionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BeginTransactionRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(BeginTransactionRequest other)
public BeginTransactionRequest.Builder mergeFrom(BeginTransactionRequest other)
mergeOptions(TransactionOptions value)
public BeginTransactionRequest.Builder mergeOptions(TransactionOptions value)
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
mergeRequestOptions(RequestOptions value)
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setOptions(TransactionOptions value)
public BeginTransactionRequest.Builder setOptions(TransactionOptions value)
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
setOptions(TransactionOptions.Builder builderForValue)
public BeginTransactionRequest.Builder setOptions(TransactionOptions.Builder builderForValue)
Required. Options for the new transaction.
.google.spanner.v1.TransactionOptions options = 2 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BeginTransactionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRequestOptions(RequestOptions value)
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;
setRequestOptions(RequestOptions.Builder builderForValue)
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;
setSession(String value)
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) = { ... }
Parameter |
---|
Name | Description |
value | String
The session to set.
|
setSessionBytes(ByteString value)
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) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for session to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides