Class EntityResult (3.4.0)

public sealed class EntityResult : IMessage<EntityResult>, IEquatable<EntityResult>, IDeepCloneable<EntityResult>, IBufferMessage, IMessage

The result of fetching an entity from Datastore.

Inheritance

Object > EntityResult

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Constructors

EntityResult()

public EntityResult()

EntityResult(EntityResult)

public EntityResult(EntityResult other)
Parameter
NameDescription
otherEntityResult

Properties

Cursor

public ByteString Cursor { get; set; }

A cursor that points to the position after the result entity. Set only when the EntityResult is part of a QueryResultBatch message.

Property Value
TypeDescription
ByteString

Entity

public Entity Entity { get; set; }

The resulting entity.

Property Value
TypeDescription
Entity

Version

public long Version { get; set; }

The version of the entity, a strictly positive number that monotonically increases with changes to the entity.

This field is set for [FULL][google.datastore.v1.EntityResult.ResultType.FULL] entity results.

For [missing][google.datastore.v1.LookupResponse.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.

Property Value
TypeDescription
Int64