Class MutationResult.Builder (2.32.3)

publicstaticfinalclass MutationResult.BuilderextendsGeneratedMessageV3.Builder<MutationResult.Builder>implementsMutationResultOrBuilder

The result of applying a mutation.

Protobuf type google.datastore.v1.MutationResult

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

addAllTransformResults(Iterable<? extends Value> values)

publicMutationResult.BuilderaddAllTransformResults(Iterable<?extendsValue>values)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
values Iterable<? extends com.google.datastore.v1.Value>
Returns
Type Description
MutationResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTransformResults(Value value)

publicMutationResult.BuilderaddTransformResults(Valuevalue)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
value Value
Returns
Type Description
MutationResult.Builder

addTransformResults(Value.Builder builderForValue)

publicMutationResult.BuilderaddTransformResults(Value.BuilderbuilderForValue)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
MutationResult.Builder

addTransformResults(int index, Value value)

publicMutationResult.BuilderaddTransformResults(intindex,Valuevalue)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameters
Name Description
index int
value Value
Returns
Type Description
MutationResult.Builder

addTransformResults(int index, Value.Builder builderForValue)

publicMutationResult.BuilderaddTransformResults(intindex,Value.BuilderbuilderForValue)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameters
Name Description
index int
builderForValue Value.Builder
Returns
Type Description
MutationResult.Builder

addTransformResultsBuilder()

publicValue.BuilderaddTransformResultsBuilder()

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Returns
Type Description
Value.Builder

addTransformResultsBuilder(int index)

publicValue.BuilderaddTransformResultsBuilder(intindex)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
index int
Returns
Type Description
Value.Builder

build()

publicMutationResultbuild()
Returns
Type Description
MutationResult

buildPartial()

publicMutationResultbuildPartial()
Returns
Type Description
MutationResult

clear()

publicMutationResult.Builderclear()
Returns
Type Description
MutationResult.Builder
Overrides

clearConflictDetected()

publicMutationResult.BuilderclearConflictDetected()

Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.

bool conflict_detected = 5;

Returns
Type Description
MutationResult.Builder

This builder for chaining.

clearCreateTime()

publicMutationResult.BuilderclearCreateTime()

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
MutationResult.Builder

clearField(Descriptors.FieldDescriptor field)

publicMutationResult.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MutationResult.Builder
Overrides

clearKey()

publicMutationResult.BuilderclearKey()

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Returns
Type Description
MutationResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicMutationResult.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MutationResult.Builder
Overrides

clearTransformResults()

publicMutationResult.BuilderclearTransformResults()

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Returns
Type Description
MutationResult.Builder

clearUpdateTime()

publicMutationResult.BuilderclearUpdateTime()

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
MutationResult.Builder

clearVersion()

publicMutationResult.BuilderclearVersion()

The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.

int64 version = 4;

Returns
Type Description
MutationResult.Builder

This builder for chaining.

clone()

publicMutationResult.Builderclone()
Returns
Type Description
MutationResult.Builder
Overrides

getConflictDetected()

publicbooleangetConflictDetected()

Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.

bool conflict_detected = 5;

Returns
Type Description
boolean

The conflictDetected.

getCreateTime()

publicTimestampgetCreateTime()

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicMutationResultgetDefaultInstanceForType()
Returns
Type Description
MutationResult

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

publicKeygetKey()

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Returns
Type Description
Key

The key.

getKeyBuilder()

publicKey.BuildergetKeyBuilder()

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Returns
Type Description
Key.Builder

getKeyOrBuilder()

publicKeyOrBuildergetKeyOrBuilder()

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Returns
Type Description
KeyOrBuilder

getTransformResults(int index)

publicValuegetTransformResults(intindex)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
index int
Returns
Type Description
Value

getTransformResultsBuilder(int index)

publicValue.BuildergetTransformResultsBuilder(intindex)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
index int
Returns
Type Description
Value.Builder

getTransformResultsBuilderList()

publicList<Value.Builder>getTransformResultsBuilderList()

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Returns
Type Description
List<Builder>

getTransformResultsCount()

publicintgetTransformResultsCount()

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Returns
Type Description
int

getTransformResultsList()

publicList<Value>getTransformResultsList()

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Returns
Type Description
List<Value>

getTransformResultsOrBuilder(int index)

publicValueOrBuildergetTransformResultsOrBuilder(intindex)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
index int
Returns
Type Description
ValueOrBuilder

getTransformResultsOrBuilderList()

publicList<?extendsValueOrBuilder>getTransformResultsOrBuilderList()

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Returns
Type Description
List<? extends com.google.datastore.v1.ValueOrBuilder>

getUpdateTime()

publicTimestampgetUpdateTime()

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
TimestampOrBuilder

getVersion()

publiclonggetVersion()

The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.

int64 version = 4;

Returns
Type Description
long

The version.

hasCreateTime()

publicbooleanhasCreateTime()

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Returns
Type Description
boolean

Whether the createTime field is set.

hasKey()

publicbooleanhasKey()

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Returns
Type Description
boolean

Whether the key field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

publicMutationResult.BuildermergeCreateTime(Timestampvalue)

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MutationResult.Builder

mergeFrom(MutationResult other)

publicMutationResult.BuildermergeFrom(MutationResultother)
Parameter
Name Description
other MutationResult
Returns
Type Description
MutationResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicMutationResult.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
MutationResult.Builder
Overrides

mergeKey(Key value)

publicMutationResult.BuildermergeKey(Keyvalue)

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Parameter
Name Description
value Key
Returns
Type Description
MutationResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalMutationResult.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MutationResult.Builder
Overrides

mergeUpdateTime(Timestamp value)

publicMutationResult.BuildermergeUpdateTime(Timestampvalue)

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MutationResult.Builder

removeTransformResults(int index)

publicMutationResult.BuilderremoveTransformResults(intindex)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameter
Name Description
index int
Returns
Type Description
MutationResult.Builder

setConflictDetected(boolean value)

publicMutationResult.BuildersetConflictDetected(booleanvalue)

Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.

bool conflict_detected = 5;

Parameter
Name Description
value boolean

The conflictDetected to set.

Returns
Type Description
MutationResult.Builder

This builder for chaining.

setCreateTime(Timestamp value)

publicMutationResult.BuildersetCreateTime(Timestampvalue)

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MutationResult.Builder

setCreateTime(Timestamp.Builder builderForValue)

publicMutationResult.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

The create time of the entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp create_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MutationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(Key value)

publicMutationResult.BuildersetKey(Keyvalue)

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Parameter
Name Description
value Key
Returns
Type Description
MutationResult.Builder

setKey(Key.Builder builderForValue)

publicMutationResult.BuildersetKey(Key.BuilderbuilderForValue)

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Parameter
Name Description
builderForValue Key.Builder
Returns
Type Description
MutationResult.Builder

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

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

setTransformResults(int index, Value value)

publicMutationResult.BuildersetTransformResults(intindex,Valuevalue)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameters
Name Description
index int
value Value
Returns
Type Description
MutationResult.Builder

setTransformResults(int index, Value.Builder builderForValue)

publicMutationResult.BuildersetTransformResults(intindex,Value.BuilderbuilderForValue)

The results of applying each PropertyTransform, in the same order of the request.

repeated .google.datastore.v1.Value transform_results = 8;

Parameters
Name Description
index int
builderForValue Value.Builder
Returns
Type Description
MutationResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalMutationResult.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MutationResult.Builder
Overrides

setUpdateTime(Timestamp value)

publicMutationResult.BuildersetUpdateTime(Timestampvalue)

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MutationResult.Builder

setUpdateTime(Timestamp.Builder builderForValue)

publicMutationResult.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MutationResult.Builder

setVersion(long value)

publicMutationResult.BuildersetVersion(longvalue)

The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.

int64 version = 4;

Parameter
Name Description
value long

The version to set.

Returns
Type Description
MutationResult.Builder

This builder for chaining.

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.