Package com.google.spanner.v1
Interface BatchWriteResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BatchWriteResponse,BatchWriteResponse.Builder
public interface BatchWriteResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampThe commit timestamp of the transaction that applied this batch.com.google.protobuf.TimestampOrBuilderThe commit timestamp of the transaction that applied this batch.intgetIndexes(int index) The mutation groups applied in this batch.intThe mutation groups applied in this batch.The mutation groups applied in this batch.com.google.rpc.StatusAn `OK` status indicates success.com.google.rpc.StatusOrBuilderAn `OK` status indicates success.booleanThe commit timestamp of the transaction that applied this batch.booleanAn `OK` status indicates success.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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:
- A list containing the indexes.
-
getIndexesCount
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:
- The count of indexes.
-
getIndexes
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;- Parameters:
index- The index of the element to return.- Returns:
- The indexes at the given index.
-
hasStatus
boolean hasStatus()An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2;- Returns:
- Whether the status field is set.
-
getStatus
com.google.rpc.Status getStatus()An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2;- Returns:
- The status.
-
getStatusOrBuilder
com.google.rpc.StatusOrBuilder getStatusOrBuilder()An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2; -
hasCommitTimestamp
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:
- Whether the commitTimestamp field is set.
-
getCommitTimestamp
com.google.protobuf.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:
- The commitTimestamp.
-
getCommitTimestampOrBuilder
com.google.protobuf.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;
-