Class CommitResponse.Builder (2.33.3)

public static final class CommitResponse.Builder extends GeneratedMessage.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
Type Description
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
Name Description
values Iterable<? extends com.google.datastore.v1.MutationResult>
Returns
Type Description
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
Name Description
value MutationResult
Returns
Type Description
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
Name Description
builderForValue MutationResult.Builder
Returns
Type Description
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
Name Description
index int
value MutationResult
Returns
Type Description
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
Name Description
index int
builderForValue MutationResult.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
MutationResult.Builder

build()

public CommitResponse build()
Returns
Type Description
CommitResponse

buildPartial()

public CommitResponse buildPartial()
Returns
Type Description
CommitResponse

clear()

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

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
Type Description
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
Type Description
CommitResponse.Builder

getCommitTime()

public Timestamp getCommitTime()

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

.google.protobuf.Timestamp commit_time = 8;

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

getCommitTimeOrBuilder()

public TimestampOrBuilder getCommitTimeOrBuilder()

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

.google.protobuf.Timestamp commit_time = 8;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CommitResponse getDefaultInstanceForType()
Returns
Type Description
CommitResponse

getDescriptorForType()

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

Whether the commitTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

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

mergeFrom(CommitResponse other)

public CommitResponse.Builder mergeFrom(CommitResponse other)
Parameter
Name Description
other CommitResponse
Returns
Type Description
CommitResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CommitResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
CommitResponse.Builder

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

The indexUpdates to set.

Returns
Type Description
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
Name Description
index int
value MutationResult
Returns
Type Description
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
Name Description
index int
builderForValue MutationResult.Builder
Returns
Type Description
CommitResponse.Builder