public sealed class ReadOptions : IMessage<ReadOptions>, IEquatable<ReadOptions>, IDeepCloneable<ReadOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class ReadOptions.
The options shared by read requests.
Implements
IMessageReadOptions, IEquatableReadOptions, IDeepCloneableReadOptions, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.DatastoreV1Assembly
Google.Cloud.Datastore.V1.dll
Constructors
ReadOptions()
public ReadOptions()
ReadOptions(ReadOptions)
public ReadOptions(ReadOptions other)
Parameter | |
---|---|
Name | Description |
other | ReadOptions |
Properties
ConsistencyTypeCase
public ReadOptions.ConsistencyTypeOneofCase ConsistencyTypeCase { get; }
Property Value | |
---|---|
Type | Description |
ReadOptionsConsistencyTypeOneofCase |
NewTransaction
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].
Property Value | |
---|---|
Type | Description |
TransactionOptions |
ReadConsistency
public ReadOptions.Types.ReadConsistency ReadConsistency { get; set; }
The non-transactional read consistency to use.
Property Value | |
---|---|
Type | Description |
ReadOptionsTypesReadConsistency |
ReadTime
public Timestamp ReadTime { get; set; }
Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode.
Property Value | |
---|---|
Type | Description |
Timestamp |
Transaction
public ByteString Transaction { get; set; }
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].
Property Value | |
---|---|
Type | Description |
ByteString |