Class CommitResponse.Builder (2.18.5)

public static final class CommitResponse.Builder extends GeneratedMessageV3.Builder<CommitResponse.Builder> implements CommitResponseOrBuilder

The response for Datastore.Commit.

Protobuf type google.datastore.v1.CommitResponse

Static Methods

getDescriptor()

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

Methods

addAllMutationResults(Iterable<? extends MutationResult> values)

public CommitResponse.Builder addAllMutationResults(Iterable<? extends MutationResult> values)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.datastore.v1.MutationResult>
Returns
TypeDescription
CommitResponse.Builder

addMutationResults(MutationResult value)

public CommitResponse.Builder addMutationResults(MutationResult value)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
valueMutationResult
Returns
TypeDescription
CommitResponse.Builder

addMutationResults(MutationResult.Builder builderForValue)

public CommitResponse.Builder addMutationResults(MutationResult.Builder builderForValue)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
builderForValueMutationResult.Builder
Returns
TypeDescription
CommitResponse.Builder

addMutationResults(int index, MutationResult value)

public CommitResponse.Builder addMutationResults(int index, MutationResult value)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameters
NameDescription
indexint
valueMutationResult
Returns
TypeDescription
CommitResponse.Builder

addMutationResults(int index, MutationResult.Builder builderForValue)

public CommitResponse.Builder addMutationResults(int index, MutationResult.Builder builderForValue)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameters
NameDescription
indexint
builderForValueMutationResult.Builder
Returns
TypeDescription
CommitResponse.Builder

addMutationResultsBuilder()

public MutationResult.Builder addMutationResultsBuilder()

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Returns
TypeDescription
MutationResult.Builder

addMutationResultsBuilder(int index)

public MutationResult.Builder addMutationResultsBuilder(int index)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
MutationResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommitResponse build()
Returns
TypeDescription
CommitResponse

buildPartial()

public CommitResponse buildPartial()
Returns
TypeDescription
CommitResponse

clear()

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

clearCommitTime()

public CommitResponse.Builder clearCommitTime()

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Returns
TypeDescription
CommitResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIndexUpdates()

public CommitResponse.Builder clearIndexUpdates()

The number of index entries updated during the commit, or zero if none were updated.

int32 index_updates = 4;

Returns
TypeDescription
CommitResponse.Builder

This builder for chaining.

clearMutationResults()

public CommitResponse.Builder clearMutationResults()

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Returns
TypeDescription
CommitResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CommitResponse.Builder clone()
Returns
TypeDescription
CommitResponse.Builder
Overrides

getCommitTime()

public Timestamp getCommitTime()

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Returns
TypeDescription
Timestamp

The commitTime.

getCommitTimeBuilder()

public Timestamp.Builder getCommitTimeBuilder()

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Returns
TypeDescription
Builder

getCommitTimeOrBuilder()

public TimestampOrBuilder getCommitTimeOrBuilder()

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CommitResponse getDefaultInstanceForType()
Returns
TypeDescription
CommitResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndexUpdates()

public int getIndexUpdates()

The number of index entries updated during the commit, or zero if none were updated.

int32 index_updates = 4;

Returns
TypeDescription
int

The indexUpdates.

getMutationResults(int index)

public MutationResult getMutationResults(int index)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
MutationResult

getMutationResultsBuilder(int index)

public MutationResult.Builder getMutationResultsBuilder(int index)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
MutationResult.Builder

getMutationResultsBuilderList()

public List<MutationResult.Builder> getMutationResultsBuilderList()

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Returns
TypeDescription
List<Builder>

getMutationResultsCount()

public int getMutationResultsCount()

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Returns
TypeDescription
int

getMutationResultsList()

public List<MutationResult> getMutationResultsList()

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Returns
TypeDescription
List<MutationResult>

getMutationResultsOrBuilder(int index)

public MutationResultOrBuilder getMutationResultsOrBuilder(int index)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
MutationResultOrBuilder

getMutationResultsOrBuilderList()

public List<? extends MutationResultOrBuilder> getMutationResultsOrBuilderList()

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Returns
TypeDescription
List<? extends com.google.datastore.v1.MutationResultOrBuilder>

hasCommitTime()

public boolean hasCommitTime()

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Returns
TypeDescription
boolean

Whether the commitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCommitTime(Timestamp value)

public CommitResponse.Builder mergeCommitTime(Timestamp value)

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommitResponse.Builder

mergeFrom(CommitResponse other)

public CommitResponse.Builder mergeFrom(CommitResponse other)
Parameter
NameDescription
otherCommitResponse
Returns
TypeDescription
CommitResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMutationResults(int index)

public CommitResponse.Builder removeMutationResults(int index)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
CommitResponse.Builder

setCommitTime(Timestamp value)

public CommitResponse.Builder setCommitTime(Timestamp value)

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommitResponse.Builder

setCommitTime(Timestamp.Builder builderForValue)

public CommitResponse.Builder setCommitTime(Timestamp.Builder builderForValue)

The transaction commit timestamp. Not set for non-transactional commits.

.google.protobuf.Timestamp commit_time = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommitResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndexUpdates(int value)

public CommitResponse.Builder setIndexUpdates(int value)

The number of index entries updated during the commit, or zero if none were updated.

int32 index_updates = 4;

Parameter
NameDescription
valueint

The indexUpdates to set.

Returns
TypeDescription
CommitResponse.Builder

This builder for chaining.

setMutationResults(int index, MutationResult value)

public CommitResponse.Builder setMutationResults(int index, MutationResult value)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameters
NameDescription
indexint
valueMutationResult
Returns
TypeDescription
CommitResponse.Builder

setMutationResults(int index, MutationResult.Builder builderForValue)

public CommitResponse.Builder setMutationResults(int index, MutationResult.Builder builderForValue)

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

repeated .google.datastore.v1.MutationResult mutation_results = 3;

Parameters
NameDescription
indexint
builderForValueMutationResult.Builder
Returns
TypeDescription
CommitResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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