From 511eeca54c4b3cbe99042315748784b382eb6583 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 11 Jul 2026 18:20:00 -0700 Subject: [PATCH] Regenerate firestore client --- src/Firestore.php | 38 ++++++++++++++ src/Firestore/BatchGetDocumentsRequest.php | 18 +++++++ src/Firestore/BatchWriteRequest.php | 18 +++++++ src/Firestore/BeginTransactionRequest.php | 18 +++++++ src/Firestore/CommitRequest.php | 18 +++++++ src/Firestore/ExecutePipelineRequest.php | 18 +++++++ src/Firestore/ListCollectionIdsRequest.php | 18 +++++++ src/Firestore/ListenRequest.php | 18 +++++++ src/Firestore/PartitionQueryRequest.php | 18 +++++++ src/Firestore/RequestOptions.php | 49 +++++++++++++++++++ .../Resource/ProjectsDatabasesDocuments.php | 24 +++++++++ src/Firestore/RollbackRequest.php | 18 +++++++ src/Firestore/RunAggregationQueryRequest.php | 18 +++++++ src/Firestore/RunQueryRequest.php | 18 +++++++ src/Firestore/WriteRequest.php | 18 +++++++ 15 files changed, 327 insertions(+) create mode 100644 src/Firestore/RequestOptions.php diff --git a/src/Firestore.php b/src/Firestore.php index 4ad5af78e86..a39a7f3811d 100644 --- a/src/Firestore.php +++ b/src/Firestore.php @@ -447,6 +447,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'string', 'repeated' => true, ], + 'requestOptions.requestTags' => [ + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ], ], ],'delete' => [ 'path' => 'v1/{+name}', @@ -465,6 +470,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'location' => 'query', 'type' => 'string', ], + 'requestOptions.requestTags' => [ + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ], ], ],'executePipeline' => [ 'path' => 'v1/{+database}/documents:executePipeline', @@ -494,6 +504,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'location' => 'query', 'type' => 'string', ], + 'requestOptions.requestTags' => [ + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ], 'transaction' => [ 'location' => 'query', 'type' => 'string', @@ -534,6 +549,15 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'location' => 'query', 'type' => 'string', ], + 'recursive' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'requestOptions.requestTags' => [ + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ], 'showMissing' => [ 'location' => 'query', 'type' => 'boolean', @@ -588,6 +612,15 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'location' => 'query', 'type' => 'string', ], + 'recursive' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'requestOptions.requestTags' => [ + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ], 'showMissing' => [ 'location' => 'query', 'type' => 'boolean', @@ -639,6 +672,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'string', 'repeated' => true, ], + 'requestOptions.requestTags' => [ + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ], 'updateMask.fieldPaths' => [ 'location' => 'query', 'type' => 'string', diff --git a/src/Firestore/BatchGetDocumentsRequest.php b/src/Firestore/BatchGetDocumentsRequest.php index 964f33c9bbe..db96752657a 100644 --- a/src/Firestore/BatchGetDocumentsRequest.php +++ b/src/Firestore/BatchGetDocumentsRequest.php @@ -42,6 +42,8 @@ class BatchGetDocumentsRequest extends \Google\Collection * @var string */ public $readTime; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; /** * Reads documents in a transaction. * @@ -123,6 +125,22 @@ public function getReadTime() { return $this->readTime; } + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * Reads documents in a transaction. * diff --git a/src/Firestore/BatchWriteRequest.php b/src/Firestore/BatchWriteRequest.php index e80660dd775..1d04e469467 100644 --- a/src/Firestore/BatchWriteRequest.php +++ b/src/Firestore/BatchWriteRequest.php @@ -26,6 +26,8 @@ class BatchWriteRequest extends \Google\Collection * @var string[] */ public $labels; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; protected $writesType = Write::class; protected $writesDataType = 'array'; @@ -45,6 +47,22 @@ public function getLabels() { return $this->labels; } + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * The writes to apply. Method does not apply writes atomically and does not * guarantee ordering. Each write succeeds or fails independently. You cannot diff --git a/src/Firestore/BeginTransactionRequest.php b/src/Firestore/BeginTransactionRequest.php index 9eb397468d2..ab7ed4607d3 100644 --- a/src/Firestore/BeginTransactionRequest.php +++ b/src/Firestore/BeginTransactionRequest.php @@ -21,6 +21,8 @@ class BeginTransactionRequest extends \Google\Model { protected $optionsType = TransactionOptions::class; protected $optionsDataType = ''; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; /** * The options for the transaction. Defaults to a read-write transaction. @@ -38,6 +40,22 @@ public function getOptions() { return $this->options; } + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Firestore/CommitRequest.php b/src/Firestore/CommitRequest.php index 6a789f30992..4fd1655f1af 100644 --- a/src/Firestore/CommitRequest.php +++ b/src/Firestore/CommitRequest.php @@ -20,6 +20,8 @@ class CommitRequest extends \Google\Collection { protected $collection_key = 'writes'; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; /** * If set, applies all writes in this transaction, and commits it. * @@ -29,6 +31,22 @@ class CommitRequest extends \Google\Collection protected $writesType = Write::class; protected $writesDataType = 'array'; + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * If set, applies all writes in this transaction, and commits it. * diff --git a/src/Firestore/ExecutePipelineRequest.php b/src/Firestore/ExecutePipelineRequest.php index 1df07cec3cb..11a58cb9efb 100644 --- a/src/Firestore/ExecutePipelineRequest.php +++ b/src/Firestore/ExecutePipelineRequest.php @@ -38,6 +38,8 @@ class ExecutePipelineRequest extends \Google\Model * @var string */ public $readTime; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; protected $structuredPipelineType = StructuredPipeline::class; protected $structuredPipelineDataType = ''; /** @@ -103,6 +105,22 @@ public function getReadTime() { return $this->readTime; } + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * A pipelined operation. * diff --git a/src/Firestore/ListCollectionIdsRequest.php b/src/Firestore/ListCollectionIdsRequest.php index 15fca13247c..35dbadd3746 100644 --- a/src/Firestore/ListCollectionIdsRequest.php +++ b/src/Firestore/ListCollectionIdsRequest.php @@ -40,6 +40,8 @@ class ListCollectionIdsRequest extends \Google\Model * @var string */ public $readTime; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; /** * The maximum number of results to return. @@ -92,6 +94,22 @@ public function getReadTime() { return $this->readTime; } + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Firestore/ListenRequest.php b/src/Firestore/ListenRequest.php index 74eebd1cd3a..bf0a9d0158a 100644 --- a/src/Firestore/ListenRequest.php +++ b/src/Firestore/ListenRequest.php @@ -33,6 +33,8 @@ class ListenRequest extends \Google\Model * @var int */ public $removeTarget; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; /** * A target to add to this stream. @@ -82,6 +84,22 @@ public function getRemoveTarget() { return $this->removeTarget; } + /** + * Optional. The request options for the request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Firestore/PartitionQueryRequest.php b/src/Firestore/PartitionQueryRequest.php index 95cf0466b87..8c9d250b1cb 100644 --- a/src/Firestore/PartitionQueryRequest.php +++ b/src/Firestore/PartitionQueryRequest.php @@ -64,6 +64,8 @@ class PartitionQueryRequest extends \Google\Model * @var string */ public $readTime; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; protected $structuredQueryType = StructuredQuery::class; protected $structuredQueryDataType = ''; @@ -152,6 +154,22 @@ public function getReadTime() { return $this->readTime; } + /** + * Optional. The request options for the request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * A structured query. Query must specify collection with all descendants and * be ordered by name ascending. Other filters, order bys, limits, offsets, diff --git a/src/Firestore/RequestOptions.php b/src/Firestore/RequestOptions.php new file mode 100644 index 00000000000..a6afe75d692 --- /dev/null +++ b/src/Firestore/RequestOptions.php @@ -0,0 +1,49 @@ +requestTags = $requestTags; + } + /** + * @return string[] + */ + public function getRequestTags() + { + return $this->requestTags; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RequestOptions::class, 'Google_Service_Firestore_RequestOptions'); diff --git a/src/Firestore/Resource/ProjectsDatabasesDocuments.php b/src/Firestore/Resource/ProjectsDatabasesDocuments.php index 0cd403985d9..f7d0e615e22 100644 --- a/src/Firestore/Resource/ProjectsDatabasesDocuments.php +++ b/src/Firestore/Resource/ProjectsDatabasesDocuments.php @@ -141,6 +141,8 @@ public function commit($database, CommitRequest $postBody, $optParams = []) * document. Optional. If not specified, an ID will be assigned by the service. * @opt_param string mask.fieldPaths The list of field paths in the mask. See * Document.fields for a field path syntax reference. + * @opt_param string requestOptions.requestTags Optional. The request tags for + * the request. * @return Document * @throws \Google\Service\Exception */ @@ -163,6 +165,8 @@ public function createDocument($parent, $collectionId, Document $postBody, $optP * @opt_param string currentDocument.updateTime When set, the target document * must exist and have been last updated at that time. Timestamp must be * microsecond aligned. + * @opt_param string requestOptions.requestTags Optional. The request tags for + * the request. * @return FirestoreEmpty * @throws \Google\Service\Exception */ @@ -202,6 +206,8 @@ public function executePipeline($database, ExecutePipelineRequest $postBody, $op * 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. + * @opt_param string requestOptions.requestTags Optional. The request tags for + * the request. * @opt_param string transaction Reads the document in a transaction. * @return Document * @throws \Google\Service\Exception @@ -242,6 +248,14 @@ public function get($name, $optParams = []) * 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. + * @opt_param bool recursive Optional. If the list should recursively include + * all documents nested under the parent at any level. If the request specifies + * a `collection_id`, then the list will include all nested documents in the + * collection under the parent. This is optional, and when not provided, + * Firestore will only list documents nested immediately under the parent. + * Requests with `recursive` may not specify `show_missing`. + * @opt_param string requestOptions.requestTags Optional. The request tags for + * the request. * @opt_param bool showMissing If the list should show missing documents. A * document is missing if it does not exist, but there are sub-documents nested * underneath it. When true, such missing documents will be returned with a key @@ -309,6 +323,14 @@ public function listCollectionIds($parent, ListCollectionIdsRequest $postBody, $ * 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. + * @opt_param bool recursive Optional. If the list should recursively include + * all documents nested under the parent at any level. If the request specifies + * a `collection_id`, then the list will include all nested documents in the + * collection under the parent. This is optional, and when not provided, + * Firestore will only list documents nested immediately under the parent. + * Requests with `recursive` may not specify `show_missing`. + * @opt_param string requestOptions.requestTags Optional. The request tags for + * the request. * @opt_param bool showMissing If the list should show missing documents. A * document is missing if it does not exist, but there are sub-documents nested * underneath it. When true, such missing documents will be returned with a key @@ -377,6 +399,8 @@ public function partitionQuery($parent, PartitionQueryRequest $postBody, $optPar * microsecond aligned. * @opt_param string mask.fieldPaths The list of field paths in the mask. See * Document.fields for a field path syntax reference. + * @opt_param string requestOptions.requestTags Optional. The request tags for + * the request. * @opt_param string updateMask.fieldPaths The list of field paths in the mask. * See Document.fields for a field path syntax reference. * @return Document diff --git a/src/Firestore/RollbackRequest.php b/src/Firestore/RollbackRequest.php index 1e9a6b37d8a..114b4030eaa 100644 --- a/src/Firestore/RollbackRequest.php +++ b/src/Firestore/RollbackRequest.php @@ -19,6 +19,8 @@ class RollbackRequest extends \Google\Model { + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; /** * Required. The transaction to roll back. * @@ -26,6 +28,22 @@ class RollbackRequest extends \Google\Model */ public $transaction; + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * Required. The transaction to roll back. * diff --git a/src/Firestore/RunAggregationQueryRequest.php b/src/Firestore/RunAggregationQueryRequest.php index 5de9b22cc2f..6dd8614b74d 100644 --- a/src/Firestore/RunAggregationQueryRequest.php +++ b/src/Firestore/RunAggregationQueryRequest.php @@ -32,6 +32,8 @@ class RunAggregationQueryRequest extends \Google\Model * @var string */ public $readTime; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; protected $structuredAggregationQueryType = StructuredAggregationQuery::class; protected $structuredAggregationQueryDataType = ''; /** @@ -95,6 +97,22 @@ public function getReadTime() { return $this->readTime; } + /** + * Optional. The request options for the request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * An aggregation query. * diff --git a/src/Firestore/RunQueryRequest.php b/src/Firestore/RunQueryRequest.php index 4d38a47e863..0188b599024 100644 --- a/src/Firestore/RunQueryRequest.php +++ b/src/Firestore/RunQueryRequest.php @@ -32,6 +32,8 @@ class RunQueryRequest extends \Google\Model * @var string */ public $readTime; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; protected $structuredQueryType = StructuredQuery::class; protected $structuredQueryDataType = ''; /** @@ -96,6 +98,22 @@ public function getReadTime() { return $this->readTime; } + /** + * Optional. The request options for this request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * A structured query. * diff --git a/src/Firestore/WriteRequest.php b/src/Firestore/WriteRequest.php index 9fb7ce6402f..6486e38a34a 100644 --- a/src/Firestore/WriteRequest.php +++ b/src/Firestore/WriteRequest.php @@ -26,6 +26,8 @@ class WriteRequest extends \Google\Collection * @var string[] */ public $labels; + protected $requestOptionsType = RequestOptions::class; + protected $requestOptionsDataType = ''; /** * The 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. @@ -65,6 +67,22 @@ public function getLabels() { return $this->labels; } + /** + * Optional. The request options for the request. + * + * @param RequestOptions $requestOptions + */ + public function setRequestOptions(RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } /** * The 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.