public sealed class BeginTransactionRequest : IMessage<BeginTransactionRequest>, IEquatable<BeginTransactionRequest>, IDeepCloneable<BeginTransactionRequest>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Spanner v1 API class BeginTransactionRequest.
The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].
Implements
IMessageBeginTransactionRequest, IEquatableBeginTransactionRequest, IDeepCloneableBeginTransactionRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Spanner.V1Assembly
Google.Cloud.Spanner.V1.dll
Constructors
BeginTransactionRequest()
public BeginTransactionRequest()BeginTransactionRequest(BeginTransactionRequest)
public BeginTransactionRequest(BeginTransactionRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
BeginTransactionRequest |
Properties
MutationKey
public Mutation MutationKey { get; set; }Optional. Required for read-write transactions on a multiplexed session that commit mutations but don't perform any reads or queries. You must randomly select one of the mutations from the mutation set and send it as a part of this request.
| Property Value | |
|---|---|
| Type | Description |
Mutation |
|
Options
public TransactionOptions Options { get; set; }Required. Options for the new transaction.
| Property Value | |
|---|---|
| Type | Description |
TransactionOptions |
|
RequestOptions
public RequestOptions RequestOptions { get; set; }Common options for this request.
Priority is ignored for this request. Setting the priority in this
request_options struct doesn't do anything. To set the priority for a
transaction, set it on the reads and writes that are part of this
transaction instead.
| Property Value | |
|---|---|
| Type | Description |
RequestOptions |
|
RoutingHint
public RoutingHint RoutingHint { get; set; }Optional. Makes the Spanner requests location-aware if present.
It gives the server hints that can be used to route the request to an appropriate server, potentially significantly decreasing latency and improving throughput. To achieve improved performance, most fields must be filled in with accurate values.
| Property Value | |
|---|---|
| Type | Description |
RoutingHint |
|
Session
public string Session { get; set; }Required. The session in which the transaction runs.
| Property Value | |
|---|---|
| Type | Description |
string |
|
SessionAsSessionName
public SessionName SessionAsSessionName { get; set; }SessionName-typed view over the Session resource name property.
| Property Value | |
|---|---|
| Type | Description |
SessionName |
|