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.
[[["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-09-04 UTC."],[],[],null,["# Interface EntityResultOrBuilder (2.31.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.31.2 (latest)](/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.EntityResultOrBuilder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.EntityResultOrBuilder) \n\n public interface EntityResultOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCreateTime()\n\n public abstract Timestamp getCreateTime()\n\nThe time at which the entity was created.\nThis field is set for\n`FULL` entity results.\nIf this entity is missing, this field will not be set.\n\n`.google.protobuf.Timestamp create_time = 6;`\n\n### getCreateTimeOrBuilder()\n\n public abstract TimestampOrBuilder getCreateTimeOrBuilder()\n\nThe time at which the entity was created.\nThis field is set for\n`FULL` entity results.\nIf this entity is missing, this field will not be set.\n\n`.google.protobuf.Timestamp create_time = 6;`\n\n### getCursor()\n\n public abstract ByteString getCursor()\n\nA cursor that points to the position after the result entity.\nSet only when the `EntityResult` is part of a `QueryResultBatch` message.\n\n`bytes cursor = 3;`\n\n### getEntity()\n\n public abstract Entity getEntity()\n\nThe resulting entity.\n\n`.google.datastore.v1.Entity entity = 1;`\n\n### getEntityOrBuilder()\n\n public abstract EntityOrBuilder getEntityOrBuilder()\n\nThe resulting entity.\n\n`.google.datastore.v1.Entity entity = 1;`\n\n### getUpdateTime()\n\n public abstract Timestamp getUpdateTime()\n\nThe time at which the entity was last changed.\nThis field is set for\n`FULL` entity results.\nIf this entity is missing, this field will not be set.\n\n`.google.protobuf.Timestamp update_time = 5;`\n\n### getUpdateTimeOrBuilder()\n\n public abstract TimestampOrBuilder getUpdateTimeOrBuilder()\n\nThe time at which the entity was last changed.\nThis field is set for\n`FULL` entity results.\nIf this entity is missing, this field will not be set.\n\n`.google.protobuf.Timestamp update_time = 5;`\n\n### getVersion()\n\n public abstract long getVersion()\n\nThe version of the entity, a strictly positive number that monotonically\nincreases with changes to the entity.\n\nThis field is set for\n`FULL` entity results.\n\nFor missing entities in\n`LookupResponse`, this is the version of the snapshot that was used to look\nup the entity, and it is always set except for eventually consistent reads.\n\n`int64 version = 4;`\n\n### hasCreateTime()\n\n public abstract boolean hasCreateTime()\n\nThe time at which the entity was created.\nThis field is set for\n`FULL` entity results.\nIf this entity is missing, this field will not be set.\n\n`.google.protobuf.Timestamp create_time = 6;`\n\n### hasEntity()\n\n public abstract boolean hasEntity()\n\nThe resulting entity.\n\n`.google.datastore.v1.Entity entity = 1;`\n\n### hasUpdateTime()\n\n public abstract boolean hasUpdateTime()\n\nThe time at which the entity was last changed.\nThis field is set for\n`FULL` entity results.\nIf this entity is missing, this field will not be set.\n\n`.google.protobuf.Timestamp update_time = 5;`"]]