Class MutationResult (2.14.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
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MutationResult getDefaultInstance()
Returns
TypeDescription
MutationResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MutationResult.Builder newBuilder()
Returns
TypeDescription
MutationResult.Builder

newBuilder(MutationResult prototype)

public static MutationResult.Builder newBuilder(MutationResult prototype)
Parameter
NameDescription
prototypeMutationResult
Returns
TypeDescription
MutationResult.Builder

parseDelimitedFrom(InputStream input)

public static MutationResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MutationResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MutationResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MutationResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MutationResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MutationResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MutationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MutationResult> parser()
Returns
TypeDescription
Parser<MutationResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MutationResult getDefaultInstanceForType()
Returns
TypeDescription
MutationResult

getKey()

public Key getKey()

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

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

Returns
TypeDescription
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
TypeDescription
KeyOrBuilder

getParserForType()

public Parser<MutationResult> getParserForType()
Returns
TypeDescription
Parser<MutationResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MutationResult.Builder newBuilderForType()
Returns
TypeDescription
MutationResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MutationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MutationResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MutationResult.Builder toBuilder()
Returns
TypeDescription
MutationResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException