Interface MutationResultOrBuilder (2.20.2)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface MutationResultOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getConflictDetected()
publicabstractbooleangetConflictDetected()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()
publicabstractTimestampgetCreateTime()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()
publicabstractTimestampOrBuildergetCreateTimeOrBuilder()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()
publicabstractKeygetKey()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()
publicabstractKeyOrBuildergetKeyOrBuilder()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Returns | |
|---|---|
| Type | Description |
KeyOrBuilder |
|
getUpdateTime()
publicabstractTimestampgetUpdateTime()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()
publicabstractTimestampOrBuildergetUpdateTimeOrBuilder()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()
publicabstractlonggetVersion()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()
publicabstractbooleanhasCreateTime()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()
publicabstractbooleanhasKey()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()
publicabstractbooleanhasUpdateTime()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. |