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
Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EntityResult.Builder |
mergeFrom(EntityResult other) |
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.Builder builderForValue)
The time at which the entity was created.
|
EntityResult.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
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.Builder builderForValue)
The resulting entity.
|
EntityResult.Builder |
setEntity(Entity value)
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.Builder builderForValue)
The time at which the entity was last changed.
|
EntityResult.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
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.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public EntityResult build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public EntityResult buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public EntityResult.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>
public EntityResult.Builder mergeFrom(EntityResult other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public EntityResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<EntityResult.Builder>
IOException
public boolean hasEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
hasEntity
in interface EntityResultOrBuilder
public Entity getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
getEntity
in interface EntityResultOrBuilder
public EntityResult.Builder setEntity(Entity value)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
public EntityResult.Builder setEntity(Entity.Builder builderForValue)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
public EntityResult.Builder mergeEntity(Entity value)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
public EntityResult.Builder clearEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
public Entity.Builder getEntityBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
public EntityOrBuilder getEntityOrBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
getEntityOrBuilder
in interface EntityResultOrBuilder
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;
getVersion
in interface EntityResultOrBuilder
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;
value
- The version to set.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;
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;
hasCreateTime
in interface EntityResultOrBuilder
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;
getCreateTime
in interface EntityResultOrBuilder
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;
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;
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;
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;
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;
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;
getCreateTimeOrBuilder
in interface EntityResultOrBuilder
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;
hasUpdateTime
in interface EntityResultOrBuilder
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;
getUpdateTime
in interface EntityResultOrBuilder
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;
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;
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;
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;
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;
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;
getUpdateTimeOrBuilder
in interface EntityResultOrBuilder
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;
getCursor
in interface EntityResultOrBuilder
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;
value
- The cursor to set.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;
public final EntityResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
public final EntityResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EntityResult.Builder>
Copyright © 2023 Google LLC. All rights reserved.