public final class BeginTransactionRequest extends GeneratedMessageV3 implements BeginTransactionRequestOrBuilder
The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].Protobuf type
google.spanner.v1.BeginTransactionRequest
Modifier and Type | Class and Description |
---|---|
static class |
BeginTransactionRequest.Builder
The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
OPTIONS_FIELD_NUMBER |
static int |
REQUEST_OPTIONS_FIELD_NUMBER |
static int |
SESSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SESSION_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
public static final int REQUEST_OPTIONS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static BeginTransactionRequest parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BeginTransactionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BeginTransactionRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BeginTransactionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BeginTransactionRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BeginTransactionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BeginTransactionRequest parseFrom(InputStream input) throws IOException
IOException
public static BeginTransactionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BeginTransactionRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static BeginTransactionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BeginTransactionRequest parseFrom(CodedInputStream input) throws IOException
IOException
public static BeginTransactionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public BeginTransactionRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static BeginTransactionRequest.Builder newBuilder()
public static BeginTransactionRequest.Builder newBuilder(BeginTransactionRequest prototype)
public BeginTransactionRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected BeginTransactionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static BeginTransactionRequest getDefaultInstance()
public static Parser<BeginTransactionRequest> parser()
public Parser<BeginTransactionRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public BeginTransactionRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.