Send feedback
Class MutationResult (2.19.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.19.2 keyboard_arrow_down
public final class MutationResult extends GeneratedMessageV3 implements MutationResultOrBuilder
The result of applying a mutation.
Protobuf type google.datastore.v1.MutationResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONFLICT_DETECTED_FIELD_NUMBER
public static final int CONFLICT_DETECTED_FIELD_NUMBER
Field Value
Type
Description
int
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
Field Value
Type
Description
int
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static MutationResult getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static MutationResult . Builder newBuilder ()
newBuilder(MutationResult prototype)
public static MutationResult . Builder newBuilder ( MutationResult prototype )
public static MutationResult parseDelimitedFrom ( InputStream input )
public static MutationResult parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static MutationResult parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static MutationResult parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static MutationResult parseFrom ( CodedInputStream input )
public static MutationResult parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static MutationResult parseFrom ( InputStream input )
public static MutationResult parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static MutationResult parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<MutationResult> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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.
getCreateTime()
public Timestamp getCreateTime ()
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.
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder ()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
getDefaultInstanceForType()
public MutationResult getDefaultInstanceForType ()
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.
getKeyOrBuilder()
public KeyOrBuilder getKeyOrBuilder ()
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
getParserForType()
public Parser<MutationResult> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getUpdateTime()
public Timestamp getUpdateTime ()
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.
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder ()
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;
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.
hasCreateTime()
public boolean hasCreateTime ()
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()
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()
public boolean hasUpdateTime ()
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public MutationResult . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MutationResult . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public MutationResult . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
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-28 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-28 UTC."],[],[]]