Class BatchWriteResponse.Builder (6.50.0)

public static final class BatchWriteResponse.Builder extends GeneratedMessageV3.Builder<BatchWriteResponse.Builder> implements BatchWriteResponseOrBuilder

The result of applying a batch of mutations.

Protobuf type google.spanner.v1.BatchWriteResponse

Static Methods

getDescriptor()

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

Methods

addAllIndexes(Iterable<? extends Integer> values)

public BatchWriteResponse.Builder addAllIndexes(Iterable<? extends Integer> values)

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
valuesIterable<? extends java.lang.Integer>

The indexes to add.

Returns
TypeDescription
BatchWriteResponse.Builder

This builder for chaining.

addIndexes(int value)

public BatchWriteResponse.Builder addIndexes(int value)

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
valueint

The indexes to add.

Returns
TypeDescription
BatchWriteResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchWriteResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

build()

public BatchWriteResponse build()
Returns
TypeDescription
BatchWriteResponse

buildPartial()

public BatchWriteResponse buildPartial()
Returns
TypeDescription
BatchWriteResponse

clear()

public BatchWriteResponse.Builder clear()
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

clearCommitTimestamp()

public BatchWriteResponse.Builder clearCommitTimestamp()

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
BatchWriteResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchWriteResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

clearIndexes()

public BatchWriteResponse.Builder 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
TypeDescription
BatchWriteResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchWriteResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

clearStatus()

public BatchWriteResponse.Builder clearStatus()

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

.google.rpc.Status status = 2;

Returns
TypeDescription
BatchWriteResponse.Builder

clone()

public BatchWriteResponse.Builder clone()
Returns
TypeDescription
BatchWriteResponse.Builder
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.

getCommitTimestampBuilder()

public 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;

Returns
TypeDescription
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

getStatusBuilder()

public Status.Builder getStatusBuilder()

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

.google.rpc.Status status = 2;

Returns
TypeDescription
com.google.rpc.Status.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCommitTimestamp(Timestamp value)

public BatchWriteResponse.Builder mergeCommitTimestamp(Timestamp value)

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

.google.protobuf.Timestamp commit_timestamp = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchWriteResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchWriteResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchWriteResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

mergeFrom(BatchWriteResponse other)

public BatchWriteResponse.Builder mergeFrom(BatchWriteResponse other)
Parameter
NameDescription
otherBatchWriteResponse
Returns
TypeDescription
BatchWriteResponse.Builder

mergeStatus(Status value)

public BatchWriteResponse.Builder mergeStatus(Status value)

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

.google.rpc.Status status = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
BatchWriteResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

setCommitTimestamp(Timestamp value)

public BatchWriteResponse.Builder setCommitTimestamp(Timestamp value)

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

.google.protobuf.Timestamp commit_timestamp = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchWriteResponse.Builder

setCommitTimestamp(Timestamp.Builder builderForValue)

public BatchWriteResponse.Builder setCommitTimestamp(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchWriteResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchWriteResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

setIndexes(int index, int value)

public BatchWriteResponse.Builder setIndexes(int index, int value)

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

repeated int32 indexes = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The indexes to set.

Returns
TypeDescription
BatchWriteResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchWriteResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides

setStatus(Status value)

public BatchWriteResponse.Builder setStatus(Status value)

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

.google.rpc.Status status = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
BatchWriteResponse.Builder

setStatus(Status.Builder builderForValue)

public BatchWriteResponse.Builder setStatus(Status.Builder builderForValue)

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

.google.rpc.Status status = 2;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
BatchWriteResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchWriteResponse.Builder
Overrides