Service Client: Google::Firestore::V1beta1::Firestore::FirestoreClient
Client stub representing the remote Firestore gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to firestore.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Firestore::V1beta1::Firestore - Compiled Protocol Buffers messages for google/firestore/v1beta1/firestore.proto
SYNOPSIS
use Google::Firestore::V1beta1::Firestore;
my $msg = Google::Firestore::V1beta1::Firestore::GetDocumentRequest->new({
name => $name,
mask => $mask,
transaction => $transaction,
read_time => $read_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Firestore::V1beta1::Firestore::GetDocumentRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/firestore/v1beta1/firestore.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Firestore::V1beta1::Firestore::GetDocumentRequest
The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
$msg->mask()/$msg->mask($value)Type:
Message(Google::Firestore::V1beta1::Common::DocumentMask)The fields to return. If not set, returns all fields.
If the document has a field that is not present in this mask, that field will not be returned in the response.
$msg->transaction()/$msg->transaction($value)Type:
BytesReads the document in a transaction.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Reads the version of the document at the given time. This may not be older than 270 seconds.
Google::Firestore::V1beta1::Firestore::ListDocumentsRequest
The request for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
$msg->collection_id()/$msg->collection_id($value)Type:
StringRequired. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of documents to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe `next_page_token` value returned from a previous List request, if any.
$msg->order_by()/$msg->order_by($value)Type:
StringThe order to sort results by. For example: `priority desc, name`.
$msg->mask()/$msg->mask($value)Type:
Message(Google::Firestore::V1beta1::Common::DocumentMask)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.
$msg->transaction()/$msg->transaction($value)Type:
BytesReads documents in a transaction.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Reads documents as they were at the given time. This may not be older than 270 seconds.
$msg->show_missing()/$msg->show_missing($value)Type:
BoolIf the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time], or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
Requests with `show_missing` may not specify `where` or `order_by`.
Google::Firestore::V1beta1::Firestore::ListDocumentsResponse
The response for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->documents()/$msg->documents($value)Type:
Message(Google::Firestore::V1beta1::Document::Document)The Documents found.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token.
Google::Firestore::V1beta1::Firestore::CreateDocumentRequest
The request for [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
$msg->collection_id()/$msg->collection_id($value)Type:
StringRequired. The collection ID, relative to `parent`, to list. For example: `chatrooms`.
$msg->document_id()/$msg->document_id($value)Type:
StringThe client-assigned document ID to use for this document.
Optional. If not specified, an ID will be assigned by the service.
$msg->document()/$msg->document($value)Type:
Message(Google::Firestore::V1beta1::Document::Document)Required. The document to create. `name` must not be set.
$msg->mask()/$msg->mask($value)Type:
Message(Google::Firestore::V1beta1::Common::DocumentMask)The fields to return. If not set, returns all fields.
If the document has a field that is not present in this mask, that field will not be returned in the response.
Google::Firestore::V1beta1::Firestore::UpdateDocumentRequest
The request for [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
Inherits from Protobuf::Message.
Accessors
$msg->document()/$msg->document($value)Type:
Message(Google::Firestore::V1beta1::Document::Document)Required. The updated document. Creates the document if it does not already exist.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Firestore::V1beta1::Common::DocumentMask)The fields to update. None of the field paths in the mask may contain a reserved name.
If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server.
$msg->mask()/$msg->mask($value)Type:
Message(Google::Firestore::V1beta1::Common::DocumentMask)The fields to return. If not set, returns all fields.
If the document has a field that is not present in this mask, that field will not be returned in the response.
$msg->current_document()/$msg->current_document($value)Type:
Message(Google::Firestore::V1beta1::Common::Precondition)An optional precondition on the document. The request will fail if this is set and not met by the target document.
Google::Firestore::V1beta1::Firestore::DeleteDocumentRequest
The request for [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
$msg->current_document()/$msg->current_document($value)Type:
Message(Google::Firestore::V1beta1::Common::Precondition)An optional precondition on the document. The request will fail if this is set and not met by the target document.
Google::Firestore::V1beta1::Firestore::BatchGetDocumentsRequest
The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
$msg->documents()/$msg->documents($value)Type:
StringThe names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.
$msg->mask()/$msg->mask($value)Type:
Message(Google::Firestore::V1beta1::Common::DocumentMask)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.
$msg->transaction()/$msg->transaction($value)Type:
BytesReads documents in a transaction.
$msg->new_transaction()/$msg->new_transaction($value)Type:
Message(Google::Firestore::V1beta1::Common::TransactionOptions)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.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Reads documents as they were at the given time. This may not be older than 270 seconds.
Google::Firestore::V1beta1::Firestore::BatchGetDocumentsResponse
The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->found()/$msg->found($value)Type:
Message(Google::Firestore::V1beta1::Document::Document)A document that was requested.
$msg->missing()/$msg->missing($value)Type:
StringA document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
$msg->transaction()/$msg->transaction($value)Type:
BytesThe transaction that was started as part of this request. Will only be set in the first response, and only if [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
Google::Firestore::V1beta1::Firestore::BeginTransactionRequest
The request for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
$msg->options()/$msg->options($value)Type:
Message(Google::Firestore::V1beta1::Common::TransactionOptions)The options for the transaction. Defaults to a read-write transaction.
Google::Firestore::V1beta1::Firestore::BeginTransactionResponse
The response for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
Inherits from Protobuf::Message.
Accessors
$msg->transaction()/$msg->transaction($value)Type:
BytesThe transaction that was started.
Google::Firestore::V1beta1::Firestore::CommitRequest
The request for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
$msg->writes()/$msg->writes($value)Type:
Message(Google::Firestore::V1beta1::Write::Write)The writes to apply.
Always executed atomically and in order.
$msg->transaction()/$msg->transaction($value)Type:
BytesIf set, applies all writes in this transaction, and commits it.
Google::Firestore::V1beta1::Firestore::CommitResponse
The response for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
Inherits from Protobuf::Message.
Accessors
$msg->write_results()/$msg->write_results($value)Type:
Message(Google::Firestore::V1beta1::Write::WriteResult)The result of applying the writes.
This i-th write result corresponds to the i-th write in the request.
$msg->commit_time()/$msg->commit_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the commit.
Google::Firestore::V1beta1::Firestore::RollbackRequest
The request for [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
$msg->transaction()/$msg->transaction($value)Type:
BytesRequired. The transaction to roll back.
Google::Firestore::V1beta1::Firestore::RunQueryRequest
The request for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
$msg->structured_query()/$msg->structured_query($value)Type:
Message(Google::Firestore::V1beta1::Query::StructuredQuery)A structured query.
$msg->transaction()/$msg->transaction($value)Type:
BytesReads documents in a transaction.
$msg->new_transaction()/$msg->new_transaction($value)Type:
Message(Google::Firestore::V1beta1::Common::TransactionOptions)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.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Reads documents as they were at the given time. This may not be older than 270 seconds.
Google::Firestore::V1beta1::Firestore::RunQueryResponse
The response for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
Inherits from Protobuf::Message.
Accessors
$msg->transaction()/$msg->transaction($value)Type:
BytesThe transaction that was started as part of this request. Can only be set in the first response, and only if [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request. If set, no other fields will be set in this response.
$msg->document()/$msg->document($value)Type:
Message(Google::Firestore::V1beta1::Document::Document)A query result. Not set when reporting partial progress.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the document was read. This may be monotonically increasing; in this case, the previous documents in the result stream are guaranteed not to have changed between their `read_time` and this one.
If the query returns no results, a response with `read_time` and no `document` will be sent, and this represents the time at which the query was run.
$msg->skipped_results()/$msg->skipped_results($value)Type:
Int32The number of results that have been skipped due to an offset between the last response and the current response.
Google::Firestore::V1beta1::Firestore::PartitionQueryRequest
The request for [Firestore.PartitionQuery][google.firestore.v1beta1.Firestore.PartitionQuery].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents`. Document resource names are not supported; only database resource names can be specified.
$msg->structured_query()/$msg->structured_query($value)Type:
Message(Google::Firestore::V1beta1::Query::StructuredQuery)A structured query. Query must specify collection with all descendants and be ordered by name ascending. Other filters, order bys, limits, offsets, and start/end cursors are not supported.
$msg->partition_count()/$msg->partition_count($value)Type:
Int64The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions returned may be fewer.
For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of workers or compute instances available.
$msg->page_token()/$msg->page_token($value)Type:
StringThe `next_page_token` value returned from a previous call to PartitionQuery that may be used to get an additional set of results. There are no ordering guarantees between sets of results. Thus, using multiple sets of results will require merging the different result sets.
For example, two subsequent calls using a page_token may return:
* cursor B, cursor M, cursor Q * cursor A, cursor U, cursor WTo obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of partitions to return in this call, subject to `partition_count`.
For example, if `partition_count` = 10 and `page_size` = 8, the first call to PartitionQuery will return up to 8 partitions and a `next_page_token` if more results exist. A second call to PartitionQuery will return up to 2 partitions, to complete the total of 10 specified in `partition_count`.
Google::Firestore::V1beta1::Firestore::PartitionQueryResponse
The response for [Firestore.PartitionQuery][google.firestore.v1beta1.Firestore.PartitionQuery].
Inherits from Protobuf::Message.
Accessors
$msg->partitions()/$msg->partitions($value)Type:
Message(Google::Firestore::V1beta1::Query::Cursor)Partition results. Each partition is a split point that can be used by RunQuery as a starting or end point for the query results. The RunQuery requests must be made with the same query supplied to this PartitionQuery request. The partition cursors will be ordered according to same ordering as the results of the query supplied to PartitionQuery.
For example, if a PartitionQuery request returns partition cursors A and B, running the following three queries will return the entire result set of the original query:
* query, end_at A * query, start_at A, end_at B * query, start_at BAn empty result may indicate that the query has too few results to be partitioned.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA page token that may be used to request an additional set of results, up to the number specified by `partition_count` in the PartitionQuery request. If blank, there are no more results.
Google::Firestore::V1beta1::Firestore::WriteRequest
The request for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
The first request creates a stream, or resumes an existing one from a token.
When creating a new stream, the server replies with a response containing only an ID and a token, to use in the next request.
When resuming a stream, the server first streams any responses later than the given token, then a response containing only an up-to-date token, to use in the next request.
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message.
$msg->stream_id()/$msg->stream_id($value)Type:
StringThe ID of the write stream to resume. This may only be set in the first message. When left empty, a new write stream will be created.
$msg->writes()/$msg->writes($value)Type:
Message(Google::Firestore::V1beta1::Write::Write)The writes to apply.
Always executed atomically and in order. This must be empty on the first request. This may be empty on the last request. This must not be empty on all other requests.
$msg->stream_token()/$msg->stream_token($value)Type:
BytesA stream token that was previously sent by the server.
The client should set this field to the token from the most recent [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has received responses up to this token. After sending this token, earlier tokens may not be used anymore.
The server may close the stream if there are too many unacknowledged responses.
Leave this field unset when creating a new stream. To resume a stream at a specific point, set this field and the `stream_id` field.
Leave this field unset when creating a new stream.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Firestore::V1beta1::Firestore::WriteRequest::LabelsEntry)Labels associated with this write request.
Google::Firestore::V1beta1::Firestore::WriteResponse
The response for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
Inherits from Protobuf::Message.
Accessors
$msg->stream_id()/$msg->stream_id($value)Type:
StringThe ID of the stream. Only set on the first message, when a new stream was created.
$msg->stream_token()/$msg->stream_token($value)Type:
BytesA token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point.
This field is always set.
$msg->write_results()/$msg->write_results($value)Type:
Message(Google::Firestore::V1beta1::Write::WriteResult)The result of applying the writes.
This i-th write result corresponds to the i-th write in the request.
$msg->commit_time()/$msg->commit_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the write.
Google::Firestore::V1beta1::Firestore::ListenRequest
A request for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen]
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
$msg->add_target()/$msg->add_target($value)Type:
Message(Google::Firestore::V1beta1::Firestore::Target)A target to add to this stream.
$msg->remove_target()/$msg->remove_target($value)Type:
Int32The ID of a target to remove from this stream.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Firestore::V1beta1::Firestore::ListenRequest::LabelsEntry)Labels associated with this target change.
Google::Firestore::V1beta1::Firestore::ListenResponse
The response for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
Inherits from Protobuf::Message.
Accessors
$msg->target_change()/$msg->target_change($value)Type:
Message(Google::Firestore::V1beta1::Firestore::TargetChange)Targets have changed.
$msg->document_change()/$msg->document_change($value)Type:
Message(Google::Firestore::V1beta1::Write::DocumentChange)A [Document][google.firestore.v1beta1.Document] has changed.
$msg->document_delete()/$msg->document_delete($value)Type:
Message(Google::Firestore::V1beta1::Write::DocumentDelete)A [Document][google.firestore.v1beta1.Document] has been deleted.
$msg->document_remove()/$msg->document_remove($value)Type:
Message(Google::Firestore::V1beta1::Write::DocumentRemove)A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer relevant to that target).
$msg->filter()/$msg->filter($value)Type:
Message(Google::Firestore::V1beta1::Write::ExistenceFilter)A filter to apply to the set of documents previously returned for the given target.
Returned when documents may have been removed from the given target, but the exact documents are unknown.
Google::Firestore::V1beta1::Firestore::Target
A specification of a set of documents to listen to.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Firestore::V1beta1::Firestore::Target::QueryTarget)A target specified by a query.
$msg->documents()/$msg->documents($value)Type:
Message(Google::Firestore::V1beta1::Firestore::Target::DocumentsTarget)A target specified by a set of document names.
$msg->resume_token()/$msg->resume_token($value)Type:
BytesA resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
Using a resume token with a different target is unsupported and may fail.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start listening after a specific `read_time`.
The client must know the state of matching documents at this time.
$msg->target_id()/$msg->target_id($value)Type:
Int32The target ID that identifies the target on the stream. Must be a positive number and non-zero.
$msg->once()/$msg->once($value)Type:
BoolIf the target should be removed once it is current and consistent.
Google::Firestore::V1beta1::Firestore::TargetChange
Targets being watched have changed.
Inherits from Protobuf::Message.
Accessors
$msg->target_change_type()/$msg->target_change_type($value)Type:
Enum(Google::Firestore::V1beta1::TargetChange::TargetChangeType)The type of change that occurred.
$msg->target_ids()/$msg->target_ids($value)Type:
Int32The target IDs of targets that have changed.
If empty, the change applies to all targets.
The order of the target IDs is not defined.
$msg->cause()/$msg->cause($value)Type:
Message(Google::Rpc::Status::Status)The error that resulted in this change, if applicable.
$msg->resume_token()/$msg->resume_token($value)Type:
BytesA token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty.
Not set on every target change.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).
The stream is guaranteed to send a `read_time` with `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
For a given stream, `read_time` is guaranteed to be monotonically increasing.
Enum: TargetChange::TargetChangeType
NO_CHANGE=>0ADD=>1REMOVE=>2CURRENT=>3RESET=>4
Google::Firestore::V1beta1::Firestore::ListCollectionIdsRequest
The request for [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent document. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token. Must be a value from [ListCollectionIdsResponse][google.firestore.v1beta1.ListCollectionIdsResponse].
Google::Firestore::V1beta1::Firestore::ListCollectionIdsResponse
The response from [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
Inherits from Protobuf::Message.
Accessors
$msg->collection_ids()/$msg->collection_ids($value)Type:
StringThe collection ids.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA page token that may be used to continue the list.
Google::Firestore::V1beta1::Firestore::BatchWriteRequest
The request for [Firestore.BatchWrite][google.firestore.v1beta1.Firestore.BatchWrite].
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
$msg->writes()/$msg->writes($value)Type:
Message(Google::Firestore::V1beta1::Write::Write)The writes to apply.
Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Firestore::V1beta1::Firestore::BatchWriteRequest::LabelsEntry)Labels associated with this batch write.
Google::Firestore::V1beta1::Firestore::BatchWriteResponse
The response from [Firestore.BatchWrite][google.firestore.v1beta1.Firestore.BatchWrite].
Inherits from Protobuf::Message.
Accessors
$msg->write_results()/$msg->write_results($value)Type:
Message(Google::Firestore::V1beta1::Write::WriteResult)The result of applying the writes.
This i-th write result corresponds to the i-th write in the request.
$msg->status()/$msg->status($value)Type:
Message(Google::Rpc::Status::Status)The status of applying the writes.
This i-th write status corresponds to the i-th write in the request.
SEE ALSO
Protobuf, Protobuf::Message, Google::Firestore::V1beta1::Firestore::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.