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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EntityResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public EntityResult build()
Returns
buildPartial()
public EntityResult buildPartial()
Returns
clear()
public EntityResult.Builder clear()
Returns
Overrides
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
clearEntity()
public EntityResult.Builder clearEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public EntityResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public EntityResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public EntityResult.Builder clone()
Returns
Overrides
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
getDefaultInstanceForType()
public EntityResult getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getEntityOrBuilder()
public EntityOrBuilder getEntityOrBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Returns
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
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
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
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.
|
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeEntity(Entity value)
public EntityResult.Builder mergeEntity(Entity value)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Parameter
Returns
mergeFrom(EntityResult other)
public EntityResult.Builder mergeFrom(EntityResult other)
Parameter
Returns
public EntityResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EntityResult.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EntityResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setEntity(Entity value)
public EntityResult.Builder setEntity(Entity value)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Parameter
Returns
setEntity(Entity.Builder builderForValue)
public EntityResult.Builder setEntity(Entity.Builder builderForValue)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public EntityResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EntityResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EntityResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
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