Class EntityResult.Builder (2.18.5)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EntityResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EntityResult.Builder
Overrides

build()

public EntityResult build()
Returns
TypeDescription
EntityResult

buildPartial()

public EntityResult buildPartial()
Returns
TypeDescription
EntityResult

clear()

public EntityResult.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EntityResult.Builder

This builder for chaining.

clearEntity()

public EntityResult.Builder clearEntity()

The resulting entity.

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

Returns
TypeDescription
EntityResult.Builder

clearField(Descriptors.FieldDescriptor field)

public EntityResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EntityResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EntityResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EntityResult.Builder

This builder for chaining.

clone()

public EntityResult.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The cursor.

getDefaultInstanceForType()

public EntityResult getDefaultInstanceForType()
Returns
TypeDescription
EntityResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntity()

public Entity getEntity()

The resulting entity.

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

Returns
TypeDescription
Entity

The entity.

getEntityBuilder()

public Entity.Builder getEntityBuilder()

The resulting entity.

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

Returns
TypeDescription
Entity.Builder

getEntityOrBuilder()

public EntityOrBuilder getEntityOrBuilder()

The resulting entity.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

hasEntity()

public boolean hasEntity()

The resulting entity.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
EntityResult.Builder

mergeEntity(Entity value)

public EntityResult.Builder mergeEntity(Entity value)

The resulting entity.

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

Parameter
NameDescription
valueEntity
Returns
TypeDescription
EntityResult.Builder

mergeFrom(EntityResult other)

public EntityResult.Builder mergeFrom(EntityResult other)
Parameter
NameDescription
otherEntityResult
Returns
TypeDescription
EntityResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EntityResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EntityResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EntityResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EntityResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueByteString

The cursor to set.

Returns
TypeDescription
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
NameDescription
valueEntity
Returns
TypeDescription
EntityResult.Builder

setEntity(Entity.Builder builderForValue)

public EntityResult.Builder setEntity(Entity.Builder builderForValue)

The resulting entity.

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

Parameter
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
EntityResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public EntityResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EntityResult.Builder
Overrides

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

public EntityResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EntityResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EntityResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valuelong

The version to set.

Returns
TypeDescription
EntityResult.Builder

This builder for chaining.