Spanner/src/V1/PartitionResponse.php
public function setTransaction($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Transaction::class);
        $this->transaction = $var;

        return $this;
    }
public function setTransaction($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Transaction::class);
        $this->transaction = $var;

        return $this;
    }
public function setTransaction ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Spanner \ V1 \ Transaction :: class ) ; $ this -> transaction = $ var ; return $ this ; }
Transaction created by this request.

Generated from protobuf field <code>.google.spanner.v1.Transaction transaction = 2;</code>
@param \Google\Cloud\Spanner\V1\Transaction $var
@return $this
Transaction created by this request .