public static final class RollbackRequest.Builder extends GeneratedMessage.Builder<RollbackRequest.Builder> implements RollbackRequestOrBuilderThe request for Rollback.
Protobuf type google.spanner.v1.RollbackRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RollbackRequest.BuilderImplements
RollbackRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RollbackRequest build()| Returns | |
|---|---|
| Type | Description |
RollbackRequest |
|
buildPartial()
public RollbackRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
RollbackRequest |
|
clear()
public RollbackRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
|
clearSession()
public RollbackRequest.Builder clearSession()Required. The session in which the transaction to roll back is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
This builder for chaining. |
clearTransactionId()
public RollbackRequest.Builder clearTransactionId()Required. The transaction to roll back.
bytes transaction_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RollbackRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RollbackRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSession()
public String getSession()Required. The session in which the transaction to roll back is running.
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 to roll back is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for session. |
getTransactionId()
public ByteString getTransactionId()Required. The transaction to roll back.
bytes transaction_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The transactionId. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RollbackRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RollbackRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
|
mergeFrom(RollbackRequest other)
public RollbackRequest.Builder mergeFrom(RollbackRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
RollbackRequest |
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
|
setSession(String value)
public RollbackRequest.Builder setSession(String value)Required. The session in which the transaction to roll back is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe session to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
This builder for chaining. |
setSessionBytes(ByteString value)
public RollbackRequest.Builder setSessionBytes(ByteString value)Required. The session in which the transaction to roll back is running.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for session to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
This builder for chaining. |
setTransactionId(ByteString value)
public RollbackRequest.Builder setTransactionId(ByteString value)Required. The transaction to roll back.
bytes transaction_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe transactionId to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackRequest.Builder |
This builder for chaining. |