public static final class TransactionExecutionOptions.Builder extends GeneratedMessageV3.Builder<TransactionExecutionOptions.Builder> implements TransactionExecutionOptionsOrBuilder
Options for executing the transaction.
Protobuf type google.spanner.executor.v1.TransactionExecutionOptions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TransactionExecutionOptions.BuilderImplements
TransactionExecutionOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TransactionExecutionOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
build()
public TransactionExecutionOptions build()
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions |
buildPartial()
public TransactionExecutionOptions buildPartial()
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions |
clear()
public TransactionExecutionOptions.Builder clear()
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
clearField(Descriptors.FieldDescriptor field)
public TransactionExecutionOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TransactionExecutionOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
clearOptimistic()
public TransactionExecutionOptions.Builder clearOptimistic()
Whether optimistic concurrency should be used to execute this transaction.
bool optimistic = 1;
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder | This builder for chaining. |
clone()
public TransactionExecutionOptions.Builder clone()
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
getDefaultInstanceForType()
public TransactionExecutionOptions getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getOptimistic()
public boolean getOptimistic()
Whether optimistic concurrency should be used to execute this transaction.
bool optimistic = 1;
Returns | |
---|---|
Type | Description |
boolean | The optimistic. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TransactionExecutionOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TransactionExecutionOptions.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
mergeFrom(TransactionExecutionOptions other)
public TransactionExecutionOptions.Builder mergeFrom(TransactionExecutionOptions other)
Parameter | |
---|---|
Name | Description |
other | TransactionExecutionOptions |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TransactionExecutionOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TransactionExecutionOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
setOptimistic(boolean value)
public TransactionExecutionOptions.Builder setOptimistic(boolean value)
Whether optimistic concurrency should be used to execute this transaction.
bool optimistic = 1;
Parameter | |
---|---|
Name | Description |
value | boolean The optimistic to set. |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TransactionExecutionOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TransactionExecutionOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TransactionExecutionOptions.Builder |