publicfinalclass EntityResultextendsGeneratedMessageV3implementsEntityResultOrBuilder
The result of fetching an entity from Datastore.
Protobuf type google.datastore.v1.EntityResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
publicstaticfinalintCREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
CURSOR_FIELD_NUMBER
publicstaticfinalintCURSOR_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ENTITY_FIELD_NUMBER
publicstaticfinalintENTITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
UPDATE_TIME_FIELD_NUMBER
publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VERSION_FIELD_NUMBER
publicstaticfinalintVERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticEntityResultgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticEntityResult.BuildernewBuilder()
newBuilder(EntityResult prototype)
publicstaticEntityResult.BuildernewBuilder(EntityResultprototype)
publicstaticEntityResultparseDelimitedFrom(InputStreaminput)
publicstaticEntityResultparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticEntityResultparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticEntityResultparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticEntityResultparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticEntityResultparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticEntityResultparseFrom(CodedInputStreaminput)
publicstaticEntityResultparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticEntityResultparseFrom(InputStreaminput)
publicstaticEntityResultparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticEntityResultparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticEntityResultparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<EntityResult>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCreateTime()
publicTimestampgetCreateTime()
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 |
| Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
publicTimestampOrBuildergetCreateTimeOrBuilder()
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;
getCursor()
publicByteStringgetCursor()
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;
getDefaultInstanceForType()
publicEntityResultgetDefaultInstanceForType()
getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
| Returns |
| Type |
Description |
Entity |
The entity.
|
getEntityOrBuilder()
publicEntityOrBuildergetEntityOrBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
getParserForType()
publicParser<EntityResult>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getUpdateTime()
publicTimestampgetUpdateTime()
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 |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
publicTimestampOrBuildergetUpdateTimeOrBuilder()
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;
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.
|
hasCreateTime()
publicbooleanhasCreateTime()
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 |
| Type |
Description |
boolean |
Whether the createTime field is set.
|
hasEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
| Returns |
| Type |
Description |
boolean |
Whether the entity field is set.
|
hasUpdateTime()
publicbooleanhasUpdateTime()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicEntityResult.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedEntityResult.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicEntityResult.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides