Class EntityResult (0.14.1)

public final class EntityResult extends GeneratedMessageV3 implements EntityResultOrBuilder

The result of fetching an entity from Datastore.

Protobuf type google.events.cloud.datastore.v1.EntityResult

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

CURSOR_FIELD_NUMBER

public static final int CURSOR_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_FIELD_NUMBER

public static final int ENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EntityResult getDefaultInstance()
Returns
TypeDescription
EntityResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static EntityResult.Builder newBuilder()
Returns
TypeDescription
EntityResult.Builder

newBuilder(EntityResult prototype)

public static EntityResult.Builder newBuilder(EntityResult prototype)
Parameter
NameDescription
prototypeEntityResult
Returns
TypeDescription
EntityResult.Builder

parseDelimitedFrom(InputStream input)

public static EntityResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EntityResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EntityResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EntityResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EntityResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EntityResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EntityResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EntityResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EntityResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EntityResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntityResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EntityResult> parser()
Returns
TypeDescription
Parser<EntityResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

getEntity()

public Entity getEntity()

The resulting entity.

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

Returns
TypeDescription
Entity

The entity.

getEntityOrBuilder()

public EntityOrBuilder getEntityOrBuilder()

The resulting entity.

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

Returns
TypeDescription
EntityOrBuilder

getParserForType()

public Parser<EntityResult> getParserForType()
Returns
TypeDescription
Parser<EntityResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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.events.cloud.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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EntityResult.Builder newBuilderForType()
Returns
TypeDescription
EntityResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EntityResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EntityResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EntityResult.Builder toBuilder()
Returns
TypeDescription
EntityResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException