Interface MutationResultOrBuilder (2.21.1)

public interface MutationResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConflictDetected()

public abstract 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 abstract 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 abstract 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

getKey()

public abstract 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 abstract KeyOrBuilder getKeyOrBuilder()

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

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

Returns
Type Description
KeyOrBuilder

getUpdateTime()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.