Class EntityResult.Builder (2.21.2)

public static final class EntityResult.Builder extends GeneratedMessageV3.Builder<EntityResult.Builder> implements EntityResultOrBuilder

The result of fetching an entity from Datastore.

Protobuf type google.datastore.v1.EntityResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EntityResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EntityResult.Builder
Overrides

build()

public EntityResult build()
Returns
Type Description
EntityResult

buildPartial()

public EntityResult buildPartial()
Returns
Type Description
EntityResult

clear()

public EntityResult.Builder clear()
Returns
Type Description
EntityResult.Builder
Overrides

clearCreateTime()

public EntityResult.Builder clearCreateTime()

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
EntityResult.Builder

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
Type Description
EntityResult.Builder

This builder for chaining.

clearEntity()

public EntityResult.Builder clearEntity()

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Returns
Type Description
EntityResult.Builder

clearField(Descriptors.FieldDescriptor field)

public EntityResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EntityResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EntityResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EntityResult.Builder
Overrides

clearUpdateTime()

public EntityResult.Builder clearUpdateTime()

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
EntityResult.Builder

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 entity results.

For 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
Type Description
EntityResult.Builder

This builder for chaining.

clone()

public EntityResult.Builder clone()
Returns
Type Description
EntityResult.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
TimestampOrBuilder

getCursor()

public 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;

Returns
Type Description
ByteString

The cursor.

getDefaultInstanceForType()

public EntityResult getDefaultInstanceForType()
Returns
Type Description
EntityResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntity()

public Entity getEntity()

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Returns
Type Description
Entity

The entity.

getEntityBuilder()

public Entity.Builder getEntityBuilder()

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Returns
Type Description
Entity.Builder

getEntityOrBuilder()

public EntityOrBuilder getEntityOrBuilder()

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Returns
Type Description
EntityOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

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 entity results.

For 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
Type Description
long

The version.

hasCreateTime()

public boolean hasCreateTime()

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
boolean

Whether the createTime field is set.

hasEntity()

public boolean hasEntity()

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Returns
Type Description
boolean

Whether the entity field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public EntityResult.Builder mergeCreateTime(Timestamp value)

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
EntityResult.Builder

mergeEntity(Entity value)

public EntityResult.Builder mergeEntity(Entity value)

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Parameter
Name Description
value Entity
Returns
Type Description
EntityResult.Builder

mergeFrom(EntityResult other)

public EntityResult.Builder mergeFrom(EntityResult other)
Parameter
Name Description
other EntityResult
Returns
Type Description
EntityResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EntityResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntityResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EntityResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EntityResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EntityResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EntityResult.Builder
Overrides

mergeUpdateTime(Timestamp value)

public EntityResult.Builder mergeUpdateTime(Timestamp value)

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
EntityResult.Builder

setCreateTime(Timestamp value)

public EntityResult.Builder setCreateTime(Timestamp value)

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
EntityResult.Builder

setCreateTime(Timestamp.Builder builderForValue)

public EntityResult.Builder setCreateTime(Timestamp.Builder builderForValue)

The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EntityResult.Builder

setCursor(ByteString value)

public EntityResult.Builder setCursor(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;

Parameter
Name Description
value ByteString

The cursor to set.

Returns
Type Description
EntityResult.Builder

This builder for chaining.

setEntity(Entity value)

public EntityResult.Builder setEntity(Entity value)

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Parameter
Name Description
value Entity
Returns
Type Description
EntityResult.Builder

setEntity(Entity.Builder builderForValue)

public EntityResult.Builder setEntity(Entity.Builder builderForValue)

The resulting entity.

.google.datastore.v1.Entity entity = 1;

Parameter
Name Description
builderForValue Entity.Builder
Returns
Type Description
EntityResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public EntityResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EntityResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EntityResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EntityResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EntityResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EntityResult.Builder
Overrides

setUpdateTime(Timestamp value)

public EntityResult.Builder setUpdateTime(Timestamp value)

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
EntityResult.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public EntityResult.Builder setUpdateTime(Timestamp.Builder builderForValue)

The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EntityResult.Builder

setVersion(long value)

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 entity results.

For 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;

Parameter
Name Description
value long

The version to set.

Returns
Type Description
EntityResult.Builder

This builder for chaining.