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

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

        return $this;
    }
public function setNewTransaction ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Firestore \ V1beta1 \ TransactionOptions :: class ) ; $ this -> writeOneof ( 5 , $ var ) ; return $ this ; }
Starts a new transaction and reads the documents.
Defaults to a read-only transaction.
The new transaction ID will be returned as the first response in the
stream.

Generated from protobuf field <code>.google.firestore.v1beta1.TransactionOptions new_transaction = 5;</code>
@param \Google\Cloud\Firestore\V1beta1\TransactionOptions $var
@return $this
Starts a new transaction and reads the documents . Defaults to a read - only transaction . The new transaction ID will be returned as the first response in the stream .