Package com.google.spanner.v1
Class BatchWriteResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
com.google.spanner.v1.BatchWriteResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BatchWriteResponseOrBuilder,Cloneable
- Enclosing class:
- BatchWriteResponse
public static final class BatchWriteResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
implements BatchWriteResponseOrBuilder
The result of applying a batch of mutations.Protobuf type
google.spanner.v1.BatchWriteResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllIndexes(Iterable<? extends Integer> values) The mutation groups applied in this batch.addIndexes(int value) The mutation groups applied in this batch.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The commit timestamp of the transaction that applied this batch.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The mutation groups applied in this batch.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) An `OK` status indicates success.clone()com.google.protobuf.TimestampThe commit timestamp of the transaction that applied this batch.com.google.protobuf.Timestamp.BuilderThe commit timestamp of the transaction that applied this batch.com.google.protobuf.TimestampOrBuilderThe commit timestamp of the transaction that applied this batch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetIndexes(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.Status.BuilderAn `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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCommitTimestamp(com.google.protobuf.Timestamp value) The commit timestamp of the transaction that applied this batch.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(BatchWriteResponse other) mergeStatus(com.google.rpc.Status value) An `OK` status indicates success.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCommitTimestamp(com.google.protobuf.Timestamp value) The commit timestamp of the transaction that applied this batch.setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) The commit timestamp of the transaction that applied this batch.setIndexes(int index, int value) The mutation groups applied in this batch.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStatus(com.google.rpc.Status value) An `OK` status indicates success.setStatus(com.google.rpc.Status.Builder builderForValue) An `OK` status indicates success.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
setField
public BatchWriteResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
setRepeatedField
public BatchWriteResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
addRepeatedField
public BatchWriteResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchWriteResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
mergeFrom
public BatchWriteResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchWriteResponse.Builder>- Throws:
IOException
-
getIndexesList
The mutation groups applied in this batch. The values index into the `mutation_groups` field in the corresponding `BatchWriteRequest`.
repeated int32 indexes = 1;- Specified by:
getIndexesListin interfaceBatchWriteResponseOrBuilder- Returns:
- A list containing the indexes.
-
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;- Specified by:
getIndexesCountin interfaceBatchWriteResponseOrBuilder- Returns:
- The count of indexes.
-
getIndexes
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;- Specified by:
getIndexesin interfaceBatchWriteResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The indexes at the given index.
-
setIndexes
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 to set the value at.value- The indexes to set.- Returns:
- This builder for chaining.
-
addIndexes
The mutation groups applied in this batch. The values index into the `mutation_groups` field in the corresponding `BatchWriteRequest`.
repeated int32 indexes = 1;- Parameters:
value- The indexes to add.- Returns:
- This builder for chaining.
-
addAllIndexes
The mutation groups applied in this batch. The values index into the `mutation_groups` field in the corresponding `BatchWriteRequest`.
repeated int32 indexes = 1;- Parameters:
values- The indexes to add.- Returns:
- This builder for chaining.
-
clearIndexes
The mutation groups applied in this batch. The values index into the `mutation_groups` field in the corresponding `BatchWriteRequest`.
repeated int32 indexes = 1;- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2;- Specified by:
hasStatusin interfaceBatchWriteResponseOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public com.google.rpc.Status getStatus()An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2;- Specified by:
getStatusin interfaceBatchWriteResponseOrBuilder- Returns:
- The status.
-
setStatus
An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2; -
setStatus
An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2; -
mergeStatus
An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2; -
clearStatus
An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2; -
getStatusBuilder
public com.google.rpc.Status.Builder getStatusBuilder()An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2; -
getStatusOrBuilder
public com.google.rpc.StatusOrBuilder getStatusOrBuilder()An `OK` status indicates success. Any other status indicates a failure.
.google.rpc.Status status = 2;- Specified by:
getStatusOrBuilderin interfaceBatchWriteResponseOrBuilder
-
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;- Specified by:
hasCommitTimestampin interfaceBatchWriteResponseOrBuilder- Returns:
- Whether the commitTimestamp field is set.
-
getCommitTimestamp
public 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;- Specified by:
getCommitTimestampin interfaceBatchWriteResponseOrBuilder- Returns:
- The commitTimestamp.
-
setCommitTimestamp
The commit timestamp of the transaction that applied this batch. Present if `status` is `OK`, absent otherwise.
.google.protobuf.Timestamp commit_timestamp = 3; -
setCommitTimestamp
public BatchWriteResponse.Builder setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) The commit timestamp of the transaction that applied this batch. Present if `status` is `OK`, absent otherwise.
.google.protobuf.Timestamp commit_timestamp = 3; -
mergeCommitTimestamp
The commit timestamp of the transaction that applied this batch. Present if `status` is `OK`, absent otherwise.
.google.protobuf.Timestamp commit_timestamp = 3; -
clearCommitTimestamp
The commit timestamp of the transaction that applied this batch. Present if `status` is `OK`, absent otherwise.
.google.protobuf.Timestamp commit_timestamp = 3; -
getCommitTimestampBuilder
public com.google.protobuf.Timestamp.Builder getCommitTimestampBuilder()The commit timestamp of the transaction that applied this batch. Present if `status` is `OK`, absent otherwise.
.google.protobuf.Timestamp commit_timestamp = 3; -
getCommitTimestampOrBuilder
public 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;- Specified by:
getCommitTimestampOrBuilderin interfaceBatchWriteResponseOrBuilder
-
setUnknownFields
public final BatchWriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-
mergeUnknownFields
public final BatchWriteResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteResponse.Builder>
-