public final class EntityResult extends GeneratedMessageV3 implements EntityResultOrBuilder
The result of fetching an entity from Datastore.
Protobuf type google.datastore.v1.EntityResult
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > EntityResultImplements
EntityResultOrBuilderStatic Fields
CURSOR_FIELD_NUMBER
public static final int CURSOR_FIELD_NUMBER
Type | Description |
int |
ENTITY_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
Type | Description |
int |
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static EntityResult getDefaultInstance()
Type | Description |
EntityResult |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static EntityResult.Builder newBuilder()
Type | Description |
EntityResult.Builder |
newBuilder(EntityResult prototype)
public static EntityResult.Builder newBuilder(EntityResult prototype)
Name | Description |
prototype | EntityResult |
Type | Description |
EntityResult.Builder |
parseDelimitedFrom(InputStream input)
public static EntityResult parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
EntityResult |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityResult |
Type | Description |
IOException |
parseFrom(byte[] data)
public static EntityResult parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
EntityResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EntityResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static EntityResult parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
EntityResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EntityResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static EntityResult parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
EntityResult |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityResult |
Type | Description |
IOException |
parseFrom(InputStream input)
public static EntityResult parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
EntityResult |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityResult |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static EntityResult parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
EntityResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EntityResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityResult |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<EntityResult> parser()
Type | Description |
Parser<EntityResult> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
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 |
getEntity()
public Entity getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
Entity | The entity. |
getEntityOrBuilder()
public EntityOrBuilder getEntityOrBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
EntityOrBuilder |
getParserForType()
public Parser<EntityResult> getParserForType()
Type | Description |
Parser<EntityResult> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public EntityResult.Builder newBuilderForType()
Type | Description |
EntityResult.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected EntityResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
EntityResult.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public EntityResult.Builder toBuilder()
Type | Description |
EntityResult.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |