Package com.google.spanner.executor.v1
Class StartTransactionAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
com.google.spanner.executor.v1.StartTransactionAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StartTransactionActionOrBuilder,Cloneable
- Enclosing class:
- StartTransactionAction
public static final class StartTransactionAction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
implements StartTransactionActionOrBuilder
StartTransactionAction defines an action of initializing a transaction.Protobuf type
google.spanner.executor.v1.StartTransactionAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllTable(Iterable<? extends TableMetadata> values) Metadata about tables and columns that will be involved in this transaction.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTable(int index, TableMetadata value) Metadata about tables and columns that will be involved in this transaction.addTable(int index, TableMetadata.Builder builderForValue) Metadata about tables and columns that will be involved in this transaction.addTable(TableMetadata value) Metadata about tables and columns that will be involved in this transaction.addTable(TableMetadata.Builder builderForValue) Metadata about tables and columns that will be involved in this transaction.Metadata about tables and columns that will be involved in this transaction.addTableBuilder(int index) Metadata about tables and columns that will be involved in this transaction.build()clear()Concurrency is for read-only transactions and must be omitted for read-write transactions.Execution options (e.g., whether transaction is opaque, optimistic).clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Metadata about tables and columns that will be involved in this transaction.Transaction_seed contains workid and op pair for this transaction, used for testing.clone()Concurrency is for read-only transactions and must be omitted for read-write transactions.Concurrency is for read-only transactions and must be omitted for read-write transactions.Concurrency is for read-only transactions and must be omitted for read-write transactions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExecution options (e.g., whether transaction is opaque, optimistic).Execution options (e.g., whether transaction is opaque, optimistic).Execution options (e.g., whether transaction is opaque, optimistic).getTable(int index) Metadata about tables and columns that will be involved in this transaction.getTableBuilder(int index) Metadata about tables and columns that will be involved in this transaction.Metadata about tables and columns that will be involved in this transaction.intMetadata about tables and columns that will be involved in this transaction.Metadata about tables and columns that will be involved in this transaction.getTableOrBuilder(int index) Metadata about tables and columns that will be involved in this transaction.List<? extends TableMetadataOrBuilder>Metadata about tables and columns that will be involved in this transaction.Transaction_seed contains workid and op pair for this transaction, used for testing.com.google.protobuf.ByteStringTransaction_seed contains workid and op pair for this transaction, used for testing.booleanConcurrency is for read-only transactions and must be omitted for read-write transactions.booleanExecution options (e.g., whether transaction is opaque, optimistic).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeConcurrency(Concurrency value) Concurrency is for read-only transactions and must be omitted for read-write transactions.Execution options (e.g., whether transaction is opaque, optimistic).mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(StartTransactionAction other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeTable(int index) Metadata about tables and columns that will be involved in this transaction.setConcurrency(Concurrency value) Concurrency is for read-only transactions and must be omitted for read-write transactions.setConcurrency(Concurrency.Builder builderForValue) Concurrency is for read-only transactions and must be omitted for read-write transactions.Execution options (e.g., whether transaction is opaque, optimistic).setExecutionOptions(TransactionExecutionOptions.Builder builderForValue) Execution options (e.g., whether transaction is opaque, optimistic).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTable(int index, TableMetadata value) Metadata about tables and columns that will be involved in this transaction.setTable(int index, TableMetadata.Builder builderForValue) Metadata about tables and columns that will be involved in this transaction.setTransactionSeed(String value) Transaction_seed contains workid and op pair for this transaction, used for testing.setTransactionSeedBytes(com.google.protobuf.ByteString value) Transaction_seed contains workid and op pair for this transaction, used for testing.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
setField
public StartTransactionAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
clearField
public StartTransactionAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
clearOneof
public StartTransactionAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
setRepeatedField
public StartTransactionAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
addRepeatedField
public StartTransactionAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StartTransactionAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
mergeFrom
public StartTransactionAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StartTransactionAction.Builder>- Throws:
IOException
-
hasConcurrency
public boolean hasConcurrency()Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1;- Specified by:
hasConcurrencyin interfaceStartTransactionActionOrBuilder- Returns:
- Whether the concurrency field is set.
-
getConcurrency
Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1;- Specified by:
getConcurrencyin interfaceStartTransactionActionOrBuilder- Returns:
- The concurrency.
-
setConcurrency
Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1; -
setConcurrency
Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1; -
mergeConcurrency
Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1; -
clearConcurrency
Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1; -
getConcurrencyBuilder
Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1; -
getConcurrencyOrBuilder
Concurrency is for read-only transactions and must be omitted for read-write transactions.
optional .google.spanner.executor.v1.Concurrency concurrency = 1;- Specified by:
getConcurrencyOrBuilderin interfaceStartTransactionActionOrBuilder
-
getTableList
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2;- Specified by:
getTableListin interfaceStartTransactionActionOrBuilder
-
getTableCount
public int getTableCount()Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2;- Specified by:
getTableCountin interfaceStartTransactionActionOrBuilder
-
getTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2;- Specified by:
getTablein interfaceStartTransactionActionOrBuilder
-
setTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
setTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
addTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
addTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
addTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
addTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
addAllTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
clearTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
removeTable
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
getTableBuilder
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
getTableOrBuilder
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2;- Specified by:
getTableOrBuilderin interfaceStartTransactionActionOrBuilder
-
getTableOrBuilderList
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2;- Specified by:
getTableOrBuilderListin interfaceStartTransactionActionOrBuilder
-
addTableBuilder
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
addTableBuilder
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
getTableBuilderList
Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
repeated .google.spanner.executor.v1.TableMetadata table = 2; -
getTransactionSeed
Transaction_seed contains workid and op pair for this transaction, used for testing.
string transaction_seed = 3;- Specified by:
getTransactionSeedin interfaceStartTransactionActionOrBuilder- Returns:
- The transactionSeed.
-
getTransactionSeedBytes
public com.google.protobuf.ByteString getTransactionSeedBytes()Transaction_seed contains workid and op pair for this transaction, used for testing.
string transaction_seed = 3;- Specified by:
getTransactionSeedBytesin interfaceStartTransactionActionOrBuilder- Returns:
- The bytes for transactionSeed.
-
setTransactionSeed
Transaction_seed contains workid and op pair for this transaction, used for testing.
string transaction_seed = 3;- Parameters:
value- The transactionSeed to set.- Returns:
- This builder for chaining.
-
clearTransactionSeed
Transaction_seed contains workid and op pair for this transaction, used for testing.
string transaction_seed = 3;- Returns:
- This builder for chaining.
-
setTransactionSeedBytes
Transaction_seed contains workid and op pair for this transaction, used for testing.
string transaction_seed = 3;- Parameters:
value- The bytes for transactionSeed to set.- Returns:
- This builder for chaining.
-
hasExecutionOptions
public boolean hasExecutionOptions()Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;- Specified by:
hasExecutionOptionsin interfaceStartTransactionActionOrBuilder- Returns:
- Whether the executionOptions field is set.
-
getExecutionOptions
Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;- Specified by:
getExecutionOptionsin interfaceStartTransactionActionOrBuilder- Returns:
- The executionOptions.
-
setExecutionOptions
Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; -
setExecutionOptions
public StartTransactionAction.Builder setExecutionOptions(TransactionExecutionOptions.Builder builderForValue) Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; -
mergeExecutionOptions
Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; -
clearExecutionOptions
Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; -
getExecutionOptionsBuilder
Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; -
getExecutionOptionsOrBuilder
Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;- Specified by:
getExecutionOptionsOrBuilderin interfaceStartTransactionActionOrBuilder
-
setUnknownFields
public final StartTransactionAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-
mergeUnknownFields
public final StartTransactionAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StartTransactionAction.Builder>
-