Package com.google.datastore.v1
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 typegoogle.datastore.v1.EntityResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityResult.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EntityResult
build()
EntityResult
buildPartial()
EntityResult.Builder
clear()
EntityResult.Builder
clearCreateTime()
The time at which the entity was created.EntityResult.Builder
clearCursor()
A cursor that points to the position after the result entity.EntityResult.Builder
clearEntity()
The resulting entity.EntityResult.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EntityResult.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
EntityResult.Builder
clearUpdateTime()
The time at which the entity was last changed.EntityResult.Builder
clearVersion()
The version of the entity, a strictly positive number that monotonically increases with changes to the entity.EntityResult.Builder
clone()
com.google.protobuf.Timestamp
getCreateTime()
The time at which the entity was created.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
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.EntityResult
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Entity
getEntity()
The resulting entity.Entity.Builder
getEntityBuilder()
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.Timestamp.Builder
getUpdateTimeBuilder()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EntityResult.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
The time at which the entity was created.EntityResult.Builder
mergeEntity(Entity value)
The resulting entity.EntityResult.Builder
mergeFrom(EntityResult other)
EntityResult.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EntityResult.Builder
mergeFrom(com.google.protobuf.Message other)
EntityResult.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EntityResult.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
The time at which the entity was last changed.EntityResult.Builder
setCreateTime(com.google.protobuf.Timestamp value)
The time at which the entity was created.EntityResult.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the entity was created.EntityResult.Builder
setCursor(com.google.protobuf.ByteString value)
A cursor that points to the position after the result entity.EntityResult.Builder
setEntity(Entity value)
The resulting entity.EntityResult.Builder
setEntity(Entity.Builder builderForValue)
The resulting entity.EntityResult.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EntityResult.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
EntityResult.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EntityResult.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
The time at which the entity was last changed.EntityResult.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the entity was last changed.EntityResult.Builder
setVersion(long value)
The version of the entity, a strictly positive number that monotonically increases with changes to the entity.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
clear
public EntityResult.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
getDefaultInstanceForType
public EntityResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityResult build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityResult buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityResult.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
setField
public EntityResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
clearField
public EntityResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
clearOneof
public EntityResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
addRepeatedField
public EntityResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
mergeFrom
public EntityResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>
-
mergeFrom
public EntityResult.Builder mergeFrom(EntityResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceEntityResultOrBuilder
- Returns:
- Whether the entity field is set.
-
getEntity
public Entity getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
- Specified by:
getEntity
in interfaceEntityResultOrBuilder
- 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 interfaceEntityResultOrBuilder
-
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 interfaceEntityResultOrBuilder
- 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 interfaceEntityResultOrBuilder
- 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 interfaceEntityResultOrBuilder
- 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 interfaceEntityResultOrBuilder
-
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 interfaceEntityResultOrBuilder
- 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 interfaceEntityResultOrBuilder
- 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 interfaceEntityResultOrBuilder
-
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 interfaceEntityResultOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
mergeUnknownFields
public final EntityResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
-