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 Type
    Method
    Description
    boolean
    Whether a conflict was detected for this mutation.
    com.google.protobuf.Timestamp
    The create time of the entity.
    com.google.protobuf.TimestampOrBuilder
    The create time of the entity.
    The automatically allocated key.
    The automatically allocated key.
    com.google.protobuf.Timestamp
    The update time of the entity on the server after processing the mutation.
    com.google.protobuf.TimestampOrBuilder
    The update time of the entity on the server after processing the mutation.
    long
    The version of the entity on the server after processing the mutation.
    boolean
    The create time of the entity.
    boolean
    The automatically allocated key.
    boolean
    The update time of the entity on the server after processing the mutation.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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.