Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/Firestore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/BatchGetDocumentsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class BatchGetDocumentsRequest extends \Google\Collection
* @var string
*/
public $readTime;
protected $requestOptionsType = RequestOptions::class;
protected $requestOptionsDataType = '';
/**
* Reads documents in a transaction.
*
Expand Down Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/BatchWriteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/BeginTransactionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/CommitRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/ExecutePipelineRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
/**
Expand Down Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/ListCollectionIdsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/ListenRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
18 changes: 18 additions & 0 deletions src/Firestore/PartitionQueryRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';

Expand Down Expand Up @@ -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,
Expand Down
49 changes: 49 additions & 0 deletions src/Firestore/RequestOptions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Firestore;

class RequestOptions extends \Google\Collection
{
protected $collection_key = 'requestTags';
/**
* Optional. The request tags for the request.
*
* @var string[]
*/
public $requestTags;

/**
* Optional. The request tags for the request.
*
* @param string[] $requestTags
*/
public function setRequestTags($requestTags)
{
$this->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');
Loading
Loading