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 type
google.datastore.v1.EntityResult
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The time at which the entity was created.A cursor that points to the position after the result entity.The resulting entity.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The time at which the entity was last changed.The version of the entity, a strictly positive number that monotonically increases with changes to the entity.clone()
com.google.protobuf.Timestamp
The time at which the entity was created.com.google.protobuf.Timestamp.Builder
The time at which the entity was created.com.google.protobuf.TimestampOrBuilder
The time at which the entity was created.com.google.protobuf.ByteString
A cursor that points to the position after the result entity.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The resulting entity.The resulting entity.The resulting entity.com.google.protobuf.Timestamp
The time at which the entity was last changed.com.google.protobuf.Timestamp.Builder
The time at which the entity was last changed.com.google.protobuf.TimestampOrBuilder
The time at which the entity was last changed.long
The version of the entity, a strictly positive number that monotonically increases with changes to the entity.boolean
The time at which the entity was created.boolean
The resulting entity.boolean
The time at which the entity was last changed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCreateTime
(com.google.protobuf.Timestamp value) The time at which the entity was created.mergeEntity
(Entity value) The resulting entity.mergeFrom
(EntityResult other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final EntityResult.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateTime
(com.google.protobuf.Timestamp value) The time at which the entity was last changed.setCreateTime
(com.google.protobuf.Timestamp value) The time at which the entity was created.setCreateTime
(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the entity was created.setCursor
(com.google.protobuf.ByteString value) A cursor that points to the position after the result entity.The resulting entity.setEntity
(Entity.Builder builderForValue) The resulting entity.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final EntityResult.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateTime
(com.google.protobuf.Timestamp value) The time at which the entity was last changed.setUpdateTime
(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the entity was last changed.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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
-
clearOneof
- 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
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>
-
mergeFrom
-
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
The resulting entity.
.google.datastore.v1.Entity entity = 1;
- Specified by:
getEntity
in interfaceEntityResultOrBuilder
- Returns:
- The entity.
-
setEntity
The resulting entity.
.google.datastore.v1.Entity entity = 1;
-
setEntity
The resulting entity.
.google.datastore.v1.Entity entity = 1;
-
mergeEntity
The resulting entity.
.google.datastore.v1.Entity entity = 1;
-
clearEntity
The resulting entity.
.google.datastore.v1.Entity entity = 1;
-
getEntityBuilder
The resulting entity.
.google.datastore.v1.Entity entity = 1;
-
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
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
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
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
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
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
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
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
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
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
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
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
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>
-