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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EntityResult.BuilderImplements
EntityResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EntityResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EntityResult.Builder |
build()
public EntityResult build()
Type | Description |
EntityResult |
buildPartial()
public EntityResult buildPartial()
Type | Description |
EntityResult |
clear()
public EntityResult.Builder clear()
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;
Type | Description |
EntityResult.Builder | This builder for chaining. |
clearEntity()
public EntityResult.Builder clearEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
EntityResult.Builder |
clearField(Descriptors.FieldDescriptor field)
public EntityResult.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
EntityResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public EntityResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
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;
Type | Description |
EntityResult.Builder | This builder for chaining. |
clone()
public EntityResult.Builder clone()
Type | Description |
EntityResult.Builder |
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;
Type | Description |
ByteString | The cursor. |
getDefaultInstanceForType()
public EntityResult getDefaultInstanceForType()
Type | Description |
EntityResult |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEntity()
public Entity getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
Entity | The entity. |
getEntityBuilder()
public Entity.Builder getEntityBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
Entity.Builder |
getEntityOrBuilder()
public EntityOrBuilder getEntityOrBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
EntityOrBuilder |
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;
Type | Description |
long | The version. |
hasEntity()
public boolean hasEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
boolean | Whether the entity field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEntity(Entity value)
public EntityResult.Builder mergeEntity(Entity value)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Name | Description |
value | Entity |
Type | Description |
EntityResult.Builder |
mergeFrom(EntityResult other)
public EntityResult.Builder mergeFrom(EntityResult other)
Name | Description |
other | EntityResult |
Type | Description |
EntityResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EntityResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityResult.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public EntityResult.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
EntityResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EntityResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
value | ByteString The cursor to set. |
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;
Name | Description |
value | Entity |
Type | Description |
EntityResult.Builder |
setEntity(Entity.Builder builderForValue)
public EntityResult.Builder setEntity(Entity.Builder builderForValue)
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Name | Description |
builderForValue | Entity.Builder |
Type | Description |
EntityResult.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public EntityResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EntityResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EntityResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
EntityResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final EntityResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
value | long The version to set. |
Type | Description |
EntityResult.Builder | This builder for chaining. |