Datastore/src/V1/BeginTransactionRequest.php
public function setTransactionOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions::class);
        $this->transaction_options = $var;

        return $this;
    }
public function setTransactionOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions::class);
        $this->transaction_options = $var;

        return $this;
    }
public function setTransactionOptions ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Datastore \ V1 \ TransactionOptions :: class ) ; $ this -> transaction_options = $ var ; return $ this ; }
Options for a new transaction.

Generated from protobuf field <code>.google.datastore.v1.TransactionOptions transaction_options = 10;</code>
@param \Google\Cloud\Datastore\V1\TransactionOptions $var
@return $this
Options for a new transaction .