The enum numeric value on the wire for readConsistency.
getReadTime()
publicabstractTimestampgetReadTime()
Reads entities as they were at the given time. This value is only
supported for Cloud Firestore in Datastore mode.
This must be a microsecond precision timestamp within the past one hour,
or if Point-in-Time Recovery is enabled, can additionally be a whole
minute timestamp within the past 7 days.
Reads entities as they were at the given time. This value is only
supported for Cloud Firestore in Datastore mode.
This must be a microsecond precision timestamp within the past one hour,
or if Point-in-Time Recovery is enabled, can additionally be a whole
minute timestamp within the past 7 days.
Reads entities as they were at the given time. This value is only
supported for Cloud Firestore in Datastore mode.
This must be a microsecond precision timestamp within the past one hour,
or if Point-in-Time Recovery is enabled, can additionally be a whole
minute timestamp within the past 7 days.
[[["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 ReadOptionsOrBuilder (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.ReadOptionsOrBuilder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.ReadOptionsOrBuilder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.ReadOptionsOrBuilder) \n\n public interface ReadOptionsOrBuilder 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### getConsistencyTypeCase()\n\n public abstract ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()\n\n### getNewTransaction()\n\n public abstract TransactionOptions getNewTransaction()\n\nOptions for beginning a new transaction for this request.\n\nThe new transaction identifier will be returned in the corresponding\nresponse as either\nLookupResponse.transaction\nor\nRunQueryResponse.transaction.\n\n`.google.datastore.v1.TransactionOptions new_transaction = 3;`\n\n### getNewTransactionOrBuilder()\n\n public abstract TransactionOptionsOrBuilder getNewTransactionOrBuilder()\n\nOptions for beginning a new transaction for this request.\n\nThe new transaction identifier will be returned in the corresponding\nresponse as either\nLookupResponse.transaction\nor\nRunQueryResponse.transaction.\n\n`.google.datastore.v1.TransactionOptions new_transaction = 3;`\n\n### getReadConsistency()\n\n public abstract ReadOptions.ReadConsistency getReadConsistency()\n\nThe non-transactional read consistency to use.\n\n`.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;`\n\n### getReadConsistencyValue()\n\n public abstract int getReadConsistencyValue()\n\nThe non-transactional read consistency to use.\n\n`.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;`\n\n### getReadTime()\n\n public abstract Timestamp getReadTime()\n\nReads entities as they were at the given time. This value is only\nsupported for Cloud Firestore in Datastore mode.\n\nThis must be a microsecond precision timestamp within the past one hour,\nor if Point-in-Time Recovery is enabled, can additionally be a whole\nminute timestamp within the past 7 days.\n\n`.google.protobuf.Timestamp read_time = 4;`\n\n### getReadTimeOrBuilder()\n\n public abstract TimestampOrBuilder getReadTimeOrBuilder()\n\nReads entities as they were at the given time. This value is only\nsupported for Cloud Firestore in Datastore mode.\n\nThis must be a microsecond precision timestamp within the past one hour,\nor if Point-in-Time Recovery is enabled, can additionally be a whole\nminute timestamp within the past 7 days.\n\n`.google.protobuf.Timestamp read_time = 4;`\n\n### getTransaction()\n\n public abstract ByteString getTransaction()\n\nThe identifier of the transaction in which to read. A\ntransaction identifier is returned by a call to\nDatastore.BeginTransaction.\n\n`bytes transaction = 2;`\n\n### hasNewTransaction()\n\n public abstract boolean hasNewTransaction()\n\nOptions for beginning a new transaction for this request.\n\nThe new transaction identifier will be returned in the corresponding\nresponse as either\nLookupResponse.transaction\nor\nRunQueryResponse.transaction.\n\n`.google.datastore.v1.TransactionOptions new_transaction = 3;`\n\n### hasReadConsistency()\n\n public abstract boolean hasReadConsistency()\n\nThe non-transactional read consistency to use.\n\n`.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;`\n\n### hasReadTime()\n\n public abstract boolean hasReadTime()\n\nReads entities as they were at the given time. This value is only\nsupported for Cloud Firestore in Datastore mode.\n\nThis must be a microsecond precision timestamp within the past one hour,\nor if Point-in-Time Recovery is enabled, can additionally be a whole\nminute timestamp within the past 7 days.\n\n`.google.protobuf.Timestamp read_time = 4;`\n\n### hasTransaction()\n\n public abstract boolean hasTransaction()\n\nThe identifier of the transaction in which to read. A\ntransaction identifier is returned by a call to\nDatastore.BeginTransaction.\n\n`bytes transaction = 2;`"]]