Firestore/src/V1beta1/TransactionOptions.php
public function setReadWrite($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\TransactionOptions_ReadWrite::class);
        $this->writeOneof(3, $var);

        return $this;
    }
public function setReadWrite($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\TransactionOptions_ReadWrite::class);
        $this->writeOneof(3, $var);

        return $this;
    }
public function setReadWrite ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Firestore \ V1beta1 \ TransactionOptions_ReadWrite :: class ) ; $ this -> writeOneof ( 3 , $ var ) ; return $ this ; }
The transaction can be used for both read and write operations.

Generated from protobuf field <code>.google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;</code>
@param \Google\Cloud\Firestore\V1beta1\TransactionOptions\ReadWrite $var
@return $this
The transaction can be used for both read and write operations .