public interface MutationResultOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
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;
Type | Description |
boolean | The conflictDetected. |
getKey()
public abstract Key getKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
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;
Type | Description |
KeyOrBuilder |
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;
Type | Description |
long | The version. |
hasKey()
public abstract boolean hasKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
boolean | Whether the key field is set. |