Send feedback
Class EntityResult.Builder (2.2.10)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.10 keyboard_arrow_down
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
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
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
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.
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
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]