public sealed class BeginTransactionRequest : IMessage<BeginTransactionRequest>, IEquatable<BeginTransactionRequest>, IDeepCloneable<BeginTransactionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class BeginTransactionRequest.
The request for
[BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].
Optional. Required for read-write transactions on a multiplexed session
that commit mutations but do not perform any reads or queries. Clients
should randomly select one of the mutations from the mutation set and send
it as a part of this request.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
public RequestOptions RequestOptions { get; set; }
Common options for this request.
Priority is ignored for this request. Setting the priority in this
request_options struct will not do anything. To set the priority for a
transaction, set it on the reads and writes that are part of this
transaction instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation page covers the \u003ccode\u003eBeginTransactionRequest\u003c/code\u003e class within the Google Cloud Spanner v1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, with several older versions ranging from \u003ccode\u003e5.0.0-beta04\u003c/code\u003e down to \u003ccode\u003e3.5.0\u003c/code\u003e also documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBeginTransactionRequest\u003c/code\u003e class is used to initiate a new transaction, with necessary parameters such as \u003ccode\u003eSession\u003c/code\u003e and \u003ccode\u003eOptions\u003c/code\u003e being required.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBeginTransactionRequest\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eBeginTransactionRequest\u003c/code\u003e include \u003ccode\u003eMutationKey\u003c/code\u003e, \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eRequestOptions\u003c/code\u003e, \u003ccode\u003eSession\u003c/code\u003e, and \u003ccode\u003eSessionAsSessionName\u003c/code\u003e, which define the transaction's characteristics and the session it operates within.\u003c/p\u003e\n"]]],[],null,[]]