documents = $documents; } /** * @return string[] */ public function getDocuments() { return $this->documents; } /** * The fields to return. If not set, returns all fields. If a document has a * field that is not present in this mask, that field will not be returned in * the response. * * @param DocumentMask $mask */ public function setMask(DocumentMask $mask) { $this->mask = $mask; } /** * @return DocumentMask */ public function getMask() { return $this->mask; } /** * 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. * * @param TransactionOptions $newTransaction */ public function setNewTransaction(TransactionOptions $newTransaction) { $this->newTransaction = $newTransaction; } /** * @return TransactionOptions */ public function getNewTransaction() { return $this->newTransaction; } /** * Reads documents as they were at the given time. This must be a microsecond * precision timestamp within the past one hour, or if Point-in-Time Recovery * is enabled, can additionally be a whole minute timestamp within the past 7 * days. * * @param string $readTime */ public function setReadTime($readTime) { $this->readTime = $readTime; } /** * @return string */ public function getReadTime() { return $this->readTime; } /** * Reads documents in a transaction. * * @param string $transaction */ public function setTransaction($transaction) { $this->transaction = $transaction; } /** * @return string */ public function getTransaction() { return $this->transaction; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BatchGetDocumentsRequest::class, 'Google_Service_Firestore_BatchGetDocumentsRequest');