Class CommitResponse.Builder (2.28.2)

publicstaticfinalclass CommitResponse.BuilderextendsGeneratedMessageV3.Builder<CommitResponse.Builder>implementsCommitResponseOrBuilder

The response for Datastore.Commit.

Protobuf type google.datastore.v1.CommitResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMutationResults(Iterable<? extends MutationResult> values)

publicCommitResponse.BuilderaddAllMutationResults(Iterable<?extendsMutationResult>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)

publicCommitResponse.BuilderaddMutationResults(MutationResultvalue)

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)

publicCommitResponse.BuilderaddMutationResults(MutationResult.BuilderbuilderForValue)

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)

publicCommitResponse.BuilderaddMutationResults(intindex,MutationResultvalue)

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)

publicCommitResponse.BuilderaddMutationResults(intindex,MutationResult.BuilderbuilderForValue)

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()

publicMutationResult.BuilderaddMutationResultsBuilder()

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)

publicMutationResult.BuilderaddMutationResultsBuilder(intindex)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCommitResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommitResponse.Builder
Overrides

build()

publicCommitResponsebuild()
Returns
Type Description
CommitResponse

buildPartial()

publicCommitResponsebuildPartial()
Returns
Type Description
CommitResponse

clear()

publicCommitResponse.Builderclear()
Returns
Type Description
CommitResponse.Builder
Overrides

clearCommitTime()

publicCommitResponse.BuilderclearCommitTime()

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

.google.protobuf.Timestamp commit_time = 8;

Returns
Type Description
CommitResponse.Builder

clearField(Descriptors.FieldDescriptor field)

publicCommitResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CommitResponse.Builder
Overrides

clearIndexUpdates()

publicCommitResponse.BuilderclearIndexUpdates()

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()

publicCommitResponse.BuilderclearMutationResults()

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

clearOneof(Descriptors.OneofDescriptor oneof)

publicCommitResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CommitResponse.Builder
Overrides

clone()

publicCommitResponse.Builderclone()
Returns
Type Description
CommitResponse.Builder
Overrides

getCommitTime()

publicTimestampgetCommitTime()

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

.google.protobuf.Timestamp commit_time = 8;

Returns
Type Description
Timestamp

The commitTime.

getCommitTimeBuilder()

publicTimestamp.BuildergetCommitTimeBuilder()

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

.google.protobuf.Timestamp commit_time = 8;

Returns
Type Description
Builder

getCommitTimeOrBuilder()

publicTimestampOrBuildergetCommitTimeOrBuilder()

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

.google.protobuf.Timestamp commit_time = 8;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicCommitResponsegetDefaultInstanceForType()
Returns
Type Description
CommitResponse

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIndexUpdates()

publicintgetIndexUpdates()

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)

publicMutationResultgetMutationResults(intindex)

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)

publicMutationResult.BuildergetMutationResultsBuilder(intindex)

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()

publicList<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()

publicintgetMutationResultsCount()

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()

publicList<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)

publicMutationResultOrBuildergetMutationResultsOrBuilder(intindex)

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()

publicList<?extendsMutationResultOrBuilder>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()

publicbooleanhasCommitTime()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCommitTime(Timestamp value)

publicCommitResponse.BuildermergeCommitTime(Timestampvalue)

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)

publicCommitResponse.BuildermergeFrom(CommitResponseother)
Parameter
Name Description
other CommitResponse
Returns
Type Description
CommitResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCommitResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommitResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCommitResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CommitResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCommitResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommitResponse.Builder
Overrides

removeMutationResults(int index)

publicCommitResponse.BuilderremoveMutationResults(intindex)

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)

publicCommitResponse.BuildersetCommitTime(Timestampvalue)

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)

publicCommitResponse.BuildersetCommitTime(Timestamp.BuilderbuilderForValue)

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

setField(Descriptors.FieldDescriptor field, Object value)

publicCommitResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommitResponse.Builder
Overrides

setIndexUpdates(int value)

publicCommitResponse.BuildersetIndexUpdates(intvalue)

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)

publicCommitResponse.BuildersetMutationResults(intindex,MutationResultvalue)

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)

publicCommitResponse.BuildersetMutationResults(intindex,MutationResult.BuilderbuilderForValue)

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

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

publicCommitResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CommitResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCommitResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommitResponse.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.