Class MutationResult (2.21.1)

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
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()
Returns
Type Description
MutationResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static MutationResult.Builder newBuilder()
Returns
Type Description
MutationResult.Builder

newBuilder(MutationResult prototype)

public static MutationResult.Builder newBuilder(MutationResult prototype)
Parameter
Name Description
prototype MutationResult
Returns
Type Description
MutationResult.Builder

parseDelimitedFrom(InputStream input)

public static MutationResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MutationResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MutationResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MutationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MutationResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MutationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MutationResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MutationResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MutationResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MutationResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MutationResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MutationResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MutationResult> parser()
Returns
Type Description
Parser<MutationResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MutationResult getDefaultInstanceForType()
Returns
Type Description
MutationResult

getKey()

public Key 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
Type Description
KeyOrBuilder

getParserForType()

public Parser<MutationResult> getParserForType()
Returns
Type Description
Parser<MutationResult>
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;

Returns
Type Description
TimestampOrBuilder

getVersion()

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

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

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MutationResult.Builder newBuilderForType()
Returns
Type Description
MutationResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MutationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MutationResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MutationResult.Builder toBuilder()
Returns
Type Description
MutationResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException