Class BatchWriteResponse (6.57.0)

public final class BatchWriteResponse extends GeneratedMessageV3 implements BatchWriteResponseOrBuilder

The result of applying a batch of mutations.

Protobuf type google.spanner.v1.BatchWriteResponse

Static Fields

COMMIT_TIMESTAMP_FIELD_NUMBER

public static final int COMMIT_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

INDEXES_FIELD_NUMBER

public static final int INDEXES_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchWriteResponse getDefaultInstance()
Returns
TypeDescription
BatchWriteResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BatchWriteResponse.Builder newBuilder()
Returns
TypeDescription
BatchWriteResponse.Builder

newBuilder(BatchWriteResponse prototype)

public static BatchWriteResponse.Builder newBuilder(BatchWriteResponse prototype)
Parameter
NameDescription
prototypeBatchWriteResponse
Returns
TypeDescription
BatchWriteResponse.Builder

parseDelimitedFrom(InputStream input)

public static BatchWriteResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchWriteResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchWriteResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchWriteResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchWriteResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchWriteResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchWriteResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchWriteResponse> parser()
Returns
TypeDescription
Parser<BatchWriteResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCommitTimestamp()

public Timestamp getCommitTimestamp()

The commit timestamp of the transaction that applied this batch. Present if status is OK, absent otherwise.

.google.protobuf.Timestamp commit_timestamp = 3;

Returns
TypeDescription
Timestamp

The commitTimestamp.

getCommitTimestampOrBuilder()

public TimestampOrBuilder getCommitTimestampOrBuilder()

The commit timestamp of the transaction that applied this batch. Present if status is OK, absent otherwise.

.google.protobuf.Timestamp commit_timestamp = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public BatchWriteResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchWriteResponse

getIndexes(int index)

public int getIndexes(int index)

The mutation groups applied in this batch. The values index into the mutation_groups field in the corresponding BatchWriteRequest.

repeated int32 indexes = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The indexes at the given index.

getIndexesCount()

public int getIndexesCount()

The mutation groups applied in this batch. The values index into the mutation_groups field in the corresponding BatchWriteRequest.

repeated int32 indexes = 1;

Returns
TypeDescription
int

The count of indexes.

getIndexesList()

public List<Integer> getIndexesList()

The mutation groups applied in this batch. The values index into the mutation_groups field in the corresponding BatchWriteRequest.

repeated int32 indexes = 1;

Returns
TypeDescription
List<Integer>

A list containing the indexes.

getParserForType()

public Parser<BatchWriteResponse> getParserForType()
Returns
TypeDescription
Parser<BatchWriteResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStatus()

public Status getStatus()

An OK status indicates success. Any other status indicates a failure.

.google.rpc.Status status = 2;

Returns
TypeDescription
com.google.rpc.Status

The status.

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

An OK status indicates success. Any other status indicates a failure.

.google.rpc.Status status = 2;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

hasCommitTimestamp()

public boolean hasCommitTimestamp()

The commit timestamp of the transaction that applied this batch. Present if status is OK, absent otherwise.

.google.protobuf.Timestamp commit_timestamp = 3;

Returns
TypeDescription
boolean

Whether the commitTimestamp field is set.

hasStatus()

public boolean hasStatus()

An OK status indicates success. Any other status indicates a failure.

.google.rpc.Status status = 2;

Returns
TypeDescription
boolean

Whether the status field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BatchWriteResponse.Builder newBuilderForType()
Returns
TypeDescription
BatchWriteResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchWriteResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BatchWriteResponse.Builder toBuilder()
Returns
TypeDescription
BatchWriteResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException