Package com.google.spanner.executor.v1
Class StartTransactionAction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.StartTransactionAction
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StartTransactionActionOrBuilder,Serializable
public final class StartTransactionAction
extends com.google.protobuf.GeneratedMessageV3
implements StartTransactionActionOrBuilder
StartTransactionAction defines an action of initializing a transaction.Protobuf type
google.spanner.executor.v1.StartTransactionAction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStartTransactionAction defines an action of initializing a transaction.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanConcurrency 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 StartTransactionActionstatic final com.google.protobuf.Descriptors.DescriptorExecution options (e.g., whether transaction is opaque, optimistic).Execution options (e.g., whether transaction is opaque, optimistic).com.google.protobuf.Parser<StartTransactionAction>intgetTable(int index) 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).inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(StartTransactionAction prototype) protected StartTransactionAction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static StartTransactionActionparseDelimitedFrom(InputStream input) static StartTransactionActionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StartTransactionActionparseFrom(byte[] data) static StartTransactionActionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StartTransactionActionparseFrom(com.google.protobuf.ByteString data) static StartTransactionActionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StartTransactionActionparseFrom(com.google.protobuf.CodedInputStream input) static StartTransactionActionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StartTransactionActionparseFrom(InputStream input) static StartTransactionActionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StartTransactionActionparseFrom(ByteBuffer data) static StartTransactionActionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StartTransactionAction>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONCURRENCY_FIELD_NUMBER
public static final int CONCURRENCY_FIELD_NUMBER- See Also:
-
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER- See Also:
-
TRANSACTION_SEED_FIELD_NUMBER
public static final int TRANSACTION_SEED_FIELD_NUMBER- See Also:
-
EXECUTION_OPTIONS_FIELD_NUMBER
public static final int EXECUTION_OPTIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
getExecutionOptionsOrBuilder
Execution options (e.g., whether transaction is opaque, optimistic).
optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;- Specified by:
getExecutionOptionsOrBuilderin interfaceStartTransactionActionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static StartTransactionAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StartTransactionAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StartTransactionAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StartTransactionAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StartTransactionAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StartTransactionAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StartTransactionAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StartTransactionAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StartTransactionAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StartTransactionAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StartTransactionAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-