Show / Hide Table of Contents

Class Transaction

A transaction.

Inheritance
object
Transaction
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1.Data
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class Transaction : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Id

id may be used to identify the transaction in subsequent Read, ExecuteSql, Commit, or Rollback calls. Single-use read-only transactions do not have IDs, because single-use transactions do not support multiple requests.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

PrecommitToken

A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the BeginTransaction. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction.

Declaration
[JsonProperty("precommitToken")]
public virtual MultiplexedSessionPrecommitToken PrecommitToken { get; set; }
Property Value
Type Description
MultiplexedSessionPrecommitToken

ReadTimestamp

object representation of ReadTimestampRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ReadTimestampDateTimeOffset instead.")]
public virtual object ReadTimestamp { get; set; }
Property Value
Type Description
object

ReadTimestampDateTimeOffset

DateTimeOffset representation of ReadTimestampRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? ReadTimestampDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

ReadTimestampRaw

For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Declaration
[JsonProperty("readTimestamp")]
public virtual string ReadTimestampRaw { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX