class BeginTransactionRequest extends Message

The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].

Protobuf type Google\Spanner\V1\BeginTransactionRequest

Methods

__construct()

No description

string
getSession()

Required. The session in which the transaction runs.

setSession(string $var)

Required. The session in which the transaction runs.

getOptions()

Required. Options for the new transaction.

setOptions(TransactionOptions $var)

Required. Options for the new transaction.

Details

at line 31
__construct()

at line 42
string getSession()

Required. The session in which the transaction runs.

Generated from protobuf field string session = 1;

Return Value

string

at line 53
setSession(string $var)

Required. The session in which the transaction runs.

Generated from protobuf field string session = 1;

Parameters

string $var

at line 65
TransactionOptions getOptions()

Required. Options for the new transaction.

Generated from protobuf field .google.spanner.v1.TransactionOptions options = 2;

Return Value

TransactionOptions

at line 76
setOptions(TransactionOptions $var)

Required. Options for the new transaction.

Generated from protobuf field .google.spanner.v1.TransactionOptions options = 2;

Parameters

TransactionOptions $var