diff --git a/Firestore/metadata/V1/Common.php b/Firestore/metadata/V1/Common.php
index 562ba6eb3f23..481d92cba33a 100644
--- a/Firestore/metadata/V1/Common.php
+++ b/Firestore/metadata/V1/Common.php
@@ -17,7 +17,7 @@ public static function initOnce() {
\GPBMetadata\Google\Api\FieldBehavior::initOnce();
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
$pool->internalAddGeneratedFile(
- "\x0A\x8C\x07\x0A google/firestore/v1/common.proto\x12\x13google.firestore.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"#\x0A\x0CDocumentMask\x12\x13\x0A\x0Bfield_paths\x18\x01 \x03(\x09\"e\x0A\x0CPrecondition\x12\x10\x0A\x06exists\x18\x01 \x01(\x08H\x00\x121\x0A\x0Bupdate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00B\x10\x0A\x0Econdition_type\"\xD7\x03\x0A\x12TransactionOptions\x12E\x0A\x09read_only\x18\x02 \x01(\x0B20.google.firestore.v1.TransactionOptions.ReadOnlyH\x00\x12G\x0A\x0Aread_write\x18\x03 \x01(\x0B21.google.firestore.v1.TransactionOptions.ReadWriteH\x00\x1A~\x0A\x09ReadWrite\x12\x19\x0A\x11retry_transaction\x18\x01 \x01(\x0C\x12V\x0A\x10concurrency_mode\x18\x02 \x01(\x0E27.google.firestore.v1.TransactionOptions.ConcurrencyModeB\x03\xE0A\x01\x1AS\x0A\x08ReadOnly\x12/\x0A\x09read_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00B\x16\x0A\x14consistency_selector\"T\x0A\x0FConcurrencyMode\x12 \x0A\x1CCONCURRENCY_MODE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AOPTIMISTIC\x10\x01\x12\x0F\x0A\x0BPESSIMISTIC\x10\x02B\x06\x0A\x04modeB\xC3\x01\x0A\x17com.google.firestore.v1B\x0BCommonProtoP\x01Z;cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb\xA2\x02\x04GCFS\xAA\x02\x19Google.Cloud.Firestore.V1\xCA\x02\x19Google\\Cloud\\Firestore\\V1\xEA\x02\x1CGoogle::Cloud::Firestore::V1b\x06proto3"
+ "\x0A\xB9\x07\x0A google/firestore/v1/common.proto\x12\x13google.firestore.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"#\x0A\x0CDocumentMask\x12\x13\x0A\x0Bfield_paths\x18\x01 \x03(\x09\"e\x0A\x0CPrecondition\x12\x10\x0A\x06exists\x18\x01 \x01(\x08H\x00\x121\x0A\x0Bupdate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00B\x10\x0A\x0Econdition_type\"\xD7\x03\x0A\x12TransactionOptions\x12E\x0A\x09read_only\x18\x02 \x01(\x0B20.google.firestore.v1.TransactionOptions.ReadOnlyH\x00\x12G\x0A\x0Aread_write\x18\x03 \x01(\x0B21.google.firestore.v1.TransactionOptions.ReadWriteH\x00\x1A~\x0A\x09ReadWrite\x12\x19\x0A\x11retry_transaction\x18\x01 \x01(\x0C\x12V\x0A\x10concurrency_mode\x18\x02 \x01(\x0E27.google.firestore.v1.TransactionOptions.ConcurrencyModeB\x03\xE0A\x01\x1AS\x0A\x08ReadOnly\x12/\x0A\x09read_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00B\x16\x0A\x14consistency_selector\"T\x0A\x0FConcurrencyMode\x12 \x0A\x1CCONCURRENCY_MODE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AOPTIMISTIC\x10\x01\x12\x0F\x0A\x0BPESSIMISTIC\x10\x02B\x06\x0A\x04mode\"+\x0A\x0ERequestOptions\x12\x19\x0A\x0Crequest_tags\x18\x01 \x03(\x09B\x03\xE0A\x01B\xC3\x01\x0A\x17com.google.firestore.v1B\x0BCommonProtoP\x01Z;cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb\xA2\x02\x04GCFS\xAA\x02\x19Google.Cloud.Firestore.V1\xCA\x02\x19Google\\Cloud\\Firestore\\V1\xEA\x02\x1CGoogle::Cloud::Firestore::V1b\x06proto3"
, true);
static::$is_initialized = true;
diff --git a/Firestore/metadata/V1/Firestore.php b/Firestore/metadata/V1/Firestore.php
index b29962cb6506..bd846523d3e2 100644
--- a/Firestore/metadata/V1/Firestore.php
+++ b/Firestore/metadata/V1/Firestore.php
@@ -31,7 +31,7 @@ public static function initOnce() {
\GPBMetadata\Google\Protobuf\Wrappers::initOnce();
\GPBMetadata\Google\Rpc\Status::initOnce();
$pool->internalAddGeneratedFile(
- "\x0A\xF5T\x0A#google/firestore/v1/firestore.proto\x12\x13google.firestore.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x18google/api/routing.proto\x1A,google/firestore/v1/aggregation_result.proto\x1A google/firestore/v1/common.proto\x1A\"google/firestore/v1/document.proto\x1A'google/firestore/v1/explain_stats.proto\x1A\"google/firestore/v1/pipeline.proto\x1A\x1Fgoogle/firestore/v1/query.proto\x1A'google/firestore/v1/query_profile.proto\x1A\x1Fgoogle/firestore/v1/write.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Egoogle/protobuf/wrappers.proto\x1A\x17google/rpc/status.proto\"\xB8\x01\x0A\x12GetDocumentRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12/\x0A\x04mask\x18\x02 \x01(\x0B2!.google.firestore.v1.DocumentMask\x12\x15\x0A\x0Btransaction\x18\x03 \x01(\x0CH\x00\x12/\x0A\x09read_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00B\x16\x0A\x14consistency_selector\"\xBB\x02\x0A\x14ListDocumentsRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dcollection_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x06 \x01(\x09B\x03\xE0A\x01\x124\x0A\x04mask\x18\x07 \x01(\x0B2!.google.firestore.v1.DocumentMaskB\x03\xE0A\x01\x12\x15\x0A\x0Btransaction\x18\x08 \x01(\x0CH\x00\x12/\x0A\x09read_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12\x14\x0A\x0Cshow_missing\x18\x0C \x01(\x08B\x16\x0A\x14consistency_selector\"b\x0A\x15ListDocumentsResponse\x120\x0A\x09documents\x18\x01 \x03(\x0B2\x1D.google.firestore.v1.Document\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC4\x01\x0A\x15CreateDocumentRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dcollection_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdocument_id\x18\x03 \x01(\x09\x124\x0A\x08document\x18\x04 \x01(\x0B2\x1D.google.firestore.v1.DocumentB\x03\xE0A\x02\x12/\x0A\x04mask\x18\x05 \x01(\x0B2!.google.firestore.v1.DocumentMask\"\xF3\x01\x0A\x15UpdateDocumentRequest\x124\x0A\x08document\x18\x01 \x01(\x0B2\x1D.google.firestore.v1.DocumentB\x03\xE0A\x02\x126\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2!.google.firestore.v1.DocumentMask\x12/\x0A\x04mask\x18\x03 \x01(\x0B2!.google.firestore.v1.DocumentMask\x12;\x0A\x10current_document\x18\x04 \x01(\x0B2!.google.firestore.v1.Precondition\"g\x0A\x15DeleteDocumentRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12;\x0A\x10current_document\x18\x02 \x01(\x0B2!.google.firestore.v1.Precondition\"\x99\x02\x0A\x18BatchGetDocumentsRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x09documents\x18\x02 \x03(\x09\x12/\x0A\x04mask\x18\x03 \x01(\x0B2!.google.firestore.v1.DocumentMask\x12\x15\x0A\x0Btransaction\x18\x04 \x01(\x0CH\x00\x12B\x0A\x0Fnew_transaction\x18\x05 \x01(\x0B2'.google.firestore.v1.TransactionOptionsH\x00\x12/\x0A\x09read_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00B\x16\x0A\x14consistency_selector\"\xAC\x01\x0A\x19BatchGetDocumentsResponse\x12.\x0A\x05found\x18\x01 \x01(\x0B2\x1D.google.firestore.v1.DocumentH\x00\x12\x11\x0A\x07missing\x18\x02 \x01(\x09H\x00\x12\x13\x0A\x0Btransaction\x18\x03 \x01(\x0C\x12-\x0A\x09read_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x08\x0A\x06result\"j\x0A\x17BeginTransactionRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x128\x0A\x07options\x18\x02 \x01(\x0B2'.google.firestore.v1.TransactionOptions\"/\x0A\x18BeginTransactionResponse\x12\x13\x0A\x0Btransaction\x18\x01 \x01(\x0C\"g\x0A\x0DCommitRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x12*\x0A\x06writes\x18\x02 \x03(\x0B2\x1A.google.firestore.v1.Write\x12\x13\x0A\x0Btransaction\x18\x03 \x01(\x0C\"z\x0A\x0ECommitResponse\x127\x0A\x0Dwrite_results\x18\x01 \x03(\x0B2 .google.firestore.v1.WriteResult\x12/\x0A\x0Bcommit_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\"B\x0A\x0FRollbackRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Btransaction\x18\x02 \x01(\x0CB\x03\xE0A\x02\"\xDD\x02\x0A\x0FRunQueryRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x10structured_query\x18\x02 \x01(\x0B2\$.google.firestore.v1.StructuredQueryH\x00\x12\x15\x0A\x0Btransaction\x18\x05 \x01(\x0CH\x01\x12B\x0A\x0Fnew_transaction\x18\x06 \x01(\x0B2'.google.firestore.v1.TransactionOptionsH\x01\x12/\x0A\x09read_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampH\x01\x12A\x0A\x0Fexplain_options\x18\x0A \x01(\x0B2#.google.firestore.v1.ExplainOptionsB\x03\xE0A\x01B\x0C\x0A\x0Aquery_typeB\x16\x0A\x14consistency_selector\"\x87\x02\x0A\x10RunQueryResponse\x12\x13\x0A\x0Btransaction\x18\x02 \x01(\x0C\x12/\x0A\x08document\x18\x01 \x01(\x0B2\x1D.google.firestore.v1.Document\x12-\x0A\x09read_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x17\x0A\x0Fskipped_results\x18\x04 \x01(\x05\x12\x0E\x0A\x04done\x18\x06 \x01(\x08H\x00\x12<\x0A\x0Fexplain_metrics\x18\x0B \x01(\x0B2#.google.firestore.v1.ExplainMetricsB\x17\x0A\x15continuation_selector\"\xD2\x02\x0A\x16ExecutePipelineRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x13structured_pipeline\x18\x02 \x01(\x0B2'.google.firestore.v1.StructuredPipelineH\x00\x12\x15\x0A\x0Btransaction\x18\x05 \x01(\x0CH\x01\x12B\x0A\x0Fnew_transaction\x18\x06 \x01(\x0B2'.google.firestore.v1.TransactionOptionsH\x01\x12/\x0A\x09read_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampH\x01\x12\$\x0A\x17auto_commit_transaction\x18\x09 \x01(\x08B\x03\xE0A\x01B\x0F\x0A\x0Dpipeline_typeB\x16\x0A\x14consistency_selector\"\xCC\x01\x0A\x17ExecutePipelineResponse\x12\x13\x0A\x0Btransaction\x18\x01 \x01(\x0C\x12.\x0A\x07results\x18\x02 \x03(\x0B2\x1D.google.firestore.v1.Document\x122\x0A\x0Eexecution_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x128\x0A\x0Dexplain_stats\x18\x04 \x01(\x0B2!.google.firestore.v1.ExplainStats\"\xFF\x02\x0A\x1ARunAggregationQueryRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12W\x0A\x1Cstructured_aggregation_query\x18\x02 \x01(\x0B2/.google.firestore.v1.StructuredAggregationQueryH\x00\x12\x15\x0A\x0Btransaction\x18\x04 \x01(\x0CH\x01\x12B\x0A\x0Fnew_transaction\x18\x05 \x01(\x0B2'.google.firestore.v1.TransactionOptionsH\x01\x12/\x0A\x09read_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampH\x01\x12A\x0A\x0Fexplain_options\x18\x08 \x01(\x0B2#.google.firestore.v1.ExplainOptionsB\x03\xE0A\x01B\x0C\x0A\x0Aquery_typeB\x16\x0A\x14consistency_selector\"\xD7\x01\x0A\x1BRunAggregationQueryResponse\x126\x0A\x06result\x18\x01 \x01(\x0B2&.google.firestore.v1.AggregationResult\x12\x13\x0A\x0Btransaction\x18\x02 \x01(\x0C\x12-\x0A\x09read_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12<\x0A\x0Fexplain_metrics\x18\x0A \x01(\x0B2#.google.firestore.v1.ExplainMetrics\"\x85\x02\x0A\x15PartitionQueryRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x10structured_query\x18\x02 \x01(\x0B2\$.google.firestore.v1.StructuredQueryH\x00\x12\x17\x0A\x0Fpartition_count\x18\x03 \x01(\x03\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\x12\x11\x0A\x09page_size\x18\x05 \x01(\x05\x12/\x0A\x09read_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampH\x01B\x0C\x0A\x0Aquery_typeB\x16\x0A\x14consistency_selector\"b\x0A\x16PartitionQueryResponse\x12/\x0A\x0Apartitions\x18\x01 \x03(\x0B2\x1B.google.firestore.v1.Cursor\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xE8\x01\x0A\x0CWriteRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x09stream_id\x18\x02 \x01(\x09\x12*\x0A\x06writes\x18\x03 \x03(\x0B2\x1A.google.firestore.v1.Write\x12\x14\x0A\x0Cstream_token\x18\x04 \x01(\x0C\x12=\x0A\x06labels\x18\x05 \x03(\x0B2-.google.firestore.v1.WriteRequest.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xA2\x01\x0A\x0DWriteResponse\x12\x11\x0A\x09stream_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cstream_token\x18\x02 \x01(\x0C\x127\x0A\x0Dwrite_results\x18\x03 \x03(\x0B2 .google.firestore.v1.WriteResult\x12/\x0A\x0Bcommit_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xF2\x01\x0A\x0DListenRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x121\x0A\x0Aadd_target\x18\x02 \x01(\x0B2\x1B.google.firestore.v1.TargetH\x00\x12\x17\x0A\x0Dremove_target\x18\x03 \x01(\x05H\x00\x12>\x0A\x06labels\x18\x04 \x03(\x0B2..google.firestore.v1.ListenRequest.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x0F\x0A\x0Dtarget_change\"\xD5\x02\x0A\x0EListenResponse\x12:\x0A\x0Dtarget_change\x18\x02 \x01(\x0B2!.google.firestore.v1.TargetChangeH\x00\x12>\x0A\x0Fdocument_change\x18\x03 \x01(\x0B2#.google.firestore.v1.DocumentChangeH\x00\x12>\x0A\x0Fdocument_delete\x18\x04 \x01(\x0B2#.google.firestore.v1.DocumentDeleteH\x00\x12>\x0A\x0Fdocument_remove\x18\x06 \x01(\x0B2#.google.firestore.v1.DocumentRemoveH\x00\x126\x0A\x06filter\x18\x05 \x01(\x0B2\$.google.firestore.v1.ExistenceFilterH\x00B\x0F\x0A\x0Dresponse_type\"\xD6\x03\x0A\x06Target\x128\x0A\x05query\x18\x02 \x01(\x0B2'.google.firestore.v1.Target.QueryTargetH\x00\x12@\x0A\x09documents\x18\x03 \x01(\x0B2+.google.firestore.v1.Target.DocumentsTargetH\x00\x12\x16\x0A\x0Cresume_token\x18\x04 \x01(\x0CH\x01\x12/\x0A\x09read_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.TimestampH\x01\x12\x11\x0A\x09target_id\x18\x05 \x01(\x05\x12\x0C\x0A\x04once\x18\x06 \x01(\x08\x123\x0A\x0Eexpected_count\x18\x0C \x01(\x0B2\x1B.google.protobuf.Int32Value\x1A\$\x0A\x0FDocumentsTarget\x12\x11\x0A\x09documents\x18\x02 \x03(\x09\x1Am\x0A\x0BQueryTarget\x12\x0E\x0A\x06parent\x18\x01 \x01(\x09\x12@\x0A\x10structured_query\x18\x02 \x01(\x0B2\$.google.firestore.v1.StructuredQueryH\x00B\x0C\x0A\x0Aquery_typeB\x0D\x0A\x0Btarget_typeB\x0D\x0A\x0Bresume_type\"\xAA\x02\x0A\x0CTargetChange\x12N\x0A\x12target_change_type\x18\x01 \x01(\x0E22.google.firestore.v1.TargetChange.TargetChangeType\x12\x12\x0A\x0Atarget_ids\x18\x02 \x03(\x05\x12!\x0A\x05cause\x18\x03 \x01(\x0B2\x12.google.rpc.Status\x12\x14\x0A\x0Cresume_token\x18\x04 \x01(\x0C\x12-\x0A\x09read_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\"N\x0A\x10TargetChangeType\x12\x0D\x0A\x09NO_CHANGE\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\x12\x0B\x0A\x07CURRENT\x10\x03\x12\x09\x0A\x05RESET\x10\x04\"\x9F\x01\x0A\x18ListCollectionIdsRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12/\x0A\x09read_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00B\x16\x0A\x14consistency_selector\"L\x0A\x19ListCollectionIdsResponse\x12\x16\x0A\x0Ecollection_ids\x18\x01 \x03(\x09\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC9\x01\x0A\x11BatchWriteRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x12*\x0A\x06writes\x18\x02 \x03(\x0B2\x1A.google.firestore.v1.Write\x12B\x0A\x06labels\x18\x03 \x03(\x0B22.google.firestore.v1.BatchWriteRequest.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"q\x0A\x12BatchWriteResponse\x127\x0A\x0Dwrite_results\x18\x01 \x03(\x0B2 .google.firestore.v1.WriteResult\x12\"\x0A\x06status\x18\x02 \x03(\x0B2\x12.google.rpc.Status2\xFB\x1B\x0A\x09Firestore\x12\x8F\x01\x0A\x0BGetDocument\x12'.google.firestore.v1.GetDocumentRequest\x1A\x1D.google.firestore.v1.Document\"8\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/databases/*/documents/*/**}\x12\xF5\x01\x0A\x0DListDocuments\x12).google.firestore.v1.ListDocumentsRequest\x1A*.google.firestore.v1.ListDocumentsResponse\"\x8C\x01\x82\xD3\xE4\x93\x02\x85\x01\x12B/v1/{parent=projects/*/databases/*/documents/*/**}/{collection_id}Z?\x12=/v1/{parent=projects/*/databases/*/documents}/{collection_id}\x12\xBF\x01\x0A\x0EUpdateDocument\x12*.google.firestore.v1.UpdateDocumentRequest\x1A\x1D.google.firestore.v1.Document\"b\xDAA\x14document,update_mask\x82\xD3\xE4\x93\x02E29/v1/{document.name=projects/*/databases/*/documents/*/**}:\x08document\x12\x95\x01\x0A\x0EDeleteDocument\x12*.google.firestore.v1.DeleteDocumentRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/databases/*/documents/*/**}\x12\xB9\x01\x0A\x11BatchGetDocuments\x12-.google.firestore.v1.BatchGetDocumentsRequest\x1A..google.firestore.v1.BatchGetDocumentsResponse\"C\x82\xD3\xE4\x93\x02=\"8/v1/{database=projects/*/databases/*}/documents:batchGet:\x01*0\x01\x12\xC7\x01\x0A\x10BeginTransaction\x12,.google.firestore.v1.BeginTransactionRequest\x1A-.google.firestore.v1.BeginTransactionResponse\"V\xDAA\x08database\x82\xD3\xE4\x93\x02E\"@/v1/{database=projects/*/databases/*}/documents:beginTransaction:\x01*\x12\xA6\x01\x0A\x06Commit\x12\".google.firestore.v1.CommitRequest\x1A#.google.firestore.v1.CommitResponse\"S\xDAA\x0Fdatabase,writes\x82\xD3\xE4\x93\x02;\"6/v1/{database=projects/*/databases/*}/documents:commit:\x01*\x12\xA4\x01\x0A\x08Rollback\x12\$.google.firestore.v1.RollbackRequest\x1A\x16.google.protobuf.Empty\"Z\xDAA\x14database,transaction\x82\xD3\xE4\x93\x02=\"8/v1/{database=projects/*/databases/*}/documents:rollback:\x01*\x12\xDF\x01\x0A\x08RunQuery\x12\$.google.firestore.v1.RunQueryRequest\x1A%.google.firestore.v1.RunQueryResponse\"\x83\x01\x82\xD3\xE4\x93\x02}\"6/v1/{parent=projects/*/databases/*/documents}:runQuery:\x01*Z@\";/v1/{parent=projects/*/databases/*/documents/*/**}:runQuery:\x01*0\x01\x12\x9E\x02\x0A\x0FExecutePipeline\x12+.google.firestore.v1.ExecutePipelineRequest\x1A,.google.firestore.v1.ExecutePipelineResponse\"\xAD\x01\x82\xD3\xE4\x93\x02D\"?/v1/{database=projects/*/databases/*}/documents:executePipeline:\x01*\x8A\xD3\xE4\x93\x02]\x12&\x0A\x08database\x12\x1Aprojects/{project_id=*}/**\x123\x0A\x08database\x12'projects/*/databases/{database_id=*}/**0\x01\x12\x97\x02\x0A\x13RunAggregationQuery\x12/.google.firestore.v1.RunAggregationQueryRequest\x1A0.google.firestore.v1.RunAggregationQueryResponse\"\x9A\x01\x82\xD3\xE4\x93\x02\x93\x01\"A/v1/{parent=projects/*/databases/*/documents}:runAggregationQuery:\x01*ZK\"F/v1/{parent=projects/*/databases/*/documents/*/**}:runAggregationQuery:\x01*0\x01\x12\xFC\x01\x0A\x0EPartitionQuery\x12*.google.firestore.v1.PartitionQueryRequest\x1A+.google.firestore.v1.PartitionQueryResponse\"\x90\x01\x82\xD3\xE4\x93\x02\x89\x01\"\x0A\x06labels\x18\x04 \x03(\x0B2..google.firestore.v1.ListenRequest.LabelsEntry\x12A\x0A\x0Frequest_options\x18\x05 \x01(\x0B2#.google.firestore.v1.RequestOptionsB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x0F\x0A\x0Dtarget_change\"\xD5\x02\x0A\x0EListenResponse\x12:\x0A\x0Dtarget_change\x18\x02 \x01(\x0B2!.google.firestore.v1.TargetChangeH\x00\x12>\x0A\x0Fdocument_change\x18\x03 \x01(\x0B2#.google.firestore.v1.DocumentChangeH\x00\x12>\x0A\x0Fdocument_delete\x18\x04 \x01(\x0B2#.google.firestore.v1.DocumentDeleteH\x00\x12>\x0A\x0Fdocument_remove\x18\x06 \x01(\x0B2#.google.firestore.v1.DocumentRemoveH\x00\x126\x0A\x06filter\x18\x05 \x01(\x0B2\$.google.firestore.v1.ExistenceFilterH\x00B\x0F\x0A\x0Dresponse_type\"\xD6\x03\x0A\x06Target\x128\x0A\x05query\x18\x02 \x01(\x0B2'.google.firestore.v1.Target.QueryTargetH\x00\x12@\x0A\x09documents\x18\x03 \x01(\x0B2+.google.firestore.v1.Target.DocumentsTargetH\x00\x12\x16\x0A\x0Cresume_token\x18\x04 \x01(\x0CH\x01\x12/\x0A\x09read_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.TimestampH\x01\x12\x11\x0A\x09target_id\x18\x05 \x01(\x05\x12\x0C\x0A\x04once\x18\x06 \x01(\x08\x123\x0A\x0Eexpected_count\x18\x0C \x01(\x0B2\x1B.google.protobuf.Int32Value\x1A\$\x0A\x0FDocumentsTarget\x12\x11\x0A\x09documents\x18\x02 \x03(\x09\x1Am\x0A\x0BQueryTarget\x12\x0E\x0A\x06parent\x18\x01 \x01(\x09\x12@\x0A\x10structured_query\x18\x02 \x01(\x0B2\$.google.firestore.v1.StructuredQueryH\x00B\x0C\x0A\x0Aquery_typeB\x0D\x0A\x0Btarget_typeB\x0D\x0A\x0Bresume_type\"\xAA\x02\x0A\x0CTargetChange\x12N\x0A\x12target_change_type\x18\x01 \x01(\x0E22.google.firestore.v1.TargetChange.TargetChangeType\x12\x12\x0A\x0Atarget_ids\x18\x02 \x03(\x05\x12!\x0A\x05cause\x18\x03 \x01(\x0B2\x12.google.rpc.Status\x12\x14\x0A\x0Cresume_token\x18\x04 \x01(\x0C\x12-\x0A\x09read_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\"N\x0A\x10TargetChangeType\x12\x0D\x0A\x09NO_CHANGE\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\x12\x0B\x0A\x07CURRENT\x10\x03\x12\x09\x0A\x05RESET\x10\x04\"\xE2\x01\x0A\x18ListCollectionIdsRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12/\x0A\x09read_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12A\x0A\x0Frequest_options\x18\x05 \x01(\x0B2#.google.firestore.v1.RequestOptionsB\x03\xE0A\x01B\x16\x0A\x14consistency_selector\"L\x0A\x19ListCollectionIdsResponse\x12\x16\x0A\x0Ecollection_ids\x18\x01 \x03(\x09\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8C\x02\x0A\x11BatchWriteRequest\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x02\x12*\x0A\x06writes\x18\x02 \x03(\x0B2\x1A.google.firestore.v1.Write\x12B\x0A\x06labels\x18\x03 \x03(\x0B22.google.firestore.v1.BatchWriteRequest.LabelsEntry\x12A\x0A\x0Frequest_options\x18\x04 \x01(\x0B2#.google.firestore.v1.RequestOptionsB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"q\x0A\x12BatchWriteResponse\x127\x0A\x0Dwrite_results\x18\x01 \x03(\x0B2 .google.firestore.v1.WriteResult\x12\"\x0A\x06status\x18\x02 \x03(\x0B2\x12.google.rpc.Status2\xFB\x1B\x0A\x09Firestore\x12\x8F\x01\x0A\x0BGetDocument\x12'.google.firestore.v1.GetDocumentRequest\x1A\x1D.google.firestore.v1.Document\"8\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/databases/*/documents/*/**}\x12\xF5\x01\x0A\x0DListDocuments\x12).google.firestore.v1.ListDocumentsRequest\x1A*.google.firestore.v1.ListDocumentsResponse\"\x8C\x01\x82\xD3\xE4\x93\x02\x85\x01\x12B/v1/{parent=projects/*/databases/*/documents/*/**}/{collection_id}Z?\x12=/v1/{parent=projects/*/databases/*/documents}/{collection_id}\x12\xBF\x01\x0A\x0EUpdateDocument\x12*.google.firestore.v1.UpdateDocumentRequest\x1A\x1D.google.firestore.v1.Document\"b\xDAA\x14document,update_mask\x82\xD3\xE4\x93\x02E29/v1/{document.name=projects/*/databases/*/documents/*/**}:\x08document\x12\x95\x01\x0A\x0EDeleteDocument\x12*.google.firestore.v1.DeleteDocumentRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/databases/*/documents/*/**}\x12\xB9\x01\x0A\x11BatchGetDocuments\x12-.google.firestore.v1.BatchGetDocumentsRequest\x1A..google.firestore.v1.BatchGetDocumentsResponse\"C\x82\xD3\xE4\x93\x02=\"8/v1/{database=projects/*/databases/*}/documents:batchGet:\x01*0\x01\x12\xC7\x01\x0A\x10BeginTransaction\x12,.google.firestore.v1.BeginTransactionRequest\x1A-.google.firestore.v1.BeginTransactionResponse\"V\xDAA\x08database\x82\xD3\xE4\x93\x02E\"@/v1/{database=projects/*/databases/*}/documents:beginTransaction:\x01*\x12\xA6\x01\x0A\x06Commit\x12\".google.firestore.v1.CommitRequest\x1A#.google.firestore.v1.CommitResponse\"S\xDAA\x0Fdatabase,writes\x82\xD3\xE4\x93\x02;\"6/v1/{database=projects/*/databases/*}/documents:commit:\x01*\x12\xA4\x01\x0A\x08Rollback\x12\$.google.firestore.v1.RollbackRequest\x1A\x16.google.protobuf.Empty\"Z\xDAA\x14database,transaction\x82\xD3\xE4\x93\x02=\"8/v1/{database=projects/*/databases/*}/documents:rollback:\x01*\x12\xDF\x01\x0A\x08RunQuery\x12\$.google.firestore.v1.RunQueryRequest\x1A%.google.firestore.v1.RunQueryResponse\"\x83\x01\x82\xD3\xE4\x93\x02}\"6/v1/{parent=projects/*/databases/*/documents}:runQuery:\x01*Z@\";/v1/{parent=projects/*/databases/*/documents/*/**}:runQuery:\x01*0\x01\x12\x9E\x02\x0A\x0FExecutePipeline\x12+.google.firestore.v1.ExecutePipelineRequest\x1A,.google.firestore.v1.ExecutePipelineResponse\"\xAD\x01\x82\xD3\xE4\x93\x02D\"?/v1/{database=projects/*/databases/*}/documents:executePipeline:\x01*\x8A\xD3\xE4\x93\x02]\x12&\x0A\x08database\x12\x1Aprojects/{project_id=*}/**\x123\x0A\x08database\x12'projects/*/databases/{database_id=*}/**0\x01\x12\x97\x02\x0A\x13RunAggregationQuery\x12/.google.firestore.v1.RunAggregationQueryRequest\x1A0.google.firestore.v1.RunAggregationQueryResponse\"\x9A\x01\x82\xD3\xE4\x93\x02\x93\x01\"A/v1/{parent=projects/*/databases/*/documents}:runAggregationQuery:\x01*ZK\"F/v1/{parent=projects/*/databases/*/documents/*/**}:runAggregationQuery:\x01*0\x01\x12\xFC\x01\x0A\x0EPartitionQuery\x12*.google.firestore.v1.PartitionQueryRequest\x1A+.google.firestore.v1.PartitionQueryResponse\"\x90\x01\x82\xD3\xE4\x93\x02\x89\x01\".google.firestore.v1.DocumentMask mask = 3;
*/
private $mask = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 8 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $consistency_selector;
/**
@@ -72,6 +78,8 @@ class BatchGetDocumentsRequest extends \Google\Protobuf\Internal\Message
* 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.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -284,6 +292,42 @@ public function setReadTime($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 8 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 8 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/BatchWriteRequest.php b/Firestore/src/V1/BatchWriteRequest.php
index e1e668e664be..80cbde1632c3 100644
--- a/Firestore/src/V1/BatchWriteRequest.php
+++ b/Firestore/src/V1/BatchWriteRequest.php
@@ -38,6 +38,12 @@ class BatchWriteRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field map labels = 3;
*/
private $labels;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* Constructor.
@@ -55,6 +61,8 @@ class BatchWriteRequest extends \Google\Protobuf\Internal\Message
* document more than once per request.
* @type array|\Google\Protobuf\Internal\MapField $labels
* Labels associated with this batch write.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -148,5 +156,41 @@ public function setLabels($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}
diff --git a/Firestore/src/V1/BeginTransactionRequest.php b/Firestore/src/V1/BeginTransactionRequest.php
index 3593ca5b771d..682f8b500944 100644
--- a/Firestore/src/V1/BeginTransactionRequest.php
+++ b/Firestore/src/V1/BeginTransactionRequest.php
@@ -30,6 +30,12 @@ class BeginTransactionRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.firestore.v1.TransactionOptions options = 2;
*/
private $options = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* @param string $database Required. The database name. In the format:
@@ -57,6 +63,8 @@ public static function build(string $database): self
* @type \Google\Cloud\Firestore\V1\TransactionOptions $options
* The options for the transaction.
* Defaults to a read-write transaction.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -130,5 +138,41 @@ public function setOptions($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}
diff --git a/Firestore/src/V1/CommitRequest.php b/Firestore/src/V1/CommitRequest.php
index 10ce01ff8dd5..dcb9dad7956a 100644
--- a/Firestore/src/V1/CommitRequest.php
+++ b/Firestore/src/V1/CommitRequest.php
@@ -35,6 +35,12 @@ class CommitRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bytes transaction = 3;
*/
private $transaction = '';
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* @param string $database Required. The database name. In the format:
@@ -68,6 +74,8 @@ public static function build(string $database, array $writes): self
* Always executed atomically and in order.
* @type string $transaction
* If set, applies all writes in this transaction, and commits it.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -157,5 +165,41 @@ public function setTransaction($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}
diff --git a/Firestore/src/V1/CreateDocumentRequest.php b/Firestore/src/V1/CreateDocumentRequest.php
index 8276fdaf7d21..9970ef3b7176 100644
--- a/Firestore/src/V1/CreateDocumentRequest.php
+++ b/Firestore/src/V1/CreateDocumentRequest.php
@@ -52,6 +52,12 @@ class CreateDocumentRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.firestore.v1.DocumentMask mask = 5;
*/
private $mask = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 6 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* Constructor.
@@ -75,6 +81,8 @@ class CreateDocumentRequest extends \Google\Protobuf\Internal\Message
* 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.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -244,5 +252,41 @@ public function setMask($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}
diff --git a/Firestore/src/V1/DeleteDocumentRequest.php b/Firestore/src/V1/DeleteDocumentRequest.php
index 864d17908659..e76a2512c031 100644
--- a/Firestore/src/V1/DeleteDocumentRequest.php
+++ b/Firestore/src/V1/DeleteDocumentRequest.php
@@ -30,6 +30,12 @@ class DeleteDocumentRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.firestore.v1.Precondition current_document = 2;
*/
private $current_document = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* @param string $name Required. The resource name of the Document to delete. In the format:
@@ -57,6 +63,8 @@ public static function build(string $name): self
* @type \Google\Cloud\Firestore\V1\Precondition $current_document
* An optional precondition on the document.
* The request will fail if this is set and not met by the target document.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -130,5 +138,41 @@ public function setCurrentDocument($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}
diff --git a/Firestore/src/V1/ExecutePipelineRequest.php b/Firestore/src/V1/ExecutePipelineRequest.php
index 9bf8bb6ac242..32aa03f8fc57 100644
--- a/Firestore/src/V1/ExecutePipelineRequest.php
+++ b/Firestore/src/V1/ExecutePipelineRequest.php
@@ -31,6 +31,12 @@ class ExecutePipelineRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool auto_commit_transaction = 9 [(.google.api.field_behavior) = OPTIONAL];
*/
private $auto_commit_transaction = false;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $pipeline_type;
protected $consistency_selector;
@@ -61,6 +67,8 @@ class ExecutePipelineRequest extends \Google\Protobuf\Internal\Message
* Optional. Automatically commits the transaction after the pipeline has been
* executed. Only permitted in combination with `transaction` or
* `new_transaction`.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -262,6 +270,42 @@ public function setAutoCommitTransaction($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/GetDocumentRequest.php b/Firestore/src/V1/GetDocumentRequest.php
index e8faca62f431..96fe54d58eb1 100644
--- a/Firestore/src/V1/GetDocumentRequest.php
+++ b/Firestore/src/V1/GetDocumentRequest.php
@@ -31,6 +31,12 @@ class GetDocumentRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.firestore.v1.DocumentMask mask = 2;
*/
private $mask = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $consistency_selector;
/**
@@ -53,6 +59,8 @@ class GetDocumentRequest extends \Google\Protobuf\Internal\Message
* 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.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -196,6 +204,42 @@ public function setReadTime($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/ListCollectionIdsRequest.php b/Firestore/src/V1/ListCollectionIdsRequest.php
index c30e25c46577..7f49ab29a76e 100644
--- a/Firestore/src/V1/ListCollectionIdsRequest.php
+++ b/Firestore/src/V1/ListCollectionIdsRequest.php
@@ -40,6 +40,12 @@ class ListCollectionIdsRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field string page_token = 3;
*/
private $page_token = '';
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $consistency_selector;
/**
@@ -84,6 +90,8 @@ public static function build(string $parent): self
* 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.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -218,6 +226,42 @@ public function setReadTime($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/ListDocumentsRequest.php b/Firestore/src/V1/ListDocumentsRequest.php
index 92a3423e8b3f..75b5cebcb103 100644
--- a/Firestore/src/V1/ListDocumentsRequest.php
+++ b/Firestore/src/V1/ListDocumentsRequest.php
@@ -82,6 +82,12 @@ class ListDocumentsRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool show_missing = 12;
*/
private $show_missing = false;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 13 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $consistency_selector;
/**
@@ -135,6 +141,8 @@ class ListDocumentsRequest extends \Google\Protobuf\Internal\Message
* [`create_time`][google.firestore.v1.Document.create_time], or
* [`update_time`][google.firestore.v1.Document.update_time] set.
* Requests with `show_missing` may not specify `where` or `order_by`.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -450,6 +458,42 @@ public function setShowMissing($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 13 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 13 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/ListenRequest.php b/Firestore/src/V1/ListenRequest.php
index de1415daabc7..a67e5a651197 100644
--- a/Firestore/src/V1/ListenRequest.php
+++ b/Firestore/src/V1/ListenRequest.php
@@ -28,6 +28,12 @@ class ListenRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field map labels = 4;
*/
private $labels;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $target_change;
/**
@@ -45,6 +51,8 @@ class ListenRequest extends \Google\Protobuf\Internal\Message
* The ID of a target to remove from this stream.
* @type array|\Google\Protobuf\Internal\MapField $labels
* Labels associated with this target change.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -168,6 +176,42 @@ public function setLabels($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/PartitionQueryRequest.php b/Firestore/src/V1/PartitionQueryRequest.php
index 1b5cdfa5f893..81596ea1a2cd 100644
--- a/Firestore/src/V1/PartitionQueryRequest.php
+++ b/Firestore/src/V1/PartitionQueryRequest.php
@@ -63,6 +63,12 @@ class PartitionQueryRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field int32 page_size = 5;
*/
private $page_size = 0;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 7 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $query_type;
protected $consistency_selector;
@@ -113,6 +119,8 @@ class PartitionQueryRequest extends \Google\Protobuf\Internal\Message
* 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.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -344,6 +352,42 @@ public function setReadTime($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 7 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 7 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/RequestOptions.php b/Firestore/src/V1/RequestOptions.php
new file mode 100644
index 000000000000..6fa4291df814
--- /dev/null
+++ b/Firestore/src/V1/RequestOptions.php
@@ -0,0 +1,67 @@
+google.firestore.v1.RequestOptions
+ */
+class RequestOptions extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The request tags for the request.
+ *
+ * Generated from protobuf field repeated string request_tags = 1 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_tags;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string[] $request_tags
+ * The request tags for the request.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Firestore\V1\Common::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The request tags for the request.
+ *
+ * Generated from protobuf field repeated string request_tags = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @return RepeatedField
+ */
+ public function getRequestTags()
+ {
+ return $this->request_tags;
+ }
+
+ /**
+ * The request tags for the request.
+ *
+ * Generated from protobuf field repeated string request_tags = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string[] $var
+ * @return $this
+ */
+ public function setRequestTags($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
+ $this->request_tags = $arr;
+
+ return $this;
+ }
+
+}
+
diff --git a/Firestore/src/V1/RollbackRequest.php b/Firestore/src/V1/RollbackRequest.php
index b933b7581011..7966b2c79056 100644
--- a/Firestore/src/V1/RollbackRequest.php
+++ b/Firestore/src/V1/RollbackRequest.php
@@ -28,6 +28,12 @@ class RollbackRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bytes transaction = 2 [(.google.api.field_behavior) = REQUIRED];
*/
private $transaction = '';
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* @param string $database Required. The database name. In the format:
@@ -56,6 +62,8 @@ public static function build(string $database, string $transaction): self
* `projects/{project_id}/databases/{database_id}`.
* @type string $transaction
* Required. The transaction to roll back.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -117,5 +125,41 @@ public function setTransaction($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}
diff --git a/Firestore/src/V1/RunAggregationQueryRequest.php b/Firestore/src/V1/RunAggregationQueryRequest.php
index bc25360efef2..2f1010a3f98d 100644
--- a/Firestore/src/V1/RunAggregationQueryRequest.php
+++ b/Firestore/src/V1/RunAggregationQueryRequest.php
@@ -34,6 +34,12 @@ class RunAggregationQueryRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
private $explain_options = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 9 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $query_type;
protected $consistency_selector;
@@ -67,6 +73,8 @@ class RunAggregationQueryRequest extends \Google\Protobuf\Internal\Message
* @type \Google\Cloud\Firestore\V1\ExplainOptions $explain_options
* Optional. Explain options for the query. If set, additional query
* statistics will be returned. If not, only query results will be returned.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -284,6 +292,42 @@ public function setExplainOptions($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/RunQueryRequest.php b/Firestore/src/V1/RunQueryRequest.php
index 1ee8a4fefb35..45f031735b0c 100644
--- a/Firestore/src/V1/RunQueryRequest.php
+++ b/Firestore/src/V1/RunQueryRequest.php
@@ -33,6 +33,12 @@ class RunQueryRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL];
*/
private $explain_options = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
protected $query_type;
protected $consistency_selector;
@@ -67,6 +73,8 @@ class RunQueryRequest extends \Google\Protobuf\Internal\Message
* @type \Google\Cloud\Firestore\V1\ExplainOptions $explain_options
* Optional. Explain options for the query. If set, additional query
* statistics will be returned. If not, only query results will be returned.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -286,6 +294,42 @@ public function setExplainOptions($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Firestore/src/V1/UpdateDocumentRequest.php b/Firestore/src/V1/UpdateDocumentRequest.php
index e17f9737c269..7d3bb246211e 100644
--- a/Firestore/src/V1/UpdateDocumentRequest.php
+++ b/Firestore/src/V1/UpdateDocumentRequest.php
@@ -49,6 +49,12 @@ class UpdateDocumentRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.firestore.v1.Precondition current_document = 4;
*/
private $current_document = null;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* @param \Google\Cloud\Firestore\V1\Document $document Required. The updated document.
@@ -95,6 +101,8 @@ public static function build(\Google\Cloud\Firestore\V1\Document $document, \Goo
* @type \Google\Cloud\Firestore\V1\Precondition $current_document
* An optional precondition on the document.
* The request will fail if this is set and not met by the target document.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -264,5 +272,41 @@ public function setCurrentDocument($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}
diff --git a/Firestore/src/V1/WriteRequest.php b/Firestore/src/V1/WriteRequest.php
index e4751b03fa2d..8e8536c06cae 100644
--- a/Firestore/src/V1/WriteRequest.php
+++ b/Firestore/src/V1/WriteRequest.php
@@ -68,6 +68,12 @@ class WriteRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field map labels = 5;
*/
private $labels;
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 6 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $request_options = null;
/**
* Constructor.
@@ -102,6 +108,8 @@ class WriteRequest extends \Google\Protobuf\Internal\Message
* Leave this field unset when creating a new stream.
* @type array|\Google\Protobuf\Internal\MapField $labels
* Labels associated with this write request.
+ * @type \Google\Cloud\Firestore\V1\RequestOptions $request_options
+ * Optional. Any additional options for the request.
* }
*/
public function __construct($data = NULL) {
@@ -273,5 +281,41 @@ public function setLabels($var)
return $this;
}
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\Firestore\V1\RequestOptions|null
+ */
+ public function getRequestOptions()
+ {
+ return $this->request_options;
+ }
+
+ public function hasRequestOptions()
+ {
+ return isset($this->request_options);
+ }
+
+ public function clearRequestOptions()
+ {
+ unset($this->request_options);
+ }
+
+ /**
+ * Optional. Any additional options for the request.
+ *
+ * Generated from protobuf field .google.firestore.v1.RequestOptions request_options = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\Firestore\V1\RequestOptions $var
+ * @return $this
+ */
+ public function setRequestOptions($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\RequestOptions::class);
+ $this->request_options = $var;
+
+ return $this;
+ }
+
}