Class EntityResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
com.google.datastore.v1.EntityResult.Builder
All Implemented Interfaces:
EntityResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EntityResult

public static final class EntityResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder> implements EntityResultOrBuilder
 The result of fetching an entity from Datastore.
 
Protobuf type google.datastore.v1.EntityResult
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • clear

      public EntityResult.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • getDefaultInstanceForType

      public EntityResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EntityResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EntityResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public EntityResult.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • setField

      public EntityResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • clearField

      public EntityResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • clearOneof

      public EntityResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • setRepeatedField

      public EntityResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • addRepeatedField

      public EntityResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • mergeFrom

      public EntityResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>
    • mergeFrom

      public EntityResult.Builder mergeFrom(EntityResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • mergeFrom

      public EntityResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>
      Throws:
      IOException
    • hasEntity

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

      public Entity getEntity()
       The resulting entity.
       
      .google.datastore.v1.Entity entity = 1;
      Specified by:
      getEntity in interface EntityResultOrBuilder
      Returns:
      The entity.
    • setEntity

      public EntityResult.Builder setEntity(Entity value)
       The resulting entity.
       
      .google.datastore.v1.Entity entity = 1;
    • setEntity

      public EntityResult.Builder setEntity(Entity.Builder builderForValue)
       The resulting entity.
       
      .google.datastore.v1.Entity entity = 1;
    • mergeEntity

      public EntityResult.Builder mergeEntity(Entity value)
       The resulting entity.
       
      .google.datastore.v1.Entity entity = 1;
    • clearEntity

      public EntityResult.Builder clearEntity()
       The resulting entity.
       
      .google.datastore.v1.Entity entity = 1;
    • getEntityBuilder

      public Entity.Builder getEntityBuilder()
       The resulting entity.
       
      .google.datastore.v1.Entity entity = 1;
    • getEntityOrBuilder

      public EntityOrBuilder getEntityOrBuilder()
       The resulting entity.
       
      .google.datastore.v1.Entity entity = 1;
      Specified by:
      getEntityOrBuilder in interface EntityResultOrBuilder
    • getVersion

      public 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;
      Specified by:
      getVersion in interface EntityResultOrBuilder
      Returns:
      The version.
    • setVersion

      public EntityResult.Builder setVersion(long value)
       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;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public EntityResult.Builder clearVersion()
       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:
      This builder for chaining.
    • hasCreateTime

      public 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;
      Specified by:
      hasCreateTime in interface EntityResultOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public 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;
      Specified by:
      getCreateTime in interface EntityResultOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public EntityResult.Builder setCreateTime(com.google.protobuf.Timestamp value)
       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;
    • setCreateTime

      public EntityResult.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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;
    • mergeCreateTime

      public EntityResult.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       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;
    • clearCreateTime

      public EntityResult.Builder clearCreateTime()
       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;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       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;
    • getCreateTimeOrBuilder

      public 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;
      Specified by:
      getCreateTimeOrBuilder in interface EntityResultOrBuilder
    • hasUpdateTime

      public 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;
      Specified by:
      hasUpdateTime in interface EntityResultOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public 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;
      Specified by:
      getUpdateTime in interface EntityResultOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public EntityResult.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       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;
    • setUpdateTime

      public EntityResult.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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;
    • mergeUpdateTime

      public EntityResult.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       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;
    • clearUpdateTime

      public EntityResult.Builder clearUpdateTime()
       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;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       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;
    • getUpdateTimeOrBuilder

      public 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;
      Specified by:
      getUpdateTimeOrBuilder in interface EntityResultOrBuilder
    • getCursor

      public 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;
      Specified by:
      getCursor in interface EntityResultOrBuilder
      Returns:
      The cursor.
    • setCursor

      public EntityResult.Builder setCursor(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The cursor to set.
      Returns:
      This builder for chaining.
    • clearCursor

      public EntityResult.Builder clearCursor()
       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:
      This builder for chaining.
    • setUnknownFields

      public final EntityResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
    • mergeUnknownFields

      public final EntityResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>