Class BatchWriteResponse.Builder (6.69.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
Type Description
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
Name Description
values Iterable<? extends java.lang.Integer>

The indexes to add.

Returns
Type Description
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
Name Description
value int

The indexes to add.

Returns
Type Description
BatchWriteResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchWriteResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchWriteResponse.Builder
Overrides

build()

public BatchWriteResponse build()
Returns
Type Description
BatchWriteResponse

buildPartial()

public BatchWriteResponse buildPartial()
Returns
Type Description
BatchWriteResponse

clear()

public BatchWriteResponse.Builder clear()
Returns
Type Description
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
Type Description
BatchWriteResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchWriteResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
BatchWriteResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchWriteResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
BatchWriteResponse.Builder

clone()

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

getDefaultInstanceForType()

public BatchWriteResponse getDefaultInstanceForType()
Returns
Type Description
BatchWriteResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
BatchWriteResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchWriteResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchWriteResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchWriteResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchWriteResponse.Builder
Overrides

mergeFrom(BatchWriteResponse other)

public BatchWriteResponse.Builder mergeFrom(BatchWriteResponse other)
Parameter
Name Description
other BatchWriteResponse
Returns
Type Description
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
Name Description
value com.google.rpc.Status
Returns
Type Description
BatchWriteResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
BatchWriteResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchWriteResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value int

The indexes to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value com.google.rpc.Status
Returns
Type Description
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
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
BatchWriteResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchWriteResponse.Builder
Overrides