Show / Hide Table of Contents

Class CommitRequest

The request for Commit.

Inheritance
object
CommitRequest
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 CommitRequest : IDirectResponseSchema

Properties

ETag

The ETag of the item.

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

MaxCommitDelay

Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field isn't set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.

Declaration
[JsonProperty("maxCommitDelay")]
public virtual object MaxCommitDelay { get; set; }
Property Value
Type Description
object

Mutations

The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.

Declaration
[JsonProperty("mutations")]
public virtual IList<Mutation> Mutations { get; set; }
Property Value
Type Description
IList<Mutation>

PrecommitToken

Optional. If the read-write transaction was executed on a multiplexed session, then you must include the precommit token with the highest sequence number received in this transaction attempt. Failing to do so results in a FailedPrecondition error.

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

RequestOptions

Common options for this request.

Declaration
[JsonProperty("requestOptions")]
public virtual RequestOptions RequestOptions { get; set; }
Property Value
Type Description
RequestOptions

ReturnCommitStats

If true, then statistics related to the transaction is included in the CommitResponse. Default value is false.

Declaration
[JsonProperty("returnCommitStats")]
public virtual bool? ReturnCommitStats { get; set; }
Property Value
Type Description
bool?

SingleUseTransaction

Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the CommitRequest is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it's possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.

Declaration
[JsonProperty("singleUseTransaction")]
public virtual TransactionOptions SingleUseTransaction { get; set; }
Property Value
Type Description
TransactionOptions

TransactionId

Commit a previously-started transaction.

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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX