Package com.google.datastore.v1
Interface MutationResultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MutationResult,MutationResult.Builder
public interface MutationResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether a conflict was detected for this mutation.com.google.protobuf.TimestampThe create time of the entity.com.google.protobuf.TimestampOrBuilderThe create time of the entity.getKey()The automatically allocated key.The automatically allocated key.getTransformResults(int index) The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.intThe results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.getTransformResultsOrBuilder(int index) The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.List<? extends ValueOrBuilder>The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.com.google.protobuf.TimestampThe update time of the entity on the server after processing the mutation.com.google.protobuf.TimestampOrBuilderThe update time of the entity on the server after processing the mutation.longThe version of the entity on the server after processing the mutation.booleanThe create time of the entity.booleanhasKey()The automatically allocated key.booleanThe update time of the entity on the server after processing the mutation.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasKey
boolean hasKey()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;- Returns:
- Whether the key field is set.
-
getKey
Key getKey()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;- Returns:
- The key.
-
getKeyOrBuilder
KeyOrBuilder getKeyOrBuilder()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3; -
getVersion
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:
- The version.
-
hasCreateTime
boolean hasCreateTime()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7; -
hasUpdateTime
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:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.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:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.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; -
getConflictDetected
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:
- The conflictDetected.
-
getTransformResultsList
The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8; -
getTransformResults
The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8; -
getTransformResultsCount
int getTransformResultsCount()The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8; -
getTransformResultsOrBuilderList
List<? extends ValueOrBuilder> getTransformResultsOrBuilderList()The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8; -
getTransformResultsOrBuilder
The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
-