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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityResultbuild()EntityResultbuildPartial()EntityResult.Builderclear()EntityResult.BuilderclearCreateTime()The time at which the entity was created.EntityResult.BuilderclearCursor()A cursor that points to the position after the result entity.EntityResult.BuilderclearEntity()The resulting entity.EntityResult.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)EntityResult.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)EntityResult.BuilderclearUpdateTime()The time at which the entity was last changed.EntityResult.BuilderclearVersion()The version of the entity, a strictly positive number that monotonically increases with changes to the entity.EntityResult.Builderclone()com.google.protobuf.TimestampgetCreateTime()The time at which the entity was created.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()The time at which the entity was created.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The time at which the entity was created.com.google.protobuf.ByteStringgetCursor()A cursor that points to the position after the result entity.EntityResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EntitygetEntity()The resulting entity.Entity.BuildergetEntityBuilder()The resulting entity.EntityOrBuildergetEntityOrBuilder()The resulting entity.com.google.protobuf.TimestampgetUpdateTime()The time at which the entity was last changed.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()The time at which the entity was last changed.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()The time at which the entity was last changed.longgetVersion()The version of the entity, a strictly positive number that monotonically increases with changes to the entity.booleanhasCreateTime()The time at which the entity was created.booleanhasEntity()The resulting entity.booleanhasUpdateTime()The time at which the entity was last changed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()EntityResult.BuildermergeCreateTime(com.google.protobuf.Timestamp value)The time at which the entity was created.EntityResult.BuildermergeEntity(Entity value)The resulting entity.EntityResult.BuildermergeFrom(EntityResult other)EntityResult.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)EntityResult.BuildermergeFrom(com.google.protobuf.Message other)EntityResult.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EntityResult.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)The time at which the entity was last changed.EntityResult.BuildersetCreateTime(com.google.protobuf.Timestamp value)The time at which the entity was created.EntityResult.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)The time at which the entity was created.EntityResult.BuildersetCursor(com.google.protobuf.ByteString value)A cursor that points to the position after the result entity.EntityResult.BuildersetEntity(Entity value)The resulting entity.EntityResult.BuildersetEntity(Entity.Builder builderForValue)The resulting entity.EntityResult.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityResult.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)EntityResult.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EntityResult.BuildersetUpdateTime(com.google.protobuf.Timestamp value)The time at which the entity was last changed.EntityResult.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)The time at which the entity was last changed.EntityResult.BuildersetVersion(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
clear
public EntityResult.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
getDefaultInstanceForType
public EntityResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityResult build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityResult buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityResult.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
setField
public EntityResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
clearField
public EntityResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
clearOneof
public EntityResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
setRepeatedField
public EntityResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
addRepeatedField
public EntityResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
mergeFrom
public EntityResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>
-
mergeFrom
public EntityResult.Builder mergeFrom(EntityResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>- Throws:
IOException
-
hasEntity
public boolean hasEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;- Specified by:
hasEntityin interfaceEntityResultOrBuilder- Returns:
- Whether the entity field is set.
-
getEntity
public Entity getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;- Specified by:
getEntityin 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:
getEntityOrBuilderin 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:
getVersionin 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:
hasCreateTimein 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:
getCreateTimein 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:
getCreateTimeOrBuilderin 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:
hasUpdateTimein 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:
getUpdateTimein 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:
getUpdateTimeOrBuilderin 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:
getCursorin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
mergeUnknownFields
public final EntityResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
-