public TransactionOptions NewTransaction { get; set; }
Options for beginning a new transaction for this request.
The new transaction identifier will be returned in the corresponding
response as either
[LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction]
or
[RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
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.
The identifier of the transaction in which to read. A
transaction identifier is returned by a call to
[Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
[[["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-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eReadOptions\u003c/code\u003e class within the Google Cloud Datastore v1 API, detailing its structure and functionality across various versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReadOptions\u003c/code\u003e class, inheriting from object and implementing multiple interfaces, defines the options shared by read requests in the Google Cloud Datastore.\u003c/p\u003e\n"],["\u003cp\u003eIt offers properties such as \u003ccode\u003eConsistencyTypeCase\u003c/code\u003e, \u003ccode\u003eHasReadConsistency\u003c/code\u003e, \u003ccode\u003eHasTransaction\u003c/code\u003e, \u003ccode\u003eNewTransaction\u003c/code\u003e, \u003ccode\u003eReadConsistency\u003c/code\u003e, \u003ccode\u003eReadTime\u003c/code\u003e, and \u003ccode\u003eTransaction\u003c/code\u003e, allowing configuration of read operations.\u003c/p\u003e\n"],["\u003cp\u003eThe page documents versions of ReadOptions from 4.15.0 down to 3.2.0, with 4.15.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003eConstructors are available for creating \u003ccode\u003eReadOptions\u003c/code\u003e objects, either default or based on another existing \u003ccode\u003eReadOptions\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Datastore v1 API - Class ReadOptions (4.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.14.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.13.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.12.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.11.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.10.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.9.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.8.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.7.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.6.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.5.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.4.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.3.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.2.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.1.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.0.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.5.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.4.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.3.0/Google.Cloud.Datastore.V1.ReadOptions)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.2.0/Google.Cloud.Datastore.V1.ReadOptions) \n\n public sealed class ReadOptions : IMessage\u003cReadOptions\u003e, IEquatable\u003cReadOptions\u003e, IDeepCloneable\u003cReadOptions\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Datastore v1 API class ReadOptions.\n\nThe options shared by read requests. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ReadOptions \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReadOptions](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.ReadOptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReadOptions](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.ReadOptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ReadOptions](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.ReadOptions), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Datastore.V1](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.V1.dll\n\nConstructors\n------------\n\n### ReadOptions()\n\n public ReadOptions()\n\n### ReadOptions(ReadOptions)\n\n public ReadOptions(ReadOptions other)\n\nProperties\n----------\n\n### ConsistencyTypeCase\n\n public ReadOptions.ConsistencyTypeOneofCase ConsistencyTypeCase { get; }\n\n### HasReadConsistency\n\n public bool HasReadConsistency { get; }\n\nGets whether the \"read_consistency\" field is set\n\n### HasTransaction\n\n public bool HasTransaction { get; }\n\nGets whether the \"transaction\" field is set\n\n### NewTransaction\n\n public TransactionOptions NewTransaction { get; set; }\n\nOptions for beginning a new transaction for this request.\n\nThe new transaction identifier will be returned in the corresponding\nresponse as either\n\\[LookupResponse.transaction\\]\\[google.datastore.v1.LookupResponse.transaction\\]\nor\n\\[RunQueryResponse.transaction\\]\\[google.datastore.v1.RunQueryResponse.transaction\\].\n\n### ReadConsistency\n\n public ReadOptions.Types.ReadConsistency ReadConsistency { get; set; }\n\nThe non-transactional read consistency to use.\n\n### ReadTime\n\n public Timestamp ReadTime { get; set; }\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### Transaction\n\n public ByteString Transaction { get; set; }\n\nThe identifier of the transaction in which to read. A\ntransaction identifier is returned by a call to\n\\[Datastore.BeginTransaction\\]\\[google.datastore.v1.Datastore.BeginTransaction\\]."]]