Interface EntityResultOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    EntityResult, EntityResult.Builder

    public interface EntityResultOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.Timestamp getCreateTime()
      The time at which the entity was created.
      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
      The time at which the entity was created.
      com.google.protobuf.ByteString getCursor()
      A cursor that points to the position after the result entity.
      Entity getEntity()
      The resulting entity.
      EntityOrBuilder getEntityOrBuilder()
      The resulting entity.
      com.google.protobuf.Timestamp getUpdateTime()
      The time at which the entity was last changed.
      com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
      The time at which the entity was last changed.
      long getVersion()
      The version of the entity, a strictly positive number that monotonically increases with changes to the entity.
      boolean hasCreateTime()
      The time at which the entity was created.
      boolean hasEntity()
      The resulting entity.
      boolean hasUpdateTime()
      The time at which the entity was last changed.
      • 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 Detail

      • hasEntity

        boolean hasEntity()
         The resulting entity.
         
        .google.datastore.v1.Entity entity = 1;
        Returns:
        Whether the entity field is set.
      • getEntity

        Entity getEntity()
         The resulting entity.
         
        .google.datastore.v1.Entity entity = 1;
        Returns:
        The entity.
      • getEntityOrBuilder

        EntityOrBuilder getEntityOrBuilder()
         The resulting entity.
         
        .google.datastore.v1.Entity entity = 1;
      • getVersion

        long getVersion()
         The version of the entity, a strictly positive number that monotonically
         increases with changes to the entity.
        
         This field is set for
         [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
        
         For [missing][google.datastore.v1.LookupResponse.missing] entities in
         `LookupResponse`, this is the version of the snapshot that was used to look
         up the entity, and it is always set except for eventually consistent reads.
         
        int64 version = 4;
        Returns:
        The version.
      • hasCreateTime

        boolean hasCreateTime()
         The time at which the entity was created.
         This field is set for
         [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
         If this entity is missing, this field will not be set.
         
        .google.protobuf.Timestamp create_time = 6;
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        com.google.protobuf.Timestamp getCreateTime()
         The time at which the entity was created.
         This field is set for
         [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
         If this entity is missing, this field will not be set.
         
        .google.protobuf.Timestamp create_time = 6;
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The time at which the entity was created.
         This field is set for
         [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
         If this entity is missing, this field will not be set.
         
        .google.protobuf.Timestamp create_time = 6;
      • hasUpdateTime

        boolean hasUpdateTime()
         The time at which the entity was last changed.
         This field is set for
         [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
         If this entity is missing, this field will not be set.
         
        .google.protobuf.Timestamp update_time = 5;
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        com.google.protobuf.Timestamp getUpdateTime()
         The time at which the entity was last changed.
         This field is set for
         [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
         If this entity is missing, this field will not be set.
         
        .google.protobuf.Timestamp update_time = 5;
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         The time at which the entity was last changed.
         This field is set for
         [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results.
         If this entity is missing, this field will not be set.
         
        .google.protobuf.Timestamp update_time = 5;
      • getCursor

        com.google.protobuf.ByteString getCursor()
         A cursor that points to the position after the result entity.
         Set only when the `EntityResult` is part of a `QueryResultBatch` message.
         
        bytes cursor = 3;
        Returns:
        The cursor.