public final class BeginTransactionRequest extends GeneratedMessageV3 implements BeginTransactionRequestOrBuilder
The request for
BeginTransaction.
Protobuf type google.spanner.v1.BeginTransactionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REQUEST_OPTIONS_FIELD_NUMBER
public static final int REQUEST_OPTIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static BeginTransactionRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BeginTransactionRequest.Builder newBuilder()
newBuilder(BeginTransactionRequest prototype)
public static BeginTransactionRequest.Builder newBuilder(BeginTransactionRequest prototype)
public static BeginTransactionRequest parseDelimitedFrom(InputStream input)
public static BeginTransactionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BeginTransactionRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BeginTransactionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BeginTransactionRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BeginTransactionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BeginTransactionRequest parseFrom(CodedInputStream input)
public static BeginTransactionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BeginTransactionRequest parseFrom(InputStream input)
public static BeginTransactionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BeginTransactionRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BeginTransactionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BeginTransactionRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public BeginTransactionRequest getDefaultInstanceForType()
getOptions()
public TransactionOptions getOptions()
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];
getParserForType()
public Parser<BeginTransactionRequest> getParserForType()
Overrides
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;
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;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BeginTransactionRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BeginTransactionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public BeginTransactionRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides