Send feedback
Class MutationResult.Builder (2.2.10)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.10 keyboard_arrow_down
public static final class MutationResult . Builder extends GeneratedMessageV3 . Builder<MutationResult . Builder > implements MutationResultOrBuilder
The result of applying a mutation.
Protobuf type google.datastore.v1.MutationResult
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MutationResult . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public MutationResult build ()
Returns
buildPartial()
public MutationResult buildPartial ()
Returns
clear()
public MutationResult . Builder clear ()
Returns
Overrides
clearConflictDetected()
public MutationResult . Builder clearConflictDetected ()
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
clearField(Descriptors.FieldDescriptor field)
public MutationResult . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearKey()
public MutationResult . Builder clearKey ()
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MutationResult . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearVersion()
public MutationResult . Builder clearVersion ()
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
clone()
public MutationResult . Builder clone ()
Returns
Overrides
getConflictDetected()
public boolean getConflictDetected ()
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.
getDefaultInstanceForType()
public MutationResult getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getKey()
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()
public Key . Builder getKeyBuilder ()
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Returns
getKeyOrBuilder()
public KeyOrBuilder getKeyOrBuilder ()
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Returns
getVersion()
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.
hasKey()
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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(MutationResult other)
public MutationResult . Builder mergeFrom ( MutationResult other )
Parameter
Returns
public MutationResult . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MutationResult . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeKey(Key value)
public MutationResult . Builder mergeKey ( Key value )
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MutationResult . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setConflictDetected(boolean value)
public MutationResult . Builder setConflictDetected ( boolean value )
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
setField(Descriptors.FieldDescriptor field, Object value)
public MutationResult . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setKey(Key value)
public MutationResult . Builder setKey ( Key value )
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Parameter
Returns
setKey(Key.Builder builderForValue)
public MutationResult . Builder setKey ( Key . Builder builderForValue )
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MutationResult . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MutationResult . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setVersion(long value)
public MutationResult . Builder setVersion ( long value )
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
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]