Send feedback
Class MutationResult (2.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.0 keyboard_arrow_down
public final class MutationResult extends GeneratedMessageV3 implements MutationResultOrBuilder
The result of applying a mutation.
Protobuf type google.datastore.v1.MutationResult
Static Fields
CONFLICT_DETECTED_FIELD_NUMBER
public static final int CONFLICT_DETECTED_FIELD_NUMBER
Field Value
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MutationResult getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static MutationResult . Builder newBuilder ()
Returns
newBuilder(MutationResult prototype)
public static MutationResult . Builder newBuilder ( MutationResult prototype )
Parameter
Returns
public static MutationResult parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static MutationResult parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MutationResult parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MutationResult parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MutationResult parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static MutationResult parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MutationResult parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static MutationResult parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MutationResult parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<MutationResult> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
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
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;
Returns
getParserForType()
public Parser<MutationResult> getParserForType ()
Returns
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
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
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;
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.
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public MutationResult . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MutationResult . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public MutationResult . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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."],[],[]]