diff --git a/librarian.yaml b/librarian.yaml
index 1a538d4e020e..de3662ef4bb1 100644
--- a/librarian.yaml
+++ b/librarian.yaml
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
language: nodejs
-version: v0.24.0
+version: v0.25.0
repo: googleapis/google-cloud-node
sources:
googleapis:
@@ -926,6 +926,15 @@ libraries:
copyright_year: "2026"
nodejs:
default_version: v1
+ - name: google-cloud-firestore-api
+ version: 1.0.0
+ apis:
+ - path: google/firestore/v1
+ - path: google/firestore/admin/v1
+ - path: google/firestore/v1beta1
+ copyright_year: "2026"
+ nodejs:
+ package_name: '@google-cloud/firestore-api'
- name: google-cloud-functions
version: 4.2.2
apis:
diff --git a/packages/google-cloud-firestore-api/.gitignore b/packages/google-cloud-firestore-api/.gitignore
new file mode 100644
index 000000000000..d4f03a0df2e8
--- /dev/null
+++ b/packages/google-cloud-firestore-api/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-cloud-firestore-api/.jsdoc.js b/packages/google-cloud-firestore-api/.jsdoc.js
new file mode 100644
index 000000000000..98cd8c6ba9e5
--- /dev/null
+++ b/packages/google-cloud-firestore-api/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2026 Google LLC
+//
+// 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
+//
+// https://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.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2026 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/firestore-api',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-firestore-api/.nycrc b/packages/google-cloud-firestore-api/.nycrc
new file mode 100644
index 000000000000..81a95fc94b00
--- /dev/null
+++ b/packages/google-cloud-firestore-api/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
\ No newline at end of file
diff --git a/packages/google-cloud-firestore-api/.repo-metadata.json b/packages/google-cloud-firestore-api/.repo-metadata.json
new file mode 100644
index 000000000000..da79c86fe86f
--- /dev/null
+++ b/packages/google-cloud-firestore-api/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "api_description": "Accesses the NoSQL document database built for automatic scaling, high\nperformance, and ease of application development.",
+ "api_id": "firestore.googleapis.com",
+ "api_shortname": "firestore",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/firestore-api/latest",
+ "default_version": "v1",
+ "distribution_name": "@google-cloud/firestore-api",
+ "issue_tracker": "https://issuetracker.google.com/savedsearches/5337669",
+ "language": "nodejs",
+ "library_type": "GAPIC_AUTO",
+ "name": "firestore",
+ "name_pretty": "Cloud Firestore",
+ "product_documentation": "https://cloud.google.com/firestore/docs",
+ "release_level": "stable",
+ "repo": "googleapis/google-cloud-node"
+}
\ No newline at end of file
diff --git a/packages/google-cloud-firestore-api/README.md b/packages/google-cloud-firestore-api/README.md
new file mode 100644
index 000000000000..aea84b990053
--- /dev/null
+++ b/packages/google-cloud-firestore-api/README.md
@@ -0,0 +1,108 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "The comments you see below are used to generate those parts of the template in later states."
+
+
+# [Cloud Firestore API: Nodejs Client][homepage]
+
+[//]: # "releaseLevel"
+
+[](https://www.npmjs.org/package/@google-cloud/firestore-api)
+
+Cloud Firestore API client for Node.js
+
+[//]: # "partials.introduction"
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG][homepage_changelog].
+
+* [Cloud Firestore API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/admin/latest)
+
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Cloud Firestore API API][enable_api].
+1. [Set up authentication][auth] so you can access the
+ API from your local workstation.
+### Installing the client library
+
+```bash
+npm install @google-cloud/firestore-api
+```
+
+[//]: # "partials.body"
+
+## Samples
+
+Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
+
+[//]: # "samples"
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/firestore-api@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template.
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=firestore.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
+[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-firestore-admin/samples
+[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-firestore-admin/CHANGELOG.md
+[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-firestore-admin
diff --git a/packages/google-cloud-firestore-api/package.json b/packages/google-cloud-firestore-api/package.json
new file mode 100644
index 000000000000..77fb88ac5a5d
--- /dev/null
+++ b/packages/google-cloud-firestore-api/package.json
@@ -0,0 +1,62 @@
+{
+ "name": "@google-cloud/firestore-api",
+ "version": "0.1.0",
+ "description": "Admin client for Node.js",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-firestore-api",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google admin",
+ "admin",
+ "firestore admin"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
+ "test": "c8 mocha --config ../../.mocharc.cjs build/test"
+ },
+ "dependencies": {
+ "google-gax": "^5.1.1-rc.1"
+ },
+ "devDependencies": {
+ "@types/mocha": "^10.0.10",
+ "@types/node": "^22.18.12",
+ "@types/sinon": "^20.0.0",
+ "c8": "^10.1.3",
+ "gapic-tools": "^1.0.3",
+ "gts": "^6.0.2",
+ "jsdoc": "^4.0.5",
+ "jsdoc-fresh": "^5.0.2",
+ "jsdoc-region-tag": "^4.0.1",
+ "mocha": "^11.7.4",
+ "pack-n-play": "^4.2.1",
+ "typescript": "5.8.3",
+ "sinon": "^20.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/backup.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/backup.proto
new file mode 100644
index 000000000000..f4ff835d0dbe
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/backup.proto
@@ -0,0 +1,112 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "BackupProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// A Backup of a Cloud Firestore Database.
+//
+// The backup contains all documents and index configurations for the given
+// database at a specific point in time.
+message Backup {
+ option (google.api.resource) = {
+ type: "firestore.googleapis.com/Backup"
+ pattern: "projects/{project}/locations/{location}/backups/{backup}"
+ };
+
+ // Backup specific statistics.
+ message Stats {
+ // Output only. Summation of the size of all documents and index entries in
+ // the backup, measured in bytes.
+ int64 size_bytes = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The total number of documents contained in the backup.
+ int64 document_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The total number of index entries contained in the backup.
+ int64 index_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Indicate the current state of the backup.
+ enum State {
+ // The state is unspecified.
+ STATE_UNSPECIFIED = 0;
+
+ // The pending backup is still being created. Operations on the
+ // backup will be rejected in this state.
+ CREATING = 1;
+
+ // The backup is complete and ready to use.
+ READY = 2;
+
+ // The backup is not available at this moment.
+ NOT_AVAILABLE = 3;
+ }
+
+ // Output only. The unique resource name of the Backup.
+ //
+ // Format is `projects/{project}/locations/{location}/backups/{backup}`.
+ //
+ // The location in the name will be the Standard Managed Multi-Region (SMMR)
+ // location (e.g. `us`) if the backup was created with an SMMR location, or
+ // the Google Managed Multi-Region (GMMR) location (e.g. `nam5`) if the backup
+ // was created with a GMMR location.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the Firestore database that the backup is from.
+ //
+ // Format is `projects/{project}/databases/{database}`.
+ string database = 2 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // Output only. The system-generated UUID4 for the Firestore database that the
+ // backup is from.
+ string database_uid = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The backup contains an externally consistent copy of the
+ // database at this time.
+ google.protobuf.Timestamp snapshot_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp at which this backup expires.
+ google.protobuf.Timestamp expire_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics about the backup.
+ //
+ // This data only becomes available after the backup is fully materialized to
+ // secondary storage. This field will be empty till then.
+ Stats stats = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the backup.
+ State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/database.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/database.proto
new file mode 100644
index 000000000000..39f69e7e9071
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/database.proto
@@ -0,0 +1,403 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/firestore/admin/v1/realtime_updates.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "DatabaseProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+option (google.api.resource_definition) = {
+ type: "firestore.googleapis.com/Operation"
+ pattern: "projects/{project}/databases/{database}/operations/{operation}"
+};
+
+// A Cloud Firestore Database.
+message Database {
+ option (google.api.resource) = {
+ type: "firestore.googleapis.com/Database"
+ pattern: "projects/{project}/databases/{database}"
+ style: DECLARATIVE_FRIENDLY
+ };
+
+ // The type of the database.
+ // See https://cloud.google.com/datastore/docs/firestore-or-datastore for
+ // information about how to choose.
+ //
+ // Mode changes are only allowed if the database is empty.
+ enum DatabaseType {
+ // Not used.
+ DATABASE_TYPE_UNSPECIFIED = 0;
+
+ // Firestore Native Mode
+ FIRESTORE_NATIVE = 1;
+
+ // Firestore in Datastore Mode.
+ DATASTORE_MODE = 2;
+ }
+
+ // The type of concurrency control mode for transactions.
+ enum ConcurrencyMode {
+ // Not used.
+ CONCURRENCY_MODE_UNSPECIFIED = 0;
+
+ // Use optimistic concurrency control by default. This mode is available
+ // for Cloud Firestore databases.
+ //
+ // This is the default setting for Cloud Firestore Enterprise Edition
+ // databases.
+ OPTIMISTIC = 1;
+
+ // Use pessimistic concurrency control by default. This mode is available
+ // for Cloud Firestore databases.
+ //
+ // This is the default setting for Cloud Firestore Standard Edition
+ // databases.
+ PESSIMISTIC = 2;
+
+ // Use optimistic concurrency control with entity groups by default.
+ //
+ // This mode is enabled for some databases that were automatically upgraded
+ // from Cloud Datastore to Cloud Firestore with Datastore Mode.
+ //
+ // It is not recommended for any new databases, and not supported for
+ // Firestore Native databases.
+ OPTIMISTIC_WITH_ENTITY_GROUPS = 3;
+ }
+
+ // Point In Time Recovery feature enablement.
+ enum PointInTimeRecoveryEnablement {
+ // Not used.
+ POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED = 0;
+
+ // Reads are supported on selected versions of the data from within the past
+ // 7 days:
+ //
+ // * Reads against any timestamp within the past hour
+ // * Reads against 1-minute snapshots beyond 1 hour and within 7 days
+ //
+ // `version_retention_period` and `earliest_version_time` can be
+ // used to determine the supported versions.
+ POINT_IN_TIME_RECOVERY_ENABLED = 1;
+
+ // Reads are supported on any version of the data from within the past 1
+ // hour.
+ POINT_IN_TIME_RECOVERY_DISABLED = 2;
+ }
+
+ // The type of App Engine integration mode.
+ enum AppEngineIntegrationMode {
+ // Not used.
+ APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED = 0;
+
+ // If an App Engine application exists in the same region as this database,
+ // App Engine configuration will impact this database. This includes
+ // disabling of the application & database, as well as disabling writes to
+ // the database.
+ ENABLED = 1;
+
+ // App Engine has no effect on the ability of this database to serve
+ // requests.
+ //
+ // This is the default setting for databases created with the Firestore API.
+ DISABLED = 2;
+ }
+
+ // The delete protection state of the database.
+ enum DeleteProtectionState {
+ // The default value. Delete protection type is not specified
+ DELETE_PROTECTION_STATE_UNSPECIFIED = 0;
+
+ // Delete protection is disabled
+ DELETE_PROTECTION_DISABLED = 1;
+
+ // Delete protection is enabled
+ DELETE_PROTECTION_ENABLED = 2;
+ }
+
+ // The CMEK (Customer Managed Encryption Key) configuration for a Firestore
+ // database. If not present, the database is secured by the default Google
+ // encryption key.
+ message CmekConfig {
+ // Required. Only keys in the same location as this database are allowed to
+ // be used for encryption.
+ //
+ // For Firestore's nam5 multi-region, this corresponds to Cloud KMS
+ // multi-region us. For Firestore's eur3 multi-region, this corresponds to
+ // Cloud KMS multi-region europe. See
+ // https://cloud.google.com/kms/docs/locations.
+ //
+ // The expected format is
+ // `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+ string kms_key_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Currently in-use [KMS key
+ // versions](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions).
+ // During [key rotation](https://cloud.google.com/kms/docs/key-rotation),
+ // there can be multiple in-use key versions.
+ //
+ // The expected format is
+ // `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`.
+ repeated string active_key_version = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Information about the provenance of this database.
+ message SourceInfo {
+ // Information about a backup that was used to restore a database.
+ message BackupSource {
+ // The resource name of the backup that was used to restore this
+ // database. Format:
+ // `projects/{project}/locations/{location}/backups/{backup}`.
+ string backup = 1 [(google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Backup"
+ }];
+ }
+
+ // The source from which this database is derived.
+ oneof source {
+ // If set, this database was restored from the specified backup (or a
+ // snapshot thereof).
+ BackupSource backup = 1;
+ }
+
+ // The associated long-running operation. This field may not be set after
+ // the operation has completed. Format:
+ // `projects/{project}/databases/{database}/operations/{operation}`.
+ string operation = 3 [(google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Operation"
+ }];
+ }
+
+ // Encryption configuration for a new database being created from another
+ // source.
+ //
+ // The source could be a [Backup][google.firestore.admin.v1.Backup] or a
+ // [PitrSnapshot][google.firestore.admin.v1.PitrSnapshot].
+ message EncryptionConfig {
+ // The configuration options for using Google default encryption.
+ message GoogleDefaultEncryptionOptions {}
+
+ // The configuration options for using the same encryption method as the
+ // source.
+ message SourceEncryptionOptions {}
+
+ // The configuration options for using CMEK (Customer Managed Encryption
+ // Key) encryption.
+ message CustomerManagedEncryptionOptions {
+ // Required. Only keys in the same location as the database are allowed to
+ // be used for encryption.
+ //
+ // For Firestore's nam5 multi-region, this corresponds to Cloud KMS
+ // multi-region us. For Firestore's eur3 multi-region, this corresponds to
+ // Cloud KMS multi-region europe. See
+ // https://cloud.google.com/kms/docs/locations.
+ //
+ // The expected format is
+ // `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+ string kms_key_name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // The method for encrypting the database.
+ oneof encryption_type {
+ // Use Google default encryption.
+ GoogleDefaultEncryptionOptions google_default_encryption = 1;
+
+ // The database will use the same encryption configuration as the source.
+ SourceEncryptionOptions use_source_encryption = 2;
+
+ // Use Customer Managed Encryption Keys (CMEK) for encryption.
+ CustomerManagedEncryptionOptions customer_managed_encryption = 3;
+ }
+ }
+
+ // The edition of the database.
+ enum DatabaseEdition {
+ // Not used.
+ DATABASE_EDITION_UNSPECIFIED = 0;
+
+ // Standard edition.
+ //
+ // This is the default setting if not specified.
+ STANDARD = 1;
+
+ // Enterprise edition.
+ ENTERPRISE = 2;
+ }
+
+ // The data access mode.
+ enum DataAccessMode {
+ // Not Used.
+ DATA_ACCESS_MODE_UNSPECIFIED = 0;
+
+ // Accessing the database through the API is allowed.
+ DATA_ACCESS_MODE_ENABLED = 1;
+
+ // Accessing the database through the API is disallowed.
+ DATA_ACCESS_MODE_DISABLED = 2;
+ }
+
+ // The resource name of the Database.
+ // Format: `projects/{project}/databases/{database}`
+ string name = 1;
+
+ // Output only. The system-generated UUID4 for this Database.
+ string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp at which this database was created. Databases
+ // created before 2016 do not populate create_time.
+ google.protobuf.Timestamp create_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp at which this database was most recently
+ // updated. Note this only includes updates to the database resource and not
+ // data contained by the database.
+ google.protobuf.Timestamp update_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp at which this database was deleted. Only set if
+ // the database has been deleted.
+ google.protobuf.Timestamp delete_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The location of the database. Available locations are listed at
+ // https://cloud.google.com/firestore/docs/locations.
+ string location_id = 9;
+
+ // The type of the database.
+ // See https://cloud.google.com/datastore/docs/firestore-or-datastore for
+ // information about how to choose.
+ DatabaseType type = 10;
+
+ // The concurrency control mode to use for this database.
+ //
+ // If unspecified in a CreateDatabase request, this will default based on the
+ // database edition: Optimistic for Enterprise and Pessimistic for all other
+ // databases.
+ ConcurrencyMode concurrency_mode = 15;
+
+ // Output only. The period during which past versions of data are retained in
+ // the database.
+ //
+ // Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+ // or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+ // a `read_time` within this window, and will read the state of the database
+ // at that time.
+ //
+ // If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+ // the retention period is 1 hour.
+ google.protobuf.Duration version_retention_period = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The earliest timestamp at which older versions of the data can
+ // be read from the database. See [version_retention_period] above; this field
+ // is populated with `now - version_retention_period`.
+ //
+ // This value is continuously updated, and becomes stale the moment it is
+ // queried. If you are using this value to recover data, make sure to account
+ // for the time from the moment when the value is queried to the moment when
+ // you initiate the recovery.
+ google.protobuf.Timestamp earliest_version_time = 18
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Whether to enable the PITR feature on this database.
+ PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;
+
+ // The App Engine integration mode to use for this database.
+ AppEngineIntegrationMode app_engine_integration_mode = 19;
+
+ // Output only. The key_prefix for this database. This key_prefix is used, in
+ // combination with the project ID ("~") to construct
+ // the application ID that is returned from the Cloud Datastore APIs in Google
+ // App Engine first generation runtimes.
+ //
+ // This value may be empty in which case the appid to use for URL-encoded keys
+ // is the project_id (eg: foo instead of v~foo).
+ string key_prefix = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // State of delete protection for the database.
+ DeleteProtectionState delete_protection_state = 22;
+
+ // Optional. Presence indicates CMEK is enabled for this database.
+ CmekConfig cmek_config = 23 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The database resource's prior database ID. This field is only
+ // populated for deleted databases.
+ string previous_id = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Information about the provenance of this database.
+ SourceInfo source_info = 26 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Input only. Immutable. Tag keys/values directly bound to this
+ // resource. For example:
+ // "123/environment": "production",
+ // "123/costCenter": "marketing"
+ map tags = 29 [
+ (google.api.field_behavior) = INPUT_ONLY,
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Output only. Background: Free tier is the ability of a Firestore database
+ // to use a small amount of resources every day without being charged. Once
+ // usage exceeds the free tier limit further usage is charged.
+ //
+ // Whether this database can make use of the free tier. Only one database
+ // per project can be eligible for the free tier.
+ //
+ // The first (or next) database that is created in a project without a free
+ // tier database will be marked as eligible for the free tier. Databases that
+ // are created while there is a free tier database will not be eligible for
+ // the free tier.
+ optional bool free_tier = 30 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // This checksum is computed by the server based on the value of other
+ // fields, and may be sent on update and delete requests to ensure the
+ // client has an up-to-date value before proceeding.
+ string etag = 99;
+
+ // Immutable. The edition of the database.
+ DatabaseEdition database_edition = 28
+ [(google.api.field_behavior) = IMMUTABLE];
+
+ // Immutable. The default Realtime Updates mode to use for this database.
+ RealtimeUpdatesMode realtime_updates_mode = 31
+ [(google.api.field_behavior) = IMMUTABLE];
+
+ // Optional. The Firestore API data access mode to use for this database. If
+ // not set on write:
+ // - the default value is DATA_ACCESS_MODE_DISABLED for Enterprise Edition.
+ // - the default value is DATA_ACCESS_MODE_ENABLED for Standard Edition.
+ DataAccessMode firestore_data_access_mode = 33
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The MongoDB compatible API data access mode to use for this
+ // database. If not set on write, the default value is
+ // DATA_ACCESS_MODE_ENABLED for Enterprise Edition. The value is always
+ // DATA_ACCESS_MODE_DISABLED for Standard Edition.
+ DataAccessMode mongodb_compatible_data_access_mode = 34
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/field.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/field.proto
new file mode 100644
index 000000000000..239d791c01fb
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/field.proto
@@ -0,0 +1,154 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/firestore/admin/v1/index.proto";
+import "google/protobuf/duration.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "FieldProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// Represents a single field in the database.
+//
+// Fields are grouped by their "Collection Group", which represent all
+// collections in the database with the same ID.
+message Field {
+ option (google.api.resource) = {
+ type: "firestore.googleapis.com/Field"
+ pattern: "projects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}"
+ };
+
+ // The index configuration for this field.
+ message IndexConfig {
+ // The indexes supported for this field.
+ repeated Index indexes = 1;
+
+ // Output only. When true, the `Field`'s index configuration is set from the
+ // configuration specified by the `ancestor_field`.
+ // When false, the `Field`'s index configuration is defined explicitly.
+ bool uses_ancestor_config = 2;
+
+ // Output only. Specifies the resource name of the `Field` from which this
+ // field's index configuration is set (when `uses_ancestor_config` is true),
+ // or from which it *would* be set if this field had no index configuration
+ // (when `uses_ancestor_config` is false).
+ string ancestor_field = 3;
+
+ // Output only
+ // When true, the `Field`'s index configuration is in the process of being
+ // reverted. Once complete, the index config will transition to the same
+ // state as the field specified by `ancestor_field`, at which point
+ // `uses_ancestor_config` will be `true` and `reverting` will be `false`.
+ bool reverting = 4;
+ }
+
+ // The TTL (time-to-live) configuration for documents that have this `Field`
+ // set.
+ //
+ // A timestamp stored in a TTL-enabled field will be used to determine the
+ // expiration time of the document. The expiration time is the sum
+ // of the timestamp value and the `expiration_offset`.
+ //
+ // For Enterprise edition databases, the timestamp value may alternatively be
+ // stored in an array value in the TTL-enabled field.
+ //
+ // An expiration time in the past indicates that the document is eligible for
+ // immediate expiration. Using any other data type or leaving the field absent
+ // will disable expiration for the individual document.
+ message TtlConfig {
+ // The state of applying the TTL configuration to all documents.
+ enum State {
+ // The state is unspecified or unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The TTL is being applied. There is an active long-running operation to
+ // track the change. Newly written documents will have TTLs applied as
+ // requested. Requested TTLs on existing documents are still being
+ // processed. When TTLs on all existing documents have been processed, the
+ // state will move to 'ACTIVE'.
+ CREATING = 1;
+
+ // The TTL is active for all documents.
+ ACTIVE = 2;
+
+ // The TTL configuration could not be enabled for all existing documents.
+ // Newly written documents will continue to have their TTL applied.
+ // The LRO returned when last attempting to enable TTL for this `Field`
+ // has failed, and may have more details.
+ NEEDS_REPAIR = 3;
+ }
+
+ // Output only. The state of the TTL configuration.
+ State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The offset, relative to the timestamp value from the
+ // TTL-enabled field, used to determine the document's expiration time.
+ //
+ // `expiration_offset.seconds` must be between 0 and 2,147,483,647
+ // inclusive. Values more precise than seconds are rejected.
+ //
+ // If unset, defaults to 0, in which case the expiration time is the same
+ // as the timestamp value from the TTL-enabled field.
+ google.protobuf.Duration expiration_offset = 3
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. A field name of the form:
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+ //
+ // A field path can be a simple field name, e.g. `address` or a path to fields
+ // within `map_value` , e.g. `address.city`,
+ // or a special field path. The only valid special field is `*`, which
+ // represents any field.
+ //
+ // Field paths can be quoted using `` ` `` (backtick). The only character that
+ // must be escaped within a quoted field path is the backtick character
+ // itself, escaped using a backslash. Special characters in field paths that
+ // must be quoted include: `*`, `.`,
+ // `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters.
+ //
+ // Examples:
+ // `` `address.city` `` represents a field named `address.city`, not the map
+ // key `city` in the field `address`. `` `*` `` represents a field named `*`,
+ // not any field.
+ //
+ // A special `Field` contains the default indexing settings for all fields.
+ // This field's resource name is:
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
+ // Indexes defined on this `Field` will be applied to all fields which do not
+ // have their own `Field` index configuration.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The index configuration for this field. If unset, field indexing will
+ // revert to the configuration defined by the `ancestor_field`. To
+ // explicitly remove all indexes for this field, specify an index config
+ // with an empty list of indexes.
+ IndexConfig index_config = 2;
+
+ // The TTL configuration for this `Field`.
+ // Setting or unsetting this will enable or disable the TTL for
+ // documents that have this `Field`.
+ TtlConfig ttl_config = 3;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/firestore_admin.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/firestore_admin.proto
new file mode 100644
index 000000000000..1dbf0cec1e0b
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/firestore_admin.proto
@@ -0,0 +1,1229 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/api/routing.proto";
+import "google/firestore/admin/v1/backup.proto";
+import "google/firestore/admin/v1/database.proto";
+import "google/firestore/admin/v1/field.proto";
+import "google/firestore/admin/v1/index.proto";
+import "google/firestore/admin/v1/operation.proto";
+import "google/firestore/admin/v1/schedule.proto";
+import "google/firestore/admin/v1/snapshot.proto";
+import "google/firestore/admin/v1/user_creds.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "FirestoreAdminProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+option (google.api.resource_definition) = {
+ type: "firestore.googleapis.com/Location"
+ pattern: "projects/{project}/locations/{location}"
+};
+option (google.api.resource_definition) = {
+ type: "firestore.googleapis.com/CollectionGroup"
+ pattern: "projects/{project}/databases/{database}/collectionGroups/{collection}"
+};
+
+// The Cloud Firestore Admin API.
+//
+// This API provides several administrative services for Cloud Firestore.
+//
+// Project, Database, Namespace, Collection, Collection Group, and Document are
+// used as defined in the Google Cloud Firestore API.
+//
+// Operation: An Operation represents work being performed in the background.
+//
+// The index service manages Cloud Firestore indexes.
+//
+// Index creation is performed asynchronously.
+// An Operation resource is created for each such asynchronous operation.
+// The state of the operation (including any errors encountered)
+// may be queried via the Operation resource.
+//
+// The Operations collection provides a record of actions performed for the
+// specified Project (including any Operations in progress). Operations are not
+// created directly but through calls on other collections or resources.
+//
+// An Operation that is done may be deleted so that it is no longer listed as
+// part of the Operation collection. Operations are garbage collected after
+// 30 days. By default, ListOperations will only return in progress and failed
+// operations. To list completed operation, issue a ListOperations request with
+// the filter `done: true`.
+//
+// Operations are created by service `FirestoreAdmin`, but are accessed via
+// service `google.longrunning.Operations`.
+service FirestoreAdmin {
+ option (google.api.default_host) = "firestore.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/datastore";
+
+ // Creates a composite index. This returns a
+ // [google.longrunning.Operation][google.longrunning.Operation] which may be
+ // used to track the status of the creation. The metadata for the operation
+ // will be the type
+ // [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
+ rpc CreateIndex(CreateIndexRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes"
+ body: "index"
+ };
+ option (google.api.method_signature) = "parent,index";
+ option (google.longrunning.operation_info) = {
+ response_type: "Index"
+ metadata_type: "IndexOperationMetadata"
+ };
+ }
+
+ // Lists composite indexes.
+ rpc ListIndexes(ListIndexesRequest) returns (ListIndexesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets a composite index.
+ rpc GetIndex(GetIndexRequest) returns (Index) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Deletes a composite index.
+ rpc DeleteIndex(DeleteIndexRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets the metadata and configuration for a Field.
+ rpc GetField(GetFieldRequest) returns (Field) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/databases/*/collectionGroups/*/fields/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates a field configuration. Currently, field updates apply only to
+ // single field index configuration. However, calls to
+ // [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
+ // should provide a field mask to avoid changing any configuration that the
+ // caller isn't aware of. The field mask should be specified as: `{ paths:
+ // "index_config" }`.
+ //
+ // This call returns a
+ // [google.longrunning.Operation][google.longrunning.Operation] which may be
+ // used to track the status of the field update. The metadata for the
+ // operation will be the type
+ // [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
+ //
+ // To configure the default field settings for the database, use
+ // the special `Field` with resource name:
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
+ rpc UpdateField(UpdateFieldRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{field.name=projects/*/databases/*/collectionGroups/*/fields/*}"
+ body: "field"
+ };
+ option (google.api.method_signature) = "field";
+ option (google.longrunning.operation_info) = {
+ response_type: "Field"
+ metadata_type: "FieldOperationMetadata"
+ };
+ }
+
+ // Lists the field configuration and metadata for this database.
+ //
+ // Currently,
+ // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+ // only supports listing fields that have been explicitly overridden. To issue
+ // this query, call
+ // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+ // with the filter set to `indexConfig.usesAncestorConfig:false` or
+ // `ttlConfig:*`.
+ rpc ListFields(ListFieldsRequest) returns (ListFieldsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/databases/*/collectionGroups/*}/fields"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Exports a copy of all or a subset of documents from Google Cloud Firestore
+ // to another storage system, such as Google Cloud Storage. Recent updates to
+ // documents may not be reflected in the export. The export occurs in the
+ // background and its progress can be monitored and managed via the
+ // Operation resource that is created. The output of an export may only be
+ // used once the associated operation is done. If an export operation is
+ // cancelled before completion it may leave partial data behind in Google
+ // Cloud Storage.
+ //
+ // For more details on export behavior and output format, refer to:
+ // https://cloud.google.com/firestore/docs/manage-data/export-import
+ rpc ExportDocuments(ExportDocumentsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/databases/*}:exportDocuments"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "ExportDocumentsResponse"
+ metadata_type: "ExportDocumentsMetadata"
+ };
+ }
+
+ // Imports documents into Google Cloud Firestore. Existing documents with the
+ // same name are overwritten. The import occurs in the background and its
+ // progress can be monitored and managed via the Operation resource that is
+ // created. If an ImportDocuments operation is cancelled, it is possible
+ // that a subset of the data has already been imported to Cloud Firestore.
+ rpc ImportDocuments(ImportDocumentsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/databases/*}:importDocuments"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "ImportDocumentsMetadata"
+ };
+ }
+
+ // Bulk deletes a subset of documents from Google Cloud Firestore.
+ // Documents created or updated after the underlying system starts to process
+ // the request will not be deleted. The bulk delete occurs in the background
+ // and its progress can be monitored and managed via the Operation resource
+ // that is created.
+ //
+ // For more details on bulk delete behavior, refer to:
+ // https://cloud.google.com/firestore/docs/manage-data/bulk-delete
+ rpc BulkDeleteDocuments(BulkDeleteDocumentsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/databases/*}:bulkDeleteDocuments"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "BulkDeleteDocumentsResponse"
+ metadata_type: "BulkDeleteDocumentsMetadata"
+ };
+ }
+
+ // Create a database.
+ rpc CreateDatabase(CreateDatabaseRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*}/databases"
+ body: "database"
+ };
+ option (google.api.method_signature) = "parent,database,database_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Database"
+ metadata_type: "CreateDatabaseMetadata"
+ };
+ }
+
+ // Gets information about a database.
+ rpc GetDatabase(GetDatabaseRequest) returns (Database) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/databases/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List all the databases in the project.
+ rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*}/databases"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a database.
+ rpc UpdateDatabase(UpdateDatabaseRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{database.name=projects/*/databases/*}"
+ body: "database"
+ };
+ option (google.api.method_signature) = "database,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Database"
+ metadata_type: "UpdateDatabaseMetadata"
+ };
+ }
+
+ // Deletes a database.
+ rpc DeleteDatabase(DeleteDatabaseRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/databases/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "Database"
+ metadata_type: "DeleteDatabaseMetadata"
+ };
+ }
+
+ // Create a user creds.
+ rpc CreateUserCreds(CreateUserCredsRequest) returns (UserCreds) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*}/userCreds"
+ body: "user_creds"
+ };
+ option (google.api.method_signature) = "parent,user_creds,user_creds_id";
+ }
+
+ // Gets a user creds resource. Note that the returned resource does not
+ // contain the secret value itself.
+ rpc GetUserCreds(GetUserCredsRequest) returns (UserCreds) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/databases/*/userCreds/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List all user creds in the database. Note that the returned resource
+ // does not contain the secret value itself.
+ rpc ListUserCreds(ListUserCredsRequest) returns (ListUserCredsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/databases/*}/userCreds"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Enables a user creds. No-op if the user creds are already enabled.
+ rpc EnableUserCreds(EnableUserCredsRequest) returns (UserCreds) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/databases/*/userCreds/*}:enable"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Disables a user creds. No-op if the user creds are already disabled.
+ rpc DisableUserCreds(DisableUserCredsRequest) returns (UserCreds) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/databases/*/userCreds/*}:disable"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Resets the password of a user creds.
+ rpc ResetUserPassword(ResetUserPasswordRequest) returns (UserCreds) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/databases/*/userCreds/*}:resetPassword"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Deletes a user creds.
+ rpc DeleteUserCreds(DeleteUserCredsRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/databases/*/userCreds/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets information about a backup.
+ rpc GetBackup(GetBackupRequest) returns (Backup) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists all the backups.
+ rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/backups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Deletes a backup.
+ rpc DeleteBackup(DeleteBackupRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new database by restoring from an existing backup.
+ //
+ // The new database must be in the same cloud region or multi-region location
+ // as the existing backup. This behaves similar to
+ // [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
+ // except instead of creating a new empty database, a new database is created
+ // with the database type, index configuration, and documents from an existing
+ // backup.
+ //
+ // The [long-running operation][google.longrunning.Operation] can be used to
+ // track the progress of the restore, with the Operation's
+ // [metadata][google.longrunning.Operation.metadata] field type being the
+ // [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
+ // The [response][google.longrunning.Operation.response] type is the
+ // [Database][google.firestore.admin.v1.Database] if the restore was
+ // successful. The new database is not readable or writeable until the LRO has
+ // completed.
+ rpc RestoreDatabase(RestoreDatabaseRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*}/databases:restore"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Database"
+ metadata_type: "RestoreDatabaseMetadata"
+ };
+ }
+
+ // Creates a backup schedule on a database.
+ // At most two backup schedules can be configured on a database, one daily
+ // backup schedule and one weekly backup schedule.
+ rpc CreateBackupSchedule(CreateBackupScheduleRequest)
+ returns (BackupSchedule) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*}/backupSchedules"
+ body: "backup_schedule"
+ };
+ option (google.api.method_signature) = "parent,backup_schedule";
+ }
+
+ // Gets information about a backup schedule.
+ rpc GetBackupSchedule(GetBackupScheduleRequest) returns (BackupSchedule) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/databases/*/backupSchedules/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List backup schedules.
+ rpc ListBackupSchedules(ListBackupSchedulesRequest)
+ returns (ListBackupSchedulesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/databases/*}/backupSchedules"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a backup schedule.
+ rpc UpdateBackupSchedule(UpdateBackupScheduleRequest)
+ returns (BackupSchedule) {
+ option (google.api.http) = {
+ patch: "/v1/{backup_schedule.name=projects/*/databases/*/backupSchedules/*}"
+ body: "backup_schedule"
+ };
+ option (google.api.method_signature) = "backup_schedule,update_mask";
+ }
+
+ // Deletes a backup schedule.
+ rpc DeleteBackupSchedule(DeleteBackupScheduleRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/databases/*/backupSchedules/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new database by cloning an existing one.
+ //
+ // The new database must be in the same cloud region or multi-region location
+ // as the existing database. This behaves similar to
+ // [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
+ // except instead of creating a new empty database, a new database is created
+ // with the database type, index configuration, and documents from an existing
+ // database.
+ //
+ // The [long-running operation][google.longrunning.Operation] can be used to
+ // track the progress of the clone, with the Operation's
+ // [metadata][google.longrunning.Operation.metadata] field type being the
+ // [CloneDatabaseMetadata][google.firestore.admin.v1.CloneDatabaseMetadata].
+ // The [response][google.longrunning.Operation.response] type is the
+ // [Database][google.firestore.admin.v1.Database] if the clone was
+ // successful. The new database is not readable or writeable until the LRO has
+ // completed.
+ rpc CloneDatabase(CloneDatabaseRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*}/databases:clone"
+ body: "*"
+ };
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "pitr_snapshot.database"
+ path_template: "projects/{project_id=*}/**"
+ }
+ routing_parameters {
+ field: "pitr_snapshot.database"
+ path_template: "projects/*/databases/{database_id=*}/**"
+ }
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Database"
+ metadata_type: "CloneDatabaseMetadata"
+ };
+ }
+}
+
+// A request to list the Firestore Databases in all locations for a project.
+message ListDatabasesRequest {
+ // Required. A parent name of the form
+ // `projects/{project_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // If true, also returns deleted resources.
+ bool show_deleted = 4;
+}
+
+// The request for
+// [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase].
+message CreateDatabaseRequest {
+ // Required. A parent name of the form
+ // `projects/{project_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // Required. The Database to create.
+ Database database = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the database, which will become the final
+ // component of the database's resource name.
+ //
+ // This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
+ // with first character a letter and the last a letter or a number. Must not
+ // be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
+ //
+ // "(default)" database ID is also valid if the database is Standard edition.
+ string database_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Metadata related to the create database operation.
+message CreateDatabaseMetadata {}
+
+// The list of databases for a project.
+message ListDatabasesResponse {
+ // The databases in the project.
+ repeated Database databases = 1;
+
+ // In the event that data about individual databases cannot be listed they
+ // will be recorded here.
+ //
+ // An example entry might be: projects/some_project/locations/some_location
+ // This can happen if the Cloud Region that the Database resides in is
+ // currently unavailable. In this case we can't fetch all the details about
+ // the database. You may be able to get a more detailed error message
+ // (or possibly fetch the resource) by sending a 'Get' request for the
+ // resource or a 'List' request for the specific location.
+ repeated string unreachable = 3;
+}
+
+// The request for
+// [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].
+message GetDatabaseRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].
+message UpdateDatabaseRequest {
+ // Required. The database to update.
+ Database database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Metadata related to the update database operation.
+message UpdateDatabaseMetadata {}
+
+// The request for
+// [FirestoreAdmin.DeleteDatabase][google.firestore.admin.v1.FirestoreAdmin.DeleteDatabase].
+message DeleteDatabaseRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // The current etag of the Database.
+ // If an etag is provided and does not match the current etag of the database,
+ // deletion will be blocked and a FAILED_PRECONDITION error will be returned.
+ string etag = 3;
+}
+
+// Metadata related to the delete database operation.
+message DeleteDatabaseMetadata {}
+
+// The request for
+// [FirestoreAdmin.CreateUserCreds][google.firestore.admin.v1.FirestoreAdmin.CreateUserCreds].
+message CreateUserCredsRequest {
+ // Required. A parent name of the form
+ // `projects/{project_id}/databases/{database_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "firestore.googleapis.com/UserCreds"
+ }
+ ];
+
+ // Required. The user creds to create.
+ UserCreds user_creds = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the user creds, which will become the final
+ // component of the user creds's resource name.
+ //
+ // This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
+ // with first character a letter and the last a letter or a number. Must not
+ // be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
+ string user_creds_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request for
+// [FirestoreAdmin.GetUserCreds][google.firestore.admin.v1.FirestoreAdmin.GetUserCreds].
+message GetUserCredsRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/UserCreds"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.ListUserCreds][google.firestore.admin.v1.FirestoreAdmin.ListUserCreds].
+message ListUserCredsRequest {
+ // Required. A parent database name of the form
+ // `projects/{project_id}/databases/{database_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "firestore.googleapis.com/UserCreds"
+ }
+ ];
+}
+
+// The response for
+// [FirestoreAdmin.ListUserCreds][google.firestore.admin.v1.FirestoreAdmin.ListUserCreds].
+message ListUserCredsResponse {
+ // The user creds for the database.
+ repeated UserCreds user_creds = 1;
+}
+
+// The request for
+// [FirestoreAdmin.EnableUserCreds][google.firestore.admin.v1.FirestoreAdmin.EnableUserCreds].
+message EnableUserCredsRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/UserCreds"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.DisableUserCreds][google.firestore.admin.v1.FirestoreAdmin.DisableUserCreds].
+message DisableUserCredsRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/UserCreds"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.ResetUserPassword][google.firestore.admin.v1.FirestoreAdmin.ResetUserPassword].
+message ResetUserPasswordRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/UserCreds"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.DeleteUserCreds][google.firestore.admin.v1.FirestoreAdmin.DeleteUserCreds].
+message DeleteUserCredsRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/UserCreds"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.CreateBackupSchedule][google.firestore.admin.v1.FirestoreAdmin.CreateBackupSchedule].
+message CreateBackupScheduleRequest {
+ // Required. The parent database.
+ //
+ // Format `projects/{project}/databases/{database}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // Required. The backup schedule to create.
+ BackupSchedule backup_schedule = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request for
+// [FirestoreAdmin.GetBackupSchedule][google.firestore.admin.v1.FirestoreAdmin.GetBackupSchedule].
+message GetBackupScheduleRequest {
+ // Required. The name of the backup schedule.
+ //
+ // Format
+ // `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/BackupSchedule"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.UpdateBackupSchedule][google.firestore.admin.v1.FirestoreAdmin.UpdateBackupSchedule].
+message UpdateBackupScheduleRequest {
+ // Required. The backup schedule to update.
+ BackupSchedule backup_schedule = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// The request for
+// [FirestoreAdmin.ListBackupSchedules][google.firestore.admin.v1.FirestoreAdmin.ListBackupSchedules].
+message ListBackupSchedulesRequest {
+ // Required. The parent database.
+ //
+ // Format is `projects/{project}/databases/{database}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+}
+
+// The response for
+// [FirestoreAdmin.ListBackupSchedules][google.firestore.admin.v1.FirestoreAdmin.ListBackupSchedules].
+message ListBackupSchedulesResponse {
+ // List of all backup schedules.
+ repeated BackupSchedule backup_schedules = 1;
+}
+
+// The request for [FirestoreAdmin.DeleteBackupSchedules][].
+message DeleteBackupScheduleRequest {
+ // Required. The name of the backup schedule.
+ //
+ // Format
+ // `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/BackupSchedule"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+message CreateIndexRequest {
+ // Required. A parent name of the form
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/CollectionGroup"
+ }
+ ];
+
+ // Required. The composite index to create.
+ Index index = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request for
+// [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+message ListIndexesRequest {
+ // Required. A parent name of the form
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/CollectionGroup"
+ }
+ ];
+
+ // The filter to apply to list results.
+ string filter = 2;
+
+ // The number of results to return.
+ int32 page_size = 3;
+
+ // A page token, returned from a previous call to
+ // [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
+ // that may be used to get the next page of results.
+ string page_token = 4;
+}
+
+// The response for
+// [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
+message ListIndexesResponse {
+ // The requested indexes.
+ repeated Index indexes = 1;
+
+ // A page token that may be used to request another page of results. If blank,
+ // this is the last page.
+ string next_page_token = 2;
+}
+
+// The request for
+// [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
+message GetIndexRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "firestore.googleapis.com/Index" }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
+message DeleteIndexRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "firestore.googleapis.com/Index" }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+message UpdateFieldRequest {
+ // Required. The field to be updated.
+ Field field = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // A mask, relative to the field. If specified, only configuration specified
+ // by this field_mask will be updated in the field.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// The request for
+// [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
+message GetFieldRequest {
+ // Required. A name of the form
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "firestore.googleapis.com/Field" }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+message ListFieldsRequest {
+ // Required. A parent name of the form
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/CollectionGroup"
+ }
+ ];
+
+ // The filter to apply to list results. Currently,
+ // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+ // only supports listing fields that have been explicitly overridden. To issue
+ // this query, call
+ // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
+ // with a filter that includes `indexConfig.usesAncestorConfig:false` or
+ // `ttlConfig:*`.
+ string filter = 2;
+
+ // The number of results to return.
+ int32 page_size = 3;
+
+ // A page token, returned from a previous call to
+ // [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
+ // that may be used to get the next page of results.
+ string page_token = 4;
+}
+
+// The response for
+// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
+message ListFieldsResponse {
+ // The requested fields.
+ repeated Field fields = 1;
+
+ // A page token that may be used to request another page of results. If blank,
+ // this is the last page.
+ string next_page_token = 2;
+}
+
+// The request for
+// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+message ExportDocumentsRequest {
+ // Required. Database to export. Should be of the form:
+ // `projects/{project_id}/databases/{database_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // IDs of the collection groups to export. Unspecified means all
+ // collection groups. Each collection group in this list must be unique.
+ repeated string collection_ids = 2;
+
+ // The output URI. Currently only supports Google Cloud Storage URIs of the
+ // form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
+ // of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
+ // Google Cloud Storage namespace path. When
+ // choosing a name, be sure to consider Google Cloud Storage naming
+ // guidelines: https://cloud.google.com/storage/docs/naming.
+ // If the URI is a bucket (without a namespace path), a prefix will be
+ // generated based on the start time.
+ string output_uri_prefix = 3;
+
+ // An empty list represents all namespaces. This is the preferred
+ // usage for databases that don't use namespaces.
+ //
+ // An empty string element represents the default namespace. This should be
+ // used if the database has data in non-default namespaces, but doesn't want
+ // to include them. Each namespace in this list must be unique.
+ repeated string namespace_ids = 4;
+
+ // The timestamp that corresponds to the version of the database to be
+ // exported. The timestamp must be in the past, rounded to the minute and not
+ // older than
+ // [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+ // If specified, then the exported documents will represent a consistent view
+ // of the database at the provided time. Otherwise, there are no guarantees
+ // about the consistency of the exported documents.
+ google.protobuf.Timestamp snapshot_time = 5;
+}
+
+// The request for
+// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+message ImportDocumentsRequest {
+ // Required. Database to import into. Should be of the form:
+ // `projects/{project_id}/databases/{database_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // IDs of the collection groups to import. Unspecified means all collection
+ // groups that were included in the export. Each collection group in this list
+ // must be unique.
+ repeated string collection_ids = 2;
+
+ // Location of the exported files.
+ // This must match the output_uri_prefix of an ExportDocumentsResponse from
+ // an export that has completed successfully.
+ // See:
+ // [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
+ string input_uri_prefix = 3;
+
+ // An empty list represents all namespaces. This is the preferred
+ // usage for databases that don't use namespaces.
+ //
+ // An empty string element represents the default namespace. This should be
+ // used if the database has data in non-default namespaces, but doesn't want
+ // to include them. Each namespace in this list must be unique.
+ repeated string namespace_ids = 4;
+}
+
+// The request for
+// [FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments].
+//
+// When both collection_ids and namespace_ids are set, only documents satisfying
+// both conditions will be deleted.
+//
+// Requests with namespace_ids and collection_ids both empty will be rejected.
+// Please use
+// [FirestoreAdmin.DeleteDatabase][google.firestore.admin.v1.FirestoreAdmin.DeleteDatabase]
+// instead.
+message BulkDeleteDocumentsRequest {
+ // Required. Database to operate. Should be of the form:
+ // `projects/{project_id}/databases/{database_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // Optional. IDs of the collection groups to delete. Unspecified means all
+ // collection groups.
+ //
+ // Each collection group in this list must be unique.
+ repeated string collection_ids = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Namespaces to delete.
+ //
+ // An empty list means all namespaces. This is the recommended
+ // usage for databases that don't use namespaces.
+ //
+ // An empty string element represents the default namespace. This should be
+ // used if the database has data in non-default namespaces, but doesn't want
+ // to delete from them.
+ //
+ // Each namespace in this list must be unique.
+ repeated string namespace_ids = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The response for
+// [FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments].
+message BulkDeleteDocumentsResponse {}
+
+// The request for
+// [FirestoreAdmin.GetBackup][google.firestore.admin.v1.FirestoreAdmin.GetBackup].
+message GetBackupRequest {
+ // Required. Name of the backup to fetch.
+ //
+ // Format is `projects/{project}/locations/{location}/backups/{backup}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Backup"
+ }
+ ];
+}
+
+// The request for
+// [FirestoreAdmin.ListBackups][google.firestore.admin.v1.FirestoreAdmin.ListBackups].
+message ListBackupsRequest {
+ // Required. The location to list backups from.
+ //
+ // Format is `projects/{project}/locations/{location}`.
+ // Use `{location} = '-'` to list backups from all locations for the given
+ // project. This allows listing backups from a single location or from all
+ // locations.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Location"
+ }
+ ];
+
+ // An expression that filters the list of returned backups.
+ //
+ // A filter expression consists of a field name, a comparison operator, and a
+ // value for filtering.
+ // The value must be a string, a number, or a boolean. The comparison operator
+ // must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
+ // Colon `:` is the contains operator. Filter rules are not case sensitive.
+ //
+ // The following fields in the [Backup][google.firestore.admin.v1.Backup] are
+ // eligible for filtering:
+ //
+ // * `database_uid` (supports `=` only)
+ string filter = 2;
+}
+
+// The response for
+// [FirestoreAdmin.ListBackups][google.firestore.admin.v1.FirestoreAdmin.ListBackups].
+message ListBackupsResponse {
+ // List of all backups for the project.
+ repeated Backup backups = 1;
+
+ // List of locations that existing backups were not able to be fetched from.
+ //
+ // Instead of failing the entire requests when a single location is
+ // unreachable, this response returns a partial result set and list of
+ // locations unable to be reached here. The request can be retried against a
+ // single location to get a concrete error.
+ repeated string unreachable = 3;
+}
+
+// The request for
+// [FirestoreAdmin.DeleteBackup][google.firestore.admin.v1.FirestoreAdmin.DeleteBackup].
+message DeleteBackupRequest {
+ // Required. Name of the backup to delete.
+ //
+ // format is `projects/{project}/locations/{location}/backups/{backup}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Backup"
+ }
+ ];
+}
+
+// The request message for
+// [FirestoreAdmin.RestoreDatabase][google.firestore.admin.v1.FirestoreAdmin.RestoreDatabase].
+message RestoreDatabaseRequest {
+ // Required. The project to restore the database in. Format is
+ // `projects/{project_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // Required. The ID to use for the database, which will become the final
+ // component of the database's resource name. This database ID must not be
+ // associated with an existing database.
+ //
+ // This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
+ // with first character a letter and the last a letter or a number. Must not
+ // be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
+ //
+ // "(default)" database ID is also valid if the database is Standard edition.
+ string database_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Backup to restore from. Must be from the same project as the
+ // parent.
+ //
+ // The restored database will be created in the same location as the source
+ // backup.
+ //
+ // Format is: `projects/{project_id}/locations/{location}/backups/{backup}`
+ string backup = 3 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Backup"
+ }
+ ];
+
+ // Optional. Encryption configuration for the restored database.
+ //
+ // If this field is not specified, the restored database will use
+ // the same encryption configuration as the backup, namely
+ // [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
+ Database.EncryptionConfig encryption_config = 9
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Immutable. Tags to be bound to the restored database.
+ //
+ // The tags should be provided in the format of
+ // `tagKeys/{tag_key_id} -> tagValues/{tag_value_id}`.
+ map tags = 10 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// The request message for
+// [FirestoreAdmin.CloneDatabase][google.firestore.admin.v1.FirestoreAdmin.CloneDatabase].
+message CloneDatabaseRequest {
+ // Required. The project to clone the database in. Format is
+ // `projects/{project_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // Required. The ID to use for the database, which will become the final
+ // component of the database's resource name. This database ID must not be
+ // associated with an existing database.
+ //
+ // This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
+ // with first character a letter and the last a letter or a number. Must not
+ // be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
+ //
+ // "(default)" database ID is also valid if the database is Standard edition.
+ string database_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Specification of the PITR data to clone from. The source database
+ // must exist.
+ //
+ // The cloned database will be created in the same location as the source
+ // database.
+ PitrSnapshot pitr_snapshot = 6 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Encryption configuration for the cloned database.
+ //
+ // If this field is not specified, the cloned database will use
+ // the same encryption configuration as the source database, namely
+ // [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
+ Database.EncryptionConfig encryption_config = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Immutable. Tags to be bound to the cloned database.
+ //
+ // The tags should be provided in the format of
+ // `tagKeys/{tag_key_id} -> tagValues/{tag_value_id}`.
+ map tags = 5 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/index.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/index.proto
new file mode 100644
index 000000000000..c3f20c5bc2df
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/index.proto
@@ -0,0 +1,378 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "IndexProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// Cloud Firestore indexes enable simple and complex queries against
+// documents in a database.
+message Index {
+ option (google.api.resource) = {
+ type: "firestore.googleapis.com/Index"
+ pattern: "projects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}"
+ };
+
+ // Query Scope defines the scope at which a query is run. This is specified on
+ // a StructuredQuery's `from` field.
+ enum QueryScope {
+ // The query scope is unspecified. Not a valid option.
+ QUERY_SCOPE_UNSPECIFIED = 0;
+
+ // Indexes with a collection query scope specified allow queries
+ // against a collection that is the child of a specific document, specified
+ // at query time, and that has the collection ID specified by the index.
+ COLLECTION = 1;
+
+ // Indexes with a collection group query scope specified allow queries
+ // against all collections that has the collection ID specified by the
+ // index.
+ COLLECTION_GROUP = 2;
+
+ // Include all the collections's ancestor in the index. Only available for
+ // Datastore Mode databases.
+ COLLECTION_RECURSIVE = 3;
+ }
+
+ // API Scope defines the APIs (Firestore Native, or Firestore in
+ // Datastore Mode) that are supported for queries.
+ enum ApiScope {
+ // The index can only be used by the Firestore Native query API.
+ // This is the default.
+ ANY_API = 0;
+
+ // The index can only be used by the Firestore in Datastore Mode query API.
+ DATASTORE_MODE_API = 1;
+
+ // The index can only be used by the MONGODB_COMPATIBLE_API.
+ MONGODB_COMPATIBLE_API = 2;
+ }
+
+ // A field in an index.
+ // The field_path describes which field is indexed, the value_mode describes
+ // how the field value is indexed.
+ message IndexField {
+ // The supported orderings.
+ enum Order {
+ // The ordering is unspecified. Not a valid option.
+ ORDER_UNSPECIFIED = 0;
+
+ // The field is ordered by ascending field value.
+ ASCENDING = 1;
+
+ // The field is ordered by descending field value.
+ DESCENDING = 2;
+ }
+
+ // The supported array value configurations.
+ enum ArrayConfig {
+ // The index does not support additional array queries.
+ ARRAY_CONFIG_UNSPECIFIED = 0;
+
+ // The index supports array containment queries.
+ CONTAINS = 1;
+ }
+
+ // The index configuration to support vector search operations
+ message VectorConfig {
+ // An index that stores vectors in a flat data structure, and supports
+ // exhaustive search.
+ message FlatIndex {}
+
+ // Required. The vector dimension this configuration applies to.
+ //
+ // The resulting index will only include vectors of this dimension, and
+ // can be used for vector search with the same dimension.
+ int32 dimension = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The type of index used.
+ oneof type {
+ // Indicates the vector index is a flat index.
+ FlatIndex flat = 2;
+ }
+ }
+
+ // The configuration for how to index a field for search.
+ message SearchConfig {
+ // Ways to index the text field value.
+ enum TextIndexType {
+ // The index type is unspecified. Not a valid option.
+ TEXT_INDEX_TYPE_UNSPECIFIED = 0;
+
+ // Field values are tokenized. This is the only way currently supported
+ // for MONGODB_COMPATIBLE_API.
+ TOKENIZED = 1;
+ }
+
+ // Types of text matches that are supported for the
+ // field.
+ enum TextMatchType {
+ // The match type is unspecified. Not a valid option.
+ TEXT_MATCH_TYPE_UNSPECIFIED = 0;
+
+ // Match on any indexed field. This is the only way currently supported
+ // for MONGODB_COMPATIBLE_API.
+ MATCH_GLOBALLY = 1;
+ }
+
+ // Specification of how the field should be indexed for search text
+ // indexes.
+ message SearchTextIndexSpec {
+ // Required. How to index the text field value.
+ TextIndexType index_type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. How to match the text field value.
+ TextMatchType match_type = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // The specification for how to build a text search index for a field.
+ message SearchTextSpec {
+ // Required. Specifications for how the field should be indexed.
+ // Repeated so that the field can be indexed in multiple ways.
+ repeated SearchTextIndexSpec index_specs = 1
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // The specification for how to build a geo search index for a field.
+ message SearchGeoSpec {
+ // Optional. Disables geoJSON indexing for the field. By default,
+ // geoJSON points are indexed.
+ bool geo_json_indexing_disabled = 1
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. The specification for building a text search index for a
+ // field.
+ SearchTextSpec text_spec = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The specification for building a geo search index for a
+ // field.
+ SearchGeoSpec geo_spec = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Can be __name__.
+ // For single field indexes, this must match the name of the field or may
+ // be omitted.
+ string field_path = 1;
+
+ // How the field value is indexed.
+ oneof value_mode {
+ // Indicates that this field supports ordering by the specified order or
+ // comparing using =, !=, <, <=, >, >=.
+ Order order = 2;
+
+ // Indicates that this field supports operations on `array_value`s.
+ ArrayConfig array_config = 3;
+
+ // Indicates that this field supports nearest neighbor and distance
+ // operations on vector.
+ VectorConfig vector_config = 4;
+
+ // Indicates that this field supports search operations. This field
+ // is only currently supported for indexes with MONGODB_COMPATIBLE_API
+ // ApiScope.
+ SearchConfig search_config = 5;
+ }
+ }
+
+ // The state of an index. During index creation, an index will be in the
+ // `CREATING` state. If the index is created successfully, it will transition
+ // to the `READY` state. If the index creation encounters a problem, the index
+ // will transition to the `NEEDS_REPAIR` state.
+ enum State {
+ // The state is unspecified.
+ STATE_UNSPECIFIED = 0;
+
+ // The index is being created.
+ // There is an active long-running operation for the index.
+ // The index is updated when writing a document.
+ // Some index data may exist.
+ CREATING = 1;
+
+ // The index is ready to be used.
+ // The index is updated when writing a document.
+ // The index is fully populated from all stored documents it applies to.
+ READY = 2;
+
+ // The index was being created, but something went wrong.
+ // There is no active long-running operation for the index,
+ // and the most recently finished long-running operation failed.
+ // The index is not updated when writing a document.
+ // Some index data may exist.
+ // Use the google.longrunning.Operations API to determine why the operation
+ // that last attempted to create this index failed, then re-create the
+ // index.
+ NEEDS_REPAIR = 3;
+ }
+
+ // The density configuration for the index.
+ enum Density {
+ // Unspecified. It will use database default setting. This value is input
+ // only.
+ DENSITY_UNSPECIFIED = 0;
+
+ // An index entry will only exist if ALL fields are present in the document.
+ //
+ // This is both the default and only allowed value for Standard Edition
+ // databases (for both Cloud Firestore `ANY_API` and Cloud Datastore
+ // `DATASTORE_MODE_API`).
+ //
+ // Take for example the following document:
+ //
+ // ```
+ // {
+ // "__name__": "...",
+ // "a": 1,
+ // "b": 2,
+ // "c": 3
+ // }
+ // ```
+ //
+ // an index on `(a ASC, b ASC, c ASC, __name__ ASC)` will generate an index
+ // entry for this document since `a`, 'b', `c`, and `__name__` are all
+ // present but an index of `(a ASC, d ASC, __name__ ASC)` will not generate
+ // an index entry for this document since `d` is missing.
+ //
+ // This means that such indexes can only be used to serve a query when the
+ // query has either implicit or explicit requirements that all fields from
+ // the index are present.
+ SPARSE_ALL = 1;
+
+ // An index entry will exist if ANY field are present in the document.
+ //
+ // This is used as the definition of a sparse index for Enterprise Edition
+ // databases.
+ //
+ // Take for example the following document:
+ //
+ // ```
+ // {
+ // "__name__": "...",
+ // "a": 1,
+ // "b": 2,
+ // "c": 3
+ // }
+ // ```
+ //
+ // an index on `(a ASC, d ASC)` will generate an index entry for this
+ // document since `a` is present, and will fill in an `unset` value for `d`.
+ // An index on `(d ASC, e ASC)` will not generate any index entry as neither
+ // `d` nor `e` are present.
+ //
+ // An index that contains `__name__` will generate an index entry for all
+ // documents since Firestore guarantees that all documents have a `__name__`
+ // field.
+ SPARSE_ANY = 2;
+
+ // An index entry will exist regardless of if the fields are present or not.
+ //
+ // This is the default density for an Enterprise Edition database.
+ //
+ // The index will store `unset` values for fields that are not present in
+ // the document.
+ DENSE = 3;
+ }
+
+ // Options for search indexes at the definition level.
+ message SearchIndexOptions {
+ // Optional. The language to use for text search indexes. Used as the
+ // default language if not overridden at the document level by specifying
+ // the `text_language_override_field`. The language is specified as a BCP 47
+ // language code.
+ // For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the
+ // default language is English.
+ // For indexes with `ANY_API` ApiScope: If unspecified, the default behavior
+ // is autodetect.
+ string text_language = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The field in the document that specifies which language to use
+ // for that specific document. For indexes with MONGODB_COMPATIBLE_API
+ // ApiScope: if unspecified, the language is taken from the "language" field
+ // if it exists or from `text_language` if it does not.
+ string text_language_override_field_path = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Output only. A server defined name for this index.
+ // The form of this name for composite indexes will be:
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
+ // For single field indexes, this field will be empty.
+ string name = 1;
+
+ // Indexes with a collection query scope specified allow queries
+ // against a collection that is the child of a specific document, specified at
+ // query time, and that has the same collection ID.
+ //
+ // Indexes with a collection group query scope specified allow queries against
+ // all collections descended from a specific document, specified at query
+ // time, and that have the same collection ID as this index.
+ QueryScope query_scope = 2;
+
+ // The API scope supported by this index.
+ ApiScope api_scope = 5;
+
+ // The fields supported by this index.
+ //
+ // For composite indexes, this requires a minimum of 2 and a maximum of 100
+ // fields. The last field entry is always for the field path `__name__`. If,
+ // on creation, `__name__` was not specified as the last field, it will be
+ // added automatically with the same direction as that of the last field
+ // defined. If the final field in a composite index is not directional, the
+ // `__name__` will be ordered ASCENDING (unless explicitly specified).
+ //
+ // For single field indexes, this will always be exactly one entry with a
+ // field path equal to the field path of the associated field.
+ repeated IndexField fields = 3;
+
+ // Output only. The serving state of the index.
+ State state = 4;
+
+ // Immutable. The density configuration of the index.
+ Density density = 6 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Optional. Whether the index is multikey. By default, the index is not
+ // multikey. For non-multikey indexes, none of the paths in the index
+ // definition reach or traverse an array, except via an explicit array index.
+ // For multikey indexes, at most one of the paths in the index definition
+ // reach or traverse an array, except via an explicit array index. Violations
+ // will result in errors.
+ //
+ // Note this field only applies to index with MONGODB_COMPATIBLE_API ApiScope.
+ bool multikey = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The number of shards for the index.
+ int32 shard_count = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether it is an unique index. Unique index ensures all values
+ // for the indexed field(s) are unique across documents.
+ bool unique = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Options for search indexes that are at the index definition
+ // level. This field is only currently supported for indexes with
+ // MONGODB_COMPATIBLE_API ApiScope.
+ SearchIndexOptions search_index_options = 9
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/location.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/location.proto
new file mode 100644
index 000000000000..702138b15185
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/location.proto
@@ -0,0 +1,30 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "LocationProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// The metadata message for
+// [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata].
+message LocationMetadata {}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/operation.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/operation.proto
new file mode 100644
index 000000000000..3d22fdf4a8ff
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/operation.proto
@@ -0,0 +1,330 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/resource.proto";
+import "google/firestore/admin/v1/index.proto";
+import "google/firestore/admin/v1/snapshot.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "OperationProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+// results from
+// [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
+message IndexOperationMetadata {
+ // The time this operation started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The time this operation completed. Will be unset if operation still in
+ // progress.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The index resource that this operation is acting on. For example:
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
+ string index = 3;
+
+ // The state of the operation.
+ OperationState state = 4;
+
+ // The progress, in documents, of this operation.
+ Progress progress_documents = 5;
+
+ // The progress, in bytes, of this operation.
+ Progress progress_bytes = 6;
+}
+
+// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+// results from
+// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
+message FieldOperationMetadata {
+ // Information about an index configuration change.
+ message IndexConfigDelta {
+ // Specifies how the index is changing.
+ enum ChangeType {
+ // The type of change is not specified or known.
+ CHANGE_TYPE_UNSPECIFIED = 0;
+
+ // The single field index is being added.
+ ADD = 1;
+
+ // The single field index is being removed.
+ REMOVE = 2;
+ }
+
+ // Specifies how the index is changing.
+ ChangeType change_type = 1;
+
+ // The index being changed.
+ Index index = 2;
+ }
+
+ // Information about a TTL configuration change.
+ message TtlConfigDelta {
+ // Specifies how the TTL config is changing.
+ enum ChangeType {
+ // The type of change is not specified or known.
+ CHANGE_TYPE_UNSPECIFIED = 0;
+
+ // The TTL config is being added.
+ ADD = 1;
+
+ // The TTL config is being removed.
+ REMOVE = 2;
+ }
+
+ // Specifies how the TTL configuration is changing.
+ ChangeType change_type = 1;
+
+ // The offset, relative to the timestamp value in the TTL-enabled field,
+ // used determine the document's expiration time.
+ google.protobuf.Duration expiration_offset = 3;
+ }
+
+ // The time this operation started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The time this operation completed. Will be unset if operation still in
+ // progress.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The field resource that this operation is acting on. For example:
+ // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
+ string field = 3;
+
+ // A list of
+ // [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+ // which describe the intent of this operation.
+ repeated IndexConfigDelta index_config_deltas = 4;
+
+ // The state of the operation.
+ OperationState state = 5;
+
+ // The progress, in documents, of this operation.
+ Progress progress_documents = 6;
+
+ // The progress, in bytes, of this operation.
+ Progress progress_bytes = 7;
+
+ // Describes the deltas of TTL configuration.
+ TtlConfigDelta ttl_config_delta = 8;
+}
+
+// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+// results from
+// [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
+message ExportDocumentsMetadata {
+ // The time this operation started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The time this operation completed. Will be unset if operation still in
+ // progress.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The state of the export operation.
+ OperationState operation_state = 3;
+
+ // The progress, in documents, of this operation.
+ Progress progress_documents = 4;
+
+ // The progress, in bytes, of this operation.
+ Progress progress_bytes = 5;
+
+ // Which collection IDs are being exported.
+ repeated string collection_ids = 6;
+
+ // Where the documents are being exported to.
+ string output_uri_prefix = 7;
+
+ // Which namespace IDs are being exported.
+ repeated string namespace_ids = 8;
+
+ // The timestamp that corresponds to the version of the database that is being
+ // exported. If unspecified, there are no guarantees about the consistency of
+ // the documents being exported.
+ google.protobuf.Timestamp snapshot_time = 9;
+}
+
+// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+// results from
+// [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
+message ImportDocumentsMetadata {
+ // The time this operation started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The time this operation completed. Will be unset if operation still in
+ // progress.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The state of the import operation.
+ OperationState operation_state = 3;
+
+ // The progress, in documents, of this operation.
+ Progress progress_documents = 4;
+
+ // The progress, in bytes, of this operation.
+ Progress progress_bytes = 5;
+
+ // Which collection IDs are being imported.
+ repeated string collection_ids = 6;
+
+ // The location of the documents being imported.
+ string input_uri_prefix = 7;
+
+ // Which namespace IDs are being imported.
+ repeated string namespace_ids = 8;
+}
+
+// Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+// results from
+// [FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments].
+message BulkDeleteDocumentsMetadata {
+ // The time this operation started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The time this operation completed. Will be unset if operation still in
+ // progress.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The state of the operation.
+ OperationState operation_state = 3;
+
+ // The progress, in documents, of this operation.
+ Progress progress_documents = 4;
+
+ // The progress, in bytes, of this operation.
+ Progress progress_bytes = 5;
+
+ // The IDs of the collection groups that are being deleted.
+ repeated string collection_ids = 6;
+
+ // Which namespace IDs are being deleted.
+ repeated string namespace_ids = 7;
+
+ // The timestamp that corresponds to the version of the database that is being
+ // read to get the list of documents to delete. This time can also be used as
+ // the timestamp of PITR in case of disaster recovery (subject to PITR window
+ // limit).
+ google.protobuf.Timestamp snapshot_time = 8;
+}
+
+// Returned in the [google.longrunning.Operation][google.longrunning.Operation]
+// response field.
+message ExportDocumentsResponse {
+ // Location of the output files. This can be used to begin an import
+ // into Cloud Firestore (this project or another project) after the operation
+ // completes successfully.
+ string output_uri_prefix = 1;
+}
+
+// Metadata for the [long-running operation][google.longrunning.Operation] from
+// the [RestoreDatabase][google.firestore.admin.v1.RestoreDatabase] request.
+message RestoreDatabaseMetadata {
+ // The time the restore was started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The time the restore finished, unset for ongoing restores.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The operation state of the restore.
+ OperationState operation_state = 3;
+
+ // The name of the database being restored to.
+ string database = 4 [(google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }];
+
+ // The name of the backup restoring from.
+ string backup = 5 [(google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Backup"
+ }];
+
+ // How far along the restore is as an estimated percentage of remaining time.
+ Progress progress_percentage = 8;
+}
+
+// Metadata for the [long-running operation][google.longrunning.Operation] from
+// the [CloneDatabase][google.firestore.admin.v1.CloneDatabase] request.
+message CloneDatabaseMetadata {
+ // The time the clone was started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The time the clone finished, unset for ongoing clones.
+ google.protobuf.Timestamp end_time = 2;
+
+ // The operation state of the clone.
+ OperationState operation_state = 3;
+
+ // The name of the database being cloned to.
+ string database = 4 [(google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }];
+
+ // The snapshot from which this database was cloned.
+ PitrSnapshot pitr_snapshot = 7;
+
+ // How far along the clone is as an estimated percentage of remaining time.
+ Progress progress_percentage = 6;
+}
+
+// Describes the progress of the operation.
+// Unit of work is generic and must be interpreted based on where
+// [Progress][google.firestore.admin.v1.Progress] is used.
+message Progress {
+ // The amount of work estimated.
+ int64 estimated_work = 1;
+
+ // The amount of work completed.
+ int64 completed_work = 2;
+}
+
+// Describes the state of the operation.
+enum OperationState {
+ // Unspecified.
+ OPERATION_STATE_UNSPECIFIED = 0;
+
+ // Request is being prepared for processing.
+ INITIALIZING = 1;
+
+ // Request is actively being processed.
+ PROCESSING = 2;
+
+ // Request is in the process of being cancelled after user called
+ // google.longrunning.Operations.CancelOperation on the operation.
+ CANCELLING = 3;
+
+ // Request has been processed and is in its finalization stage.
+ FINALIZING = 4;
+
+ // Request has completed successfully.
+ SUCCESSFUL = 5;
+
+ // Request has finished being processed, but encountered an error.
+ FAILED = 6;
+
+ // Request has finished being cancelled after user called
+ // google.longrunning.Operations.CancelOperation.
+ CANCELLED = 7;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/realtime_updates.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/realtime_updates.proto
new file mode 100644
index 000000000000..e06a63792ef8
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/realtime_updates.proto
@@ -0,0 +1,40 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "RealtimeUpdatesProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// The Realtime Updates mode.
+enum RealtimeUpdatesMode {
+ // The Realtime Updates feature is not specified.
+ REALTIME_UPDATES_MODE_UNSPECIFIED = 0;
+
+ // The Realtime Updates feature is enabled by default.
+ //
+ // This could potentially degrade write performance for the database.
+ REALTIME_UPDATES_MODE_ENABLED = 1;
+
+ // The Realtime Updates feature is disabled by default.
+ REALTIME_UPDATES_MODE_DISABLED = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/schedule.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/schedule.proto
new file mode 100644
index 000000000000..c6f3b3d38254
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/schedule.proto
@@ -0,0 +1,95 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+import "google/type/dayofweek.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "ScheduleProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// A backup schedule for a Cloud Firestore Database.
+//
+// This resource is owned by the database it is backing up, and is deleted along
+// with the database. The actual backups are not though.
+message BackupSchedule {
+ option (google.api.resource) = {
+ type: "firestore.googleapis.com/BackupSchedule"
+ pattern: "projects/{project}/databases/{database}/backupSchedules/{backup_schedule}"
+ };
+
+ // Output only. The unique backup schedule identifier across all locations and
+ // databases for the given project.
+ //
+ // This will be auto-assigned.
+ //
+ // Format is
+ // `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp at which this backup schedule was created and
+ // effective since.
+ //
+ // No backups will be created for this schedule before this time.
+ google.protobuf.Timestamp create_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp at which this backup schedule was most recently
+ // updated. When a backup schedule is first created, this is the same as
+ // create_time.
+ google.protobuf.Timestamp update_time = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // At what relative time in the future, compared to its creation time,
+ // the backup should be deleted, e.g. keep backups for 7 days.
+ //
+ // The maximum supported retention period is 14 weeks.
+ google.protobuf.Duration retention = 6;
+
+ // A oneof field to represent when backups will be taken.
+ oneof recurrence {
+ // For a schedule that runs daily.
+ DailyRecurrence daily_recurrence = 7;
+
+ // For a schedule that runs weekly on a specific day.
+ WeeklyRecurrence weekly_recurrence = 8;
+ }
+}
+
+// Represents a recurring schedule that runs every day.
+//
+// The time zone is UTC.
+message DailyRecurrence {}
+
+// Represents a recurring schedule that runs on a specified day of the week.
+//
+// The time zone is UTC.
+message WeeklyRecurrence {
+ // The day of week to run.
+ //
+ // DAY_OF_WEEK_UNSPECIFIED is not allowed.
+ google.type.DayOfWeek day = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/snapshot.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/snapshot.proto
new file mode 100644
index 000000000000..07a5e0bc1e96
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/snapshot.proto
@@ -0,0 +1,53 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "PitrSnapshotProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// A consistent snapshot of a database at a specific point in time.
+// A PITR (Point-in-time recovery) snapshot with previous versions of a
+// database's data is available for every minute up to the associated database's
+// data retention period. If the PITR feature is enabled, the retention period
+// is 7 days; otherwise, it is one hour.
+message PitrSnapshot {
+ // Required. The name of the database that this was a snapshot of. Format:
+ // `projects/{project}/databases/{database}`.
+ string database = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "firestore.googleapis.com/Database"
+ }
+ ];
+
+ // Output only. Public UUID of the database the snapshot was associated with.
+ bytes database_uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Snapshot time of the database.
+ google.protobuf.Timestamp snapshot_time = 3
+ [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/user_creds.proto b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/user_creds.proto
new file mode 100644
index 000000000000..e949a085aa61
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/admin/v1/user_creds.proto
@@ -0,0 +1,86 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.admin.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
+option java_multiple_files = true;
+option java_outer_classname = "UserCredsProto";
+option java_package = "com.google.firestore.admin.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
+option ruby_package = "Google::Cloud::Firestore::Admin::V1";
+
+// A Cloud Firestore User Creds.
+message UserCreds {
+ option (google.api.resource) = {
+ type: "firestore.googleapis.com/UserCreds"
+ pattern: "projects/{project}/databases/{database}/userCreds/{user_creds}"
+ plural: "userCreds"
+ singular: "userCreds"
+ };
+
+ // The state of the user creds (ENABLED or DISABLED).
+ enum State {
+ // The default value. Should not be used.
+ STATE_UNSPECIFIED = 0;
+
+ // The user creds are enabled.
+ ENABLED = 1;
+
+ // The user creds are disabled.
+ DISABLED = 2;
+ }
+
+ // Describes a Resource Identity principal.
+ message ResourceIdentity {
+ // Output only. Principal identifier string.
+ // See: https://cloud.google.com/iam/docs/principal-identifiers
+ string principal = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Identifier. The resource name of the UserCreds.
+ // Format:
+ // `projects/{project}/databases/{database}/userCreds/{user_creds}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The time the user creds were created.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the user creds were last updated.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether the user creds are enabled or disabled. Defaults to
+ // ENABLED on creation.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The plaintext server-generated password for the user creds.
+ // Only populated in responses for CreateUserCreds and ResetUserPassword.
+ string secure_password = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Identity associated with this User Creds.
+ oneof UserCredsIdentity {
+ // Resource Identity descriptor.
+ ResourceIdentity resource_identity = 6;
+ }
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/aggregation_result.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/aggregation_result.proto
new file mode 100644
index 000000000000..4eee2ddc8aa4
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/aggregation_result.proto
@@ -0,0 +1,43 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/firestore/v1/document.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "AggregationResultProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// The result of a single bucket from a Firestore aggregation query.
+//
+// The keys of `aggregate_fields` are the same for all results in an aggregation
+// query, unlike document queries which can have different fields present for
+// each result.
+message AggregationResult {
+ // The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
+ //
+ // The key is the
+ // [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
+ // assigned to the aggregation function on input and the size of this map
+ // equals the number of aggregation functions in the query.
+ map aggregate_fields = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/bloom_filter.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/bloom_filter.proto
new file mode 100644
index 000000000000..f9bbdbf08d52
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/bloom_filter.proto
@@ -0,0 +1,73 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "BloomFilterProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// A sequence of bits, encoded in a byte array.
+//
+// Each byte in the `bitmap` byte array stores 8 bits of the sequence. The only
+// exception is the last byte, which may store 8 _or fewer_ bits. The `padding`
+// defines the number of bits of the last byte to be ignored as "padding". The
+// values of these "padding" bits are unspecified and must be ignored.
+//
+// To retrieve the first bit, bit 0, calculate: `(bitmap[0] & 0x01) != 0`.
+// To retrieve the second bit, bit 1, calculate: `(bitmap[0] & 0x02) != 0`.
+// To retrieve the third bit, bit 2, calculate: `(bitmap[0] & 0x04) != 0`.
+// To retrieve the fourth bit, bit 3, calculate: `(bitmap[0] & 0x08) != 0`.
+// To retrieve bit n, calculate: `(bitmap[n / 8] & (0x01 << (n % 8))) != 0`.
+//
+// The "size" of a `BitSequence` (the number of bits it contains) is calculated
+// by this formula: `(bitmap.length * 8) - padding`.
+message BitSequence {
+ // The bytes that encode the bit sequence.
+ // May have a length of zero.
+ bytes bitmap = 1;
+
+ // The number of bits of the last byte in `bitmap` to ignore as "padding".
+ // If the length of `bitmap` is zero, then this value must be `0`.
+ // Otherwise, this value must be between 0 and 7, inclusive.
+ int32 padding = 2;
+}
+
+// A bloom filter (https://en.wikipedia.org/wiki/Bloom_filter).
+//
+// The bloom filter hashes the entries with MD5 and treats the resulting 128-bit
+// hash as 2 distinct 64-bit hash values, interpreted as unsigned integers
+// using 2's complement encoding.
+//
+// These two hash values, named `h1` and `h2`, are then used to compute the
+// `hash_count` hash values using the formula, starting at `i=0`:
+//
+// h(i) = h1 + (i * h2)
+//
+// These resulting values are then taken modulo the number of bits in the bloom
+// filter to get the bits of the bloom filter to test for the given entry.
+message BloomFilter {
+ // The bloom filter data.
+ BitSequence bits = 1;
+
+ // The number of hashes used by the algorithm.
+ int32 hash_count = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/common.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/common.proto
new file mode 100644
index 000000000000..d075d54a9a93
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/common.proto
@@ -0,0 +1,111 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "CommonProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// A set of field paths on a document.
+// Used to restrict a get or update operation on a document to a subset of its
+// fields.
+// This is different from standard field masks, as this is always scoped to a
+// [Document][google.firestore.v1.Document], and takes in account the dynamic
+// nature of [Value][google.firestore.v1.Value].
+message DocumentMask {
+ // The list of field paths in the mask. See
+ // [Document.fields][google.firestore.v1.Document.fields] for a field path
+ // syntax reference.
+ repeated string field_paths = 1;
+}
+
+// A precondition on a document, used for conditional operations.
+message Precondition {
+ // The type of precondition.
+ oneof condition_type {
+ // When set to `true`, the target document must exist.
+ // When set to `false`, the target document must not exist.
+ bool exists = 1;
+
+ // When set, the target document must exist and have been last updated at
+ // that time. Timestamp must be microsecond aligned.
+ google.protobuf.Timestamp update_time = 2;
+ }
+}
+
+// Options for creating a new transaction.
+message TransactionOptions {
+ // The type of concurrency control mode for transactions.
+ enum ConcurrencyMode {
+ // Start the transaction with the database-level default concurrency mode.
+ CONCURRENCY_MODE_UNSPECIFIED = 0;
+
+ // Use optimistic concurrency control for the new transaction.
+ OPTIMISTIC = 1;
+
+ // Use pessimistic concurrency control for the new transaction.
+ PESSIMISTIC = 2;
+ }
+
+ // Options for a transaction that can be used to read and write documents.
+ message ReadWrite {
+ // An optional transaction to retry.
+ bytes retry_transaction = 1;
+
+ // Optional. The concurrency control mode to use for this transaction.
+ //
+ // A database is able to use different concurrency modes for different
+ // transactions simultaneously.
+ //
+ // 3rd party auth requests are only allowed to create optimistic
+ // read-write transactions and must specify that here even if the
+ // database-level setting is already configured to optimistic.
+ ConcurrencyMode concurrency_mode = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Options for a transaction that can only be used to read documents.
+ message ReadOnly {
+ // The consistency mode for this transaction. If not set, defaults to strong
+ // consistency.
+ oneof consistency_selector {
+ // Reads documents at the given time.
+ //
+ // This must be a microsecond precision timestamp within the past one
+ // hour, or if Point-in-Time Recovery is enabled, can additionally be a
+ // whole minute timestamp within the past 7 days.
+ google.protobuf.Timestamp read_time = 2;
+ }
+ }
+
+ // The mode of the transaction.
+ oneof mode {
+ // The transaction can only be used for read operations.
+ ReadOnly read_only = 2;
+
+ // The transaction can be used for both read and write operations.
+ ReadWrite read_write = 3;
+ }
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/document.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/document.proto
new file mode 100644
index 000000000000..a77dbd997189
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/document.proto
@@ -0,0 +1,247 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+import "google/type/latlng.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// A Firestore document.
+//
+// Must not exceed 1 MiB - 4 bytes.
+message Document {
+ // The resource name of the document, for example
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string name = 1;
+
+ // The document's fields.
+ //
+ // The map keys represent field names.
+ //
+ // Field names matching the regular expression `__.*__` are reserved. Reserved
+ // field names are forbidden except in certain documented contexts. The field
+ // names, represented as UTF-8, must not exceed 1,500 bytes and cannot be
+ // empty.
+ //
+ // Field paths may be used in other contexts to refer to structured fields
+ // defined here. For `map_value`, the field path is represented by a
+ // dot-delimited (`.`) string of segments. Each segment is either a simple
+ // field name (defined below) or a quoted field name. For example, the
+ // structured field `"foo" : { map_value: { "x&y" : { string_value: "hello"
+ // }}}` would be represented by the field path `` foo.`x&y` ``.
+ //
+ // A simple field name contains only characters `a` to `z`, `A` to `Z`,
+ // `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
+ // `foo_bar_17`.
+ //
+ // A quoted field name starts and ends with `` ` `` and
+ // may contain any character. Some characters, including `` ` ``, must be
+ // escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
+ // `` `bak\`tik` `` represents `` bak`tik ``.
+ map fields = 2;
+
+ // Output only. The time at which the document was created.
+ //
+ // This value increases monotonically when a document is deleted then
+ // recreated. It can also be compared to values from other documents and
+ // the `read_time` of a query.
+ google.protobuf.Timestamp create_time = 3;
+
+ // Output only. The time at which the document was last changed.
+ //
+ // This value is initially set to the `create_time` then increases
+ // monotonically with each change to the document. It can also be
+ // compared to values from other documents and the `read_time` of a query.
+ google.protobuf.Timestamp update_time = 4;
+}
+
+// A message that can hold any of the supported value types.
+message Value {
+ // Must have a value set.
+ oneof value_type {
+ // A null value.
+ google.protobuf.NullValue null_value = 11;
+
+ // A boolean value.
+ bool boolean_value = 1;
+
+ // An integer value.
+ int64 integer_value = 2;
+
+ // A double value.
+ double double_value = 3;
+
+ // A timestamp value.
+ //
+ // Precise only to microseconds. When stored, any additional precision is
+ // rounded down.
+ google.protobuf.Timestamp timestamp_value = 10;
+
+ // A string value.
+ //
+ // The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
+ // Only the first 1,500 bytes of the UTF-8 representation are considered by
+ // queries.
+ string string_value = 17;
+
+ // A bytes value.
+ //
+ // Must not exceed 1 MiB - 89 bytes.
+ // Only the first 1,500 bytes are considered by queries.
+ bytes bytes_value = 18;
+
+ // A reference to a document. For example:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string reference_value = 5;
+
+ // A geo point value representing a point on the surface of Earth.
+ google.type.LatLng geo_point_value = 8;
+
+ // An array value.
+ //
+ // Cannot directly contain another array value, though can contain a
+ // map which contains another array.
+ ArrayValue array_value = 9;
+
+ // A map value.
+ MapValue map_value = 6;
+
+ // Value which references a field.
+ //
+ // This is considered relative (vs absolute) since it only refers to a field
+ // and not a field within a particular document.
+ //
+ // **Requires:**
+ //
+ // * Must follow [field reference][FieldReference.field_path] limitations.
+ //
+ // * Not allowed to be used when writing documents.
+ string field_reference_value = 19;
+
+ // Pointer to a variable defined elsewhere in a pipeline.
+ //
+ // Unlike `field_reference_value` which references a field within a
+ // document, this refers to a variable, defined in a separate namespace than
+ // the fields of a document.
+ string variable_reference_value = 22;
+
+ // A value that represents an unevaluated expression.
+ //
+ // **Requires:**
+ //
+ // * Not allowed to be used when writing documents.
+ Function function_value = 20;
+
+ // A value that represents an unevaluated pipeline.
+ //
+ // **Requires:**
+ //
+ // * Not allowed to be used when writing documents.
+ Pipeline pipeline_value = 21;
+ }
+}
+
+// An array value.
+message ArrayValue {
+ // Values in the array.
+ repeated Value values = 1;
+}
+
+// A map value.
+message MapValue {
+ // The map's fields.
+ //
+ // The map keys represent field names. Field names matching the regular
+ // expression `__.*__` are reserved. Reserved field names are forbidden except
+ // in certain documented contexts. The map keys, represented as UTF-8, must
+ // not exceed 1,500 bytes and cannot be empty.
+ map fields = 1;
+}
+
+// Represents an unevaluated scalar expression.
+//
+// For example, the expression `like(user_name, "%alice%")` is represented as:
+//
+// ```
+// name: "like"
+// args { field_reference: "user_name" }
+// args { string_value: "%alice%" }
+// ```
+message Function {
+ // Required. The name of the function to evaluate.
+ //
+ // **Requires:**
+ //
+ // * must be in snake case (lower case with underscore separator).
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Ordered list of arguments the given function expects.
+ repeated Value args = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Optional named arguments that certain functions may support.
+ map options = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A Firestore query represented as an ordered list of operations / stages.
+message Pipeline {
+ // A single operation within a pipeline.
+ //
+ // A stage is made up of a unique name, and a list of arguments. The exact
+ // number of arguments & types is dependent on the stage type.
+ //
+ // To give an example, the stage `filter(state = "MD")` would be encoded as:
+ //
+ // ```
+ // name: "filter"
+ // args {
+ // function_value {
+ // name: "eq"
+ // args { field_reference_value: "state" }
+ // args { string_value: "MD" }
+ // }
+ // }
+ // ```
+ //
+ // See public documentation for the full list.
+ message Stage {
+ // Required. The name of the stage to evaluate.
+ //
+ // **Requires:**
+ //
+ // * must be in snake case (lower case with underscore separator).
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Ordered list of arguments the given stage expects.
+ repeated Value args = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Optional named arguments that certain functions may support.
+ map options = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. Ordered list of stages to evaluate.
+ repeated Stage stages = 1 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/explain_stats.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/explain_stats.proto
new file mode 100644
index 000000000000..a05d530133b3
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/explain_stats.proto
@@ -0,0 +1,41 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/protobuf/any.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "ExplainStatsProto";
+option java_package = "com.google.firestore.v1";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// Specification of Firestore Explain Stats fields.
+
+// Pipeline explain stats.
+//
+// Depending on the explain options in the original request, this can contain
+// the optimized plan and / or execution stats.
+message ExplainStats {
+ // The format depends on the `output_format` options in the request.
+ //
+ // Currently there are two supported options: `TEXT` and `JSON`.
+ // Both supply a `google.protobuf.StringValue`.
+ google.protobuf.Any data = 1;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/firestore.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/firestore.proto
new file mode 100644
index 000000000000..a1dea5a637b3
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/firestore.proto
@@ -0,0 +1,1237 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/routing.proto";
+import "google/firestore/v1/aggregation_result.proto";
+import "google/firestore/v1/common.proto";
+import "google/firestore/v1/document.proto";
+import "google/firestore/v1/explain_stats.proto";
+import "google/firestore/v1/pipeline.proto";
+import "google/firestore/v1/query.proto";
+import "google/firestore/v1/query_profile.proto";
+import "google/firestore/v1/write.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "FirestoreProto";
+option java_package = "com.google.firestore.v1";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// Specification of the Firestore API.
+
+// The Cloud Firestore service.
+//
+// Cloud Firestore is a fast, fully managed, serverless, cloud-native NoSQL
+// document database that simplifies storing, syncing, and querying data for
+// your mobile, web, and IoT apps at global scale. Its client libraries provide
+// live synchronization and offline support, while its security features and
+// integrations with Firebase and Google Cloud Platform accelerate building
+// truly serverless apps.
+service Firestore {
+ option (google.api.default_host) = "firestore.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/datastore";
+
+ // Gets a single document.
+ rpc GetDocument(GetDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/databases/*/documents/*/**}"
+ };
+ }
+
+ // Lists documents.
+ rpc ListDocuments(ListDocumentsRequest) returns (ListDocumentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/databases/*/documents/*/**}/{collection_id}"
+ additional_bindings {
+ get: "/v1/{parent=projects/*/databases/*/documents}/{collection_id}"
+ }
+ };
+ }
+
+ // Updates or inserts a document.
+ rpc UpdateDocument(UpdateDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ patch: "/v1/{document.name=projects/*/databases/*/documents/*/**}"
+ body: "document"
+ };
+ option (google.api.method_signature) = "document,update_mask";
+ }
+
+ // Deletes a document.
+ rpc DeleteDocument(DeleteDocumentRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/databases/*/documents/*/**}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets multiple documents.
+ //
+ // Documents returned by this method are not guaranteed to be returned in the
+ // same order that they were requested.
+ rpc BatchGetDocuments(BatchGetDocumentsRequest)
+ returns (stream BatchGetDocumentsResponse) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:batchGet"
+ body: "*"
+ };
+ }
+
+ // Starts a new transaction.
+ rpc BeginTransaction(BeginTransactionRequest)
+ returns (BeginTransactionResponse) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:beginTransaction"
+ body: "*"
+ };
+ option (google.api.method_signature) = "database";
+ }
+
+ // Commits a transaction, while optionally updating documents.
+ rpc Commit(CommitRequest) returns (CommitResponse) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:commit"
+ body: "*"
+ };
+ option (google.api.method_signature) = "database,writes";
+ }
+
+ // Rolls back a transaction.
+ rpc Rollback(RollbackRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:rollback"
+ body: "*"
+ };
+ option (google.api.method_signature) = "database,transaction";
+ }
+
+ // Runs a query.
+ rpc RunQuery(RunQueryRequest) returns (stream RunQueryResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*/documents}:runQuery"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{parent=projects/*/databases/*/documents/*/**}:runQuery"
+ body: "*"
+ }
+ };
+ }
+
+ // Executes a pipeline query.
+ rpc ExecutePipeline(ExecutePipelineRequest)
+ returns (stream ExecutePipelineResponse) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:executePipeline"
+ body: "*"
+ };
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "database"
+ path_template: "projects/{project_id=*}/**"
+ }
+ routing_parameters {
+ field: "database"
+ path_template: "projects/*/databases/{database_id=*}/**"
+ }
+ };
+ }
+
+ // Runs an aggregation query.
+ //
+ // Rather than producing [Document][google.firestore.v1.Document] results like
+ // [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery], this API
+ // allows running an aggregation to produce a series of
+ // [AggregationResult][google.firestore.v1.AggregationResult] server-side.
+ //
+ // High-Level Example:
+ //
+ // ```
+ // -- Return the number of documents in table given a filter.
+ // SELECT COUNT(*) FROM ( SELECT * FROM k where a = true );
+ // ```
+ rpc RunAggregationQuery(RunAggregationQueryRequest)
+ returns (stream RunAggregationQueryResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*/documents}:runAggregationQuery"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{parent=projects/*/databases/*/documents/*/**}:runAggregationQuery"
+ body: "*"
+ }
+ };
+ }
+
+ // Partitions a query by returning partition cursors that can be used to run
+ // the query in parallel. The returned partition cursors are split points that
+ // can be used by RunQuery as starting/end points for the query results.
+ rpc PartitionQuery(PartitionQueryRequest) returns (PartitionQueryResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*/documents}:partitionQuery"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{parent=projects/*/databases/*/documents/*/**}:partitionQuery"
+ body: "*"
+ }
+ };
+ }
+
+ // Streams batches of document updates and deletes, in order. This method is
+ // only available via gRPC or WebChannel (not REST).
+ rpc Write(stream WriteRequest) returns (stream WriteResponse) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:write"
+ body: "*"
+ };
+ }
+
+ // Listens to changes. This method is only available via gRPC or WebChannel
+ // (not REST).
+ rpc Listen(stream ListenRequest) returns (stream ListenResponse) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:listen"
+ body: "*"
+ };
+ }
+
+ // Lists all the collection IDs underneath a document.
+ rpc ListCollectionIds(ListCollectionIdsRequest)
+ returns (ListCollectionIdsResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*/documents}:listCollectionIds"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{parent=projects/*/databases/*/documents/*/**}:listCollectionIds"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Applies a batch of write operations.
+ //
+ // The BatchWrite method does not apply the write operations atomically
+ // and can apply them out of order. Method does not allow more than one write
+ // per document. Each write succeeds or fails independently. See the
+ // [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
+ // success status of each write.
+ //
+ // If you require an atomically applied set of writes, use
+ // [Commit][google.firestore.v1.Firestore.Commit] instead.
+ rpc BatchWrite(BatchWriteRequest) returns (BatchWriteResponse) {
+ option (google.api.http) = {
+ post: "/v1/{database=projects/*/databases/*}/documents:batchWrite"
+ body: "*"
+ };
+ }
+
+ // Creates a new document.
+ rpc CreateDocument(CreateDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databases/*/documents/**}/{collection_id}"
+ body: "document"
+ };
+ }
+}
+
+// The request for
+// [Firestore.GetDocument][google.firestore.v1.Firestore.GetDocument].
+message GetDocumentRequest {
+ // Required. The resource name of the Document to get. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // 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.
+ DocumentMask mask = 2;
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads the document in a transaction.
+ bytes transaction = 3;
+
+ // Reads the version of the document at the given time.
+ //
+ // This must be a microsecond precision timestamp within the past one hour,
+ // or if Point-in-Time Recovery is enabled, can additionally be a whole
+ // minute timestamp within the past 7 days.
+ google.protobuf.Timestamp read_time = 5;
+ }
+}
+
+// The request for
+// [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
+message ListDocumentsRequest {
+ // Required. The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ //
+ // For example:
+ // `projects/my-project/databases/my-database/documents` or
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The collection ID, relative to `parent`, to list.
+ //
+ // For example: `chatrooms` or `messages`.
+ //
+ // This is optional, and when not provided, Firestore will list documents
+ // from all collections under the provided `parent`.
+ string collection_id = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of documents to return in a single response.
+ //
+ // Firestore may return fewer than this value.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListDocuments` response.
+ //
+ // Provide this to retrieve the subsequent page. When paginating, all other
+ // parameters (with the exception of `page_size`) must match the values set
+ // in the request that generated the page token.
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The optional ordering of the documents to return.
+ //
+ // For example: `priority desc, __name__ desc`.
+ //
+ // This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
+ // used in Firestore queries but in a string representation. When absent,
+ // documents are ordered based on `__name__ ASC`.
+ string order_by = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The fields to return. If not set, returns all fields.
+ //
+ // If a document has a field that is not present in this mask, that field
+ // will not be returned in the response.
+ DocumentMask mask = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Perform the read as part of an already active transaction.
+ bytes transaction = 8;
+
+ // Perform the read at the provided 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.
+ google.protobuf.Timestamp read_time = 10;
+ }
+
+ // 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 but will not have fields,
+ // [`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`.
+ bool show_missing = 12;
+}
+
+// The response for
+// [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
+message ListDocumentsResponse {
+ // The Documents found.
+ repeated Document documents = 1;
+
+ // A token to retrieve the next page of documents.
+ //
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// The request for
+// [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].
+message CreateDocumentRequest {
+ // Required. The parent resource. For example:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The collection ID, relative to `parent`, to list. For example:
+ // `chatrooms`.
+ string collection_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The client-assigned document ID to use for this document.
+ //
+ // Optional. If not specified, an ID will be assigned by the service.
+ string document_id = 3;
+
+ // Required. The document to create. `name` must not be set.
+ Document document = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // 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.
+ DocumentMask mask = 5;
+}
+
+// The request for
+// [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].
+message UpdateDocumentRequest {
+ // Required. The updated document.
+ // Creates the document if it does not already exist.
+ Document document = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The fields to update.
+ // None of the field paths in the mask may contain a reserved name.
+ //
+ // If the document exists on the server and has fields not referenced in the
+ // mask, they are left unchanged.
+ // Fields referenced in the mask, but not present in the input document, are
+ // deleted from the document on the server.
+ DocumentMask update_mask = 2;
+
+ // 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.
+ DocumentMask mask = 3;
+
+ // An optional precondition on the document.
+ // The request will fail if this is set and not met by the target document.
+ Precondition current_document = 4;
+}
+
+// The request for
+// [Firestore.DeleteDocument][google.firestore.v1.Firestore.DeleteDocument].
+message DeleteDocumentRequest {
+ // Required. The resource name of the Document to delete. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // An optional precondition on the document.
+ // The request will fail if this is set and not met by the target document.
+ Precondition current_document = 2;
+}
+
+// The request for
+// [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
+message BatchGetDocumentsRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The names of the documents to retrieve. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // The request will fail if any of the document is not a child resource of the
+ // given `database`. Duplicate names will be elided.
+ repeated string documents = 2;
+
+ // The fields to return. If not set, returns all fields.
+ //
+ // If a document has a field that is not present in this mask, that field will
+ // not be returned in the response.
+ DocumentMask mask = 3;
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads documents in a transaction.
+ bytes transaction = 4;
+
+ // Starts a new transaction and reads the documents.
+ // Defaults to a read-only transaction.
+ // The new transaction ID will be returned as the first response in the
+ // stream.
+ TransactionOptions new_transaction = 5;
+
+ // Reads documents as they were at the given time.
+ //
+ // This must be a microsecond precision timestamp within the past one hour,
+ // or if Point-in-Time Recovery is enabled, can additionally be a whole
+ // minute timestamp within the past 7 days.
+ google.protobuf.Timestamp read_time = 7;
+ }
+}
+
+// The streamed response for
+// [Firestore.BatchGetDocuments][google.firestore.v1.Firestore.BatchGetDocuments].
+message BatchGetDocumentsResponse {
+ // A single result.
+ // This can be empty if the server is just returning a transaction.
+ oneof result {
+ // A document that was requested.
+ Document found = 1;
+
+ // A document name that was requested but does not exist. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string missing = 2;
+ }
+
+ // The transaction that was started as part of this request.
+ // Will only be set in the first response, and only if
+ // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
+ // was set in the request.
+ bytes transaction = 3;
+
+ // The time at which the document was read.
+ // This may be monotically increasing, in this case the previous documents in
+ // the result stream are guaranteed not to have changed between their
+ // read_time and this one.
+ google.protobuf.Timestamp read_time = 4;
+}
+
+// The request for
+// [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
+message BeginTransactionRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The options for the transaction.
+ // Defaults to a read-write transaction.
+ TransactionOptions options = 2;
+}
+
+// The response for
+// [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].
+message BeginTransactionResponse {
+ // The transaction that was started.
+ bytes transaction = 1;
+}
+
+// The request for [Firestore.Commit][google.firestore.v1.Firestore.Commit].
+message CommitRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The writes to apply.
+ //
+ // Always executed atomically and in order.
+ repeated Write writes = 2;
+
+ // If set, applies all writes in this transaction, and commits it.
+ bytes transaction = 3;
+}
+
+// The response for [Firestore.Commit][google.firestore.v1.Firestore.Commit].
+message CommitResponse {
+ // The result of applying the writes.
+ //
+ // This i-th write result corresponds to the i-th write in the
+ // request.
+ repeated WriteResult write_results = 1;
+
+ // The time at which the commit occurred. Any read with an equal or greater
+ // `read_time` is guaranteed to see the effects of the commit.
+ google.protobuf.Timestamp commit_time = 2;
+}
+
+// The request for [Firestore.Rollback][google.firestore.v1.Firestore.Rollback].
+message RollbackRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The transaction to roll back.
+ bytes transaction = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].
+message RunQueryRequest {
+ // Required. The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents` or
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The query to run.
+ oneof query_type {
+ // A structured query.
+ StructuredQuery structured_query = 2;
+ }
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Run the query within an already active transaction.
+ //
+ // The value here is the opaque transaction ID to execute the query in.
+ bytes transaction = 5;
+
+ // Starts a new transaction and reads the documents.
+ // Defaults to a read-only transaction.
+ // The new transaction ID will be returned as the first response in the
+ // stream.
+ TransactionOptions new_transaction = 6;
+
+ // Reads documents as they were at the given time.
+ //
+ // This must be a microsecond precision timestamp within the past one hour,
+ // or if Point-in-Time Recovery is enabled, can additionally be a whole
+ // minute timestamp within the past 7 days.
+ google.protobuf.Timestamp read_time = 7;
+ }
+
+ // Optional. Explain options for the query. If set, additional query
+ // statistics will be returned. If not, only query results will be returned.
+ ExplainOptions explain_options = 10 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The response for
+// [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].
+message RunQueryResponse {
+ // The transaction that was started as part of this request.
+ // Can only be set in the first response, and only if
+ // [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
+ // was set in the request. If set, no other fields will be set in this
+ // response.
+ bytes transaction = 2;
+
+ // A query result, not set when reporting partial progress.
+ Document document = 1;
+
+ // The time at which the document was read. This may be monotonically
+ // increasing; in this case, the previous documents in the result stream are
+ // guaranteed not to have changed between their `read_time` and this one.
+ //
+ // If the query returns no results, a response with `read_time` and no
+ // `document` will be sent, and this represents the time at which the query
+ // was run.
+ google.protobuf.Timestamp read_time = 3;
+
+ // The number of results that have been skipped due to an offset between
+ // the last response and the current response.
+ int32 skipped_results = 4;
+
+ // The continuation mode for the query. If present, it indicates the current
+ // query response stream has finished. This can be set with or without a
+ // `document` present, but when set, no more results are returned.
+ oneof continuation_selector {
+ // If present, Firestore has completely finished the request and no more
+ // documents will be returned.
+ bool done = 6;
+ }
+
+ // Query explain metrics. This is only present when the
+ // [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options]
+ // is provided, and it is sent only once with the last response in the stream.
+ ExplainMetrics explain_metrics = 11;
+}
+
+// The request for
+// [Firestore.ExecutePipeline][google.firestore.v1.Firestore.ExecutePipeline].
+message ExecutePipelineRequest {
+ // Required. Database identifier, in the form
+ // `projects/{project}/databases/{database}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ oneof pipeline_type {
+ // A pipelined operation.
+ StructuredPipeline structured_pipeline = 2;
+ }
+
+ // Optional consistency arguments, defaults to strong consistency.
+ oneof consistency_selector {
+ // Run the query within an already active transaction.
+ //
+ // The value here is the opaque transaction ID to execute the query in.
+ bytes transaction = 5;
+
+ // Execute the pipeline in a new transaction.
+ //
+ // The identifier of the newly created transaction will be returned in the
+ // first response on the stream. This defaults to a read-only transaction.
+ TransactionOptions new_transaction = 6;
+
+ // Execute the pipeline in a snapshot transaction at the given time.
+ //
+ // This must be a microsecond precision timestamp within the past one hour,
+ // or if Point-in-Time Recovery is enabled, can additionally be a whole
+ // minute timestamp within the past 7 days.
+ google.protobuf.Timestamp read_time = 7;
+ }
+
+ // Optional. Automatically commits the transaction after the pipeline has been
+ // executed. Only permitted in combination with `transaction` or
+ // `new_transaction`.
+ bool auto_commit_transaction = 9 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The response for [Firestore.Execute][].
+message ExecutePipelineResponse {
+ // Newly created transaction identifier.
+ //
+ // This field is only specified as part of the first response from the server,
+ // alongside the `results` field when the original request specified
+ // [ExecuteRequest.new_transaction][].
+ bytes transaction = 1;
+
+ // An ordered batch of results returned executing a pipeline.
+ //
+ // The batch size is variable, and can even be zero for when only a partial
+ // progress message is returned.
+ //
+ // The fields present in the returned documents are only those that were
+ // explicitly requested in the pipeline, this includes those like
+ // [`__name__`][google.firestore.v1.Document.name] and
+ // [`__update_time__`][google.firestore.v1.Document.update_time]. This is
+ // explicitly a divergence from `Firestore.RunQuery` / `Firestore.GetDocument`
+ // RPCs which always return such fields even when they are not specified in
+ // the [`mask`][google.firestore.v1.DocumentMask].
+ repeated Document results = 2;
+
+ // The time at which the results are valid.
+ //
+ // This is a (not strictly) monotonically increasing value across multiple
+ // responses in the same stream. The API guarantees that all previously
+ // returned results are still valid at the latest `execution_time`. This
+ // allows the API consumer to treat the query if it ran at the latest
+ // `execution_time` returned.
+ //
+ // If the query returns no results, a response with `execution_time` and no
+ // `results` will be sent, and this represents the time at which the operation
+ // was run.
+ google.protobuf.Timestamp execution_time = 3;
+
+ // Query explain stats.
+ //
+ // This is present on the **last** response if the request configured explain
+ // to run in 'analyze' or 'explain' mode in the pipeline options. If the query
+ // does not return any results, a response with `explain_stats` and no
+ // `results` will still be sent.
+ ExplainStats explain_stats = 4;
+}
+
+// The request for
+// [Firestore.RunAggregationQuery][google.firestore.v1.Firestore.RunAggregationQuery].
+message RunAggregationQueryRequest {
+ // Required. The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents` or
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The query to run.
+ oneof query_type {
+ // An aggregation query.
+ StructuredAggregationQuery structured_aggregation_query = 2;
+ }
+
+ // The consistency mode for the query, defaults to strong consistency.
+ oneof consistency_selector {
+ // Run the aggregation within an already active transaction.
+ //
+ // The value here is the opaque transaction ID to execute the query in.
+ bytes transaction = 4;
+
+ // Starts a new transaction as part of the query, defaulting to read-only.
+ //
+ // The new transaction ID will be returned as the first response in the
+ // stream.
+ TransactionOptions new_transaction = 5;
+
+ // Executes the query at the given timestamp.
+ //
+ // 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.
+ google.protobuf.Timestamp read_time = 6;
+ }
+
+ // Optional. Explain options for the query. If set, additional query
+ // statistics will be returned. If not, only query results will be returned.
+ ExplainOptions explain_options = 8 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The response for
+// [Firestore.RunAggregationQuery][google.firestore.v1.Firestore.RunAggregationQuery].
+message RunAggregationQueryResponse {
+ // A single aggregation result.
+ //
+ // Not present when reporting partial progress.
+ AggregationResult result = 1;
+
+ // The transaction that was started as part of this request.
+ //
+ // Only present on the first response when the request requested to start
+ // a new transaction.
+ bytes transaction = 2;
+
+ // The time at which the aggregate result was computed. This is always
+ // monotonically increasing; in this case, the previous AggregationResult in
+ // the result stream are guaranteed not to have changed between their
+ // `read_time` and this one.
+ //
+ // If the query returns no results, a response with `read_time` and no
+ // `result` will be sent, and this represents the time at which the query
+ // was run.
+ google.protobuf.Timestamp read_time = 3;
+
+ // Query explain metrics. This is only present when the
+ // [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options]
+ // is provided, and it is sent only once with the last response in the stream.
+ ExplainMetrics explain_metrics = 10;
+}
+
+// The request for
+// [Firestore.PartitionQuery][google.firestore.v1.Firestore.PartitionQuery].
+message PartitionQueryRequest {
+ // Required. The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents`.
+ // Document resource names are not supported; only database resource names
+ // can be specified.
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The query to partition.
+ oneof query_type {
+ // A structured query.
+ // Query must specify collection with all descendants and be ordered by name
+ // ascending. Other filters, order bys, limits, offsets, and start/end
+ // cursors are not supported.
+ StructuredQuery structured_query = 2;
+ }
+
+ // The desired maximum number of partition points.
+ // The partitions may be returned across multiple pages of results.
+ // The number must be positive. The actual number of partitions
+ // returned may be fewer.
+ //
+ // For example, this may be set to one fewer than the number of parallel
+ // queries to be run, or in running a data pipeline job, one fewer than the
+ // number of workers or compute instances available.
+ int64 partition_count = 3;
+
+ // The `next_page_token` value returned from a previous call to
+ // PartitionQuery that may be used to get an additional set of results.
+ // There are no ordering guarantees between sets of results. Thus, using
+ // multiple sets of results will require merging the different result sets.
+ //
+ // For example, two subsequent calls using a page_token may return:
+ //
+ // * cursor B, cursor M, cursor Q
+ // * cursor A, cursor U, cursor W
+ //
+ // To obtain a complete result set ordered with respect to the results of the
+ // query supplied to PartitionQuery, the results sets should be merged:
+ // cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
+ string page_token = 4;
+
+ // The maximum number of partitions to return in this call, subject to
+ // `partition_count`.
+ //
+ // For example, if `partition_count` = 10 and `page_size` = 8, the first call
+ // to PartitionQuery will return up to 8 partitions and a `next_page_token`
+ // if more results exist. A second call to PartitionQuery will return up to
+ // 2 partitions, to complete the total of 10 specified in `partition_count`.
+ int32 page_size = 5;
+
+ // The consistency mode for this request.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads documents as they were at the given time.
+ //
+ // This must be a microsecond precision timestamp within the past one hour,
+ // or if Point-in-Time Recovery is enabled, can additionally be a whole
+ // minute timestamp within the past 7 days.
+ google.protobuf.Timestamp read_time = 6;
+ }
+}
+
+// The response for
+// [Firestore.PartitionQuery][google.firestore.v1.Firestore.PartitionQuery].
+message PartitionQueryResponse {
+ // Partition results.
+ // Each partition is a split point that can be used by RunQuery as a starting
+ // or end point for the query results. The RunQuery requests must be made with
+ // the same query supplied to this PartitionQuery request. The partition
+ // cursors will be ordered according to same ordering as the results of the
+ // query supplied to PartitionQuery.
+ //
+ // For example, if a PartitionQuery request returns partition cursors A and B,
+ // running the following three queries will return the entire result set of
+ // the original query:
+ //
+ // * query, end_at A
+ // * query, start_at A, end_at B
+ // * query, start_at B
+ //
+ // An empty result may indicate that the query has too few results to be
+ // partitioned, or that the query is not yet supported for partitioning.
+ repeated Cursor partitions = 1;
+
+ // A page token that may be used to request an additional set of results, up
+ // to the number specified by `partition_count` in the PartitionQuery request.
+ // If blank, there are no more results.
+ string next_page_token = 2;
+}
+
+// The request for [Firestore.Write][google.firestore.v1.Firestore.Write].
+//
+// The first request creates a stream, or resumes an existing one from a token.
+//
+// When creating a new stream, the server replies with a response containing
+// only an ID and a token, to use in the next request.
+//
+// When resuming a stream, the server first streams any responses later than the
+// given token, then a response containing only an up-to-date token, to use in
+// the next request.
+message WriteRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ // This is only required in the first message.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // 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.
+ string stream_id = 2;
+
+ // The writes to apply.
+ //
+ // Always executed atomically and in order.
+ // This must be empty on the first request.
+ // This may be empty on the last request.
+ // This must not be empty on all other requests.
+ repeated Write writes = 3;
+
+ // A stream token that was previously sent by the server.
+ //
+ // The client should set this field to the token from the most recent
+ // [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
+ // acknowledges that the client has received responses up to this token. After
+ // sending this token, earlier tokens may not be used anymore.
+ //
+ // The server may close the stream if there are too many unacknowledged
+ // responses.
+ //
+ // Leave this field unset when creating a new stream. To resume a stream at
+ // a specific point, set this field and the `stream_id` field.
+ //
+ // Leave this field unset when creating a new stream.
+ bytes stream_token = 4;
+
+ // Labels associated with this write request.
+ map labels = 5;
+}
+
+// The response for [Firestore.Write][google.firestore.v1.Firestore.Write].
+message WriteResponse {
+ // The ID of the stream.
+ // Only set on the first message, when a new stream was created.
+ string stream_id = 1;
+
+ // A token that represents the position of this response in the stream.
+ // This can be used by a client to resume the stream at this point.
+ //
+ // This field is always set.
+ bytes stream_token = 2;
+
+ // The result of applying the writes.
+ //
+ // This i-th write result corresponds to the i-th write in the
+ // request.
+ repeated WriteResult write_results = 3;
+
+ // The time at which the commit occurred. Any read with an equal or greater
+ // `read_time` is guaranteed to see the effects of the write.
+ google.protobuf.Timestamp commit_time = 4;
+}
+
+// A request for [Firestore.Listen][google.firestore.v1.Firestore.Listen]
+message ListenRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The supported target changes.
+ oneof target_change {
+ // A target to add to this stream.
+ Target add_target = 2;
+
+ // The ID of a target to remove from this stream.
+ int32 remove_target = 3;
+ }
+
+ // Labels associated with this target change.
+ map labels = 4;
+}
+
+// The response for [Firestore.Listen][google.firestore.v1.Firestore.Listen].
+message ListenResponse {
+ // The supported responses.
+ oneof response_type {
+ // Targets have changed.
+ TargetChange target_change = 2;
+
+ // A [Document][google.firestore.v1.Document] has changed.
+ DocumentChange document_change = 3;
+
+ // A [Document][google.firestore.v1.Document] has been deleted.
+ DocumentDelete document_delete = 4;
+
+ // A [Document][google.firestore.v1.Document] has been removed from a target
+ // (because it is no longer relevant to that target).
+ DocumentRemove document_remove = 6;
+
+ // A filter to apply to the set of documents previously returned for the
+ // given target.
+ //
+ // Returned when documents may have been removed from the given target, but
+ // the exact documents are unknown.
+ ExistenceFilter filter = 5;
+ }
+}
+
+// A specification of a set of documents to listen to.
+message Target {
+ // A target specified by a set of documents names.
+ message DocumentsTarget {
+ // The names of the documents to retrieve. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // The request will fail if any of the document is not a child resource of
+ // the given `database`. Duplicate names will be elided.
+ repeated string documents = 2;
+ }
+
+ // A target specified by a query.
+ message QueryTarget {
+ // The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents` or
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1;
+
+ // The query to run.
+ oneof query_type {
+ // A structured query.
+ StructuredQuery structured_query = 2;
+ }
+ }
+
+ // The type of target to listen to.
+ oneof target_type {
+ // A target specified by a query.
+ QueryTarget query = 2;
+
+ // A target specified by a set of document names.
+ DocumentsTarget documents = 3;
+ }
+
+ // When to start listening.
+ //
+ // If specified, only the matching Documents that have been updated AFTER the
+ // `resume_token` or `read_time` will be returned. Otherwise, all matching
+ // Documents are returned before any subsequent changes.
+ oneof resume_type {
+ // A resume token from a prior
+ // [TargetChange][google.firestore.v1.TargetChange] for an identical target.
+ //
+ // Using a resume token with a different target is unsupported and may fail.
+ bytes resume_token = 4;
+
+ // Start listening after a specific `read_time`.
+ //
+ // The client must know the state of matching documents at this time.
+ google.protobuf.Timestamp read_time = 11;
+ }
+
+ // The target ID that identifies the target on the stream. Must be a positive
+ // number and non-zero.
+ //
+ // If `target_id` is 0 (or unspecified), the server will assign an ID for this
+ // target and return that in a `TargetChange::ADD` event. Once a target with
+ // `target_id=0` is added, all subsequent targets must also have
+ // `target_id=0`. If an `AddTarget` request with `target_id != 0` is
+ // sent to the server after a target with `target_id=0` is added, the server
+ // will immediately send a response with a `TargetChange::Remove` event.
+ //
+ // Note that if the client sends multiple `AddTarget` requests
+ // without an ID, the order of IDs returned in `TargetChange.target_ids` are
+ // undefined. Therefore, clients should provide a target ID instead of relying
+ // on the server to assign one.
+ //
+ // If `target_id` is non-zero, there must not be an existing active target on
+ // this stream with the same ID.
+ int32 target_id = 5;
+
+ // If the target should be removed once it is current and consistent.
+ bool once = 6;
+
+ // The number of documents that last matched the query at the resume token or
+ // read time.
+ //
+ // This value is only relevant when a `resume_type` is provided. This value
+ // being present and greater than zero signals that the client wants
+ // `ExistenceFilter.unchanged_names` to be included in the response.
+ google.protobuf.Int32Value expected_count = 12;
+}
+
+// Targets being watched have changed.
+message TargetChange {
+ // The type of change.
+ enum TargetChangeType {
+ // No change has occurred. Used only to send an updated `resume_token`.
+ NO_CHANGE = 0;
+
+ // The targets have been added.
+ ADD = 1;
+
+ // The targets have been removed.
+ REMOVE = 2;
+
+ // The targets reflect all changes committed before the targets were added
+ // to the stream.
+ //
+ // This will be sent after or with a `read_time` that is greater than or
+ // equal to the time at which the targets were added.
+ //
+ // Listeners can wait for this change if read-after-write semantics
+ // are desired.
+ CURRENT = 3;
+
+ // The targets have been reset, and a new initial state for the targets
+ // will be returned in subsequent changes.
+ //
+ // After the initial state is complete, `CURRENT` will be returned even
+ // if the target was previously indicated to be `CURRENT`.
+ RESET = 4;
+ }
+
+ // The type of change that occurred.
+ TargetChangeType target_change_type = 1;
+
+ // The target IDs of targets that have changed.
+ //
+ // If empty, the change applies to all targets.
+ //
+ // The order of the target IDs is not defined.
+ repeated int32 target_ids = 2;
+
+ // The error that resulted in this change, if applicable.
+ google.rpc.Status cause = 3;
+
+ // A token that can be used to resume the stream for the given `target_ids`,
+ // or all targets if `target_ids` is empty.
+ //
+ // Not set on every target change.
+ bytes resume_token = 4;
+
+ // The consistent `read_time` for the given `target_ids` (omitted when the
+ // target_ids are not at a consistent snapshot).
+ //
+ // The stream is guaranteed to send a `read_time` with `target_ids` empty
+ // whenever the entire stream reaches a new consistent snapshot. ADD,
+ // CURRENT, and RESET messages are guaranteed to (eventually) result in a
+ // new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+ //
+ // For a given stream, `read_time` is guaranteed to be monotonically
+ // increasing.
+ google.protobuf.Timestamp read_time = 6;
+}
+
+// The request for
+// [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
+message ListCollectionIdsRequest {
+ // Required. The parent document. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ //
+ // Use `projects/{project_id}/databases/{database_id}/documents` to list
+ // top-level collections.
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum number of results to return.
+ int32 page_size = 2;
+
+ // A page token. Must be a value from
+ // [ListCollectionIdsResponse][google.firestore.v1.ListCollectionIdsResponse].
+ string page_token = 3;
+
+ // The consistency mode for this request.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads documents as they were at the given time.
+ //
+ // This must be a microsecond precision timestamp within the past one hour,
+ // or if Point-in-Time Recovery is enabled, can additionally be a whole
+ // minute timestamp within the past 7 days.
+ google.protobuf.Timestamp read_time = 4;
+ }
+}
+
+// The response from
+// [Firestore.ListCollectionIds][google.firestore.v1.Firestore.ListCollectionIds].
+message ListCollectionIdsResponse {
+ // The collection ids.
+ repeated string collection_ids = 1;
+
+ // A page token that may be used to continue the list.
+ string next_page_token = 2;
+}
+
+// The request for
+// [Firestore.BatchWrite][google.firestore.v1.Firestore.BatchWrite].
+message BatchWriteRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The writes to apply.
+ //
+ // Method does not apply writes atomically and does not guarantee ordering.
+ // Each write succeeds or fails independently. You cannot write to the same
+ // document more than once per request.
+ repeated Write writes = 2;
+
+ // Labels associated with this batch write.
+ map labels = 3;
+}
+
+// The response from
+// [Firestore.BatchWrite][google.firestore.v1.Firestore.BatchWrite].
+message BatchWriteResponse {
+ // The result of applying the writes.
+ //
+ // This i-th write result corresponds to the i-th write in the
+ // request.
+ repeated WriteResult write_results = 1;
+
+ // The status of applying the writes.
+ //
+ // This i-th write status corresponds to the i-th write in the
+ // request.
+ repeated google.rpc.Status status = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/pipeline.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/pipeline.proto
new file mode 100644
index 000000000000..509ecd2730e6
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/pipeline.proto
@@ -0,0 +1,43 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/api/field_behavior.proto";
+import "google/firestore/v1/document.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "PipelineProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// A Firestore query represented as an ordered list of operations / stages.
+//
+// This is considered the top-level function which plans and executes a query.
+// It is logically equivalent to `query(stages, options)`, but prevents the
+// client from having to build a function wrapper.
+message StructuredPipeline {
+ // Required. The pipeline query to execute.
+ Pipeline pipeline = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Optional query-level arguments.
+ //
+ map options = 2 [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/query.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/query.proto
new file mode 100644
index 000000000000..8ff0c66b4b03
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/query.proto
@@ -0,0 +1,600 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/api/field_behavior.proto";
+import "google/firestore/v1/document.proto";
+import "google/protobuf/wrappers.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "QueryProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// A Firestore query.
+//
+// The query stages are executed in the following order:
+// 1. from
+// 2. where
+// 3. select
+// 4. order_by + start_at + end_at
+// 5. offset
+// 6. limit
+// 7. find_nearest
+message StructuredQuery {
+ // A selection of a collection, such as `messages as m1`.
+ message CollectionSelector {
+ // The collection ID.
+ // When set, selects only collections with this ID.
+ string collection_id = 2;
+
+ // When false, selects only collections that are immediate children of
+ // the `parent` specified in the containing `RunQueryRequest`.
+ // When true, selects all descendant collections.
+ bool all_descendants = 3;
+ }
+
+ // A filter.
+ message Filter {
+ // The type of filter.
+ oneof filter_type {
+ // A composite filter.
+ CompositeFilter composite_filter = 1;
+
+ // A filter on a document field.
+ FieldFilter field_filter = 2;
+
+ // A filter that takes exactly one argument.
+ UnaryFilter unary_filter = 3;
+ }
+ }
+
+ // A filter that merges multiple other filters using the given operator.
+ message CompositeFilter {
+ // A composite filter operator.
+ enum Operator {
+ // Unspecified. This value must not be used.
+ OPERATOR_UNSPECIFIED = 0;
+
+ // Documents are required to satisfy all of the combined filters.
+ AND = 1;
+
+ // Documents are required to satisfy at least one of the combined filters.
+ OR = 2;
+ }
+
+ // The operator for combining multiple filters.
+ Operator op = 1;
+
+ // The list of filters to combine.
+ //
+ // Requires:
+ //
+ // * At least one filter is present.
+ repeated Filter filters = 2;
+ }
+
+ // A filter on a specific field.
+ message FieldFilter {
+ // A field filter operator.
+ enum Operator {
+ // Unspecified. This value must not be used.
+ OPERATOR_UNSPECIFIED = 0;
+
+ // The given `field` is less than the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ LESS_THAN = 1;
+
+ // The given `field` is less than or equal to the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ LESS_THAN_OR_EQUAL = 2;
+
+ // The given `field` is greater than the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ GREATER_THAN = 3;
+
+ // The given `field` is greater than or equal to the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ GREATER_THAN_OR_EQUAL = 4;
+
+ // The given `field` is equal to the given `value`.
+ EQUAL = 5;
+
+ // The given `field` is not equal to the given `value`.
+ //
+ // Requires:
+ //
+ // * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ NOT_EQUAL = 6;
+
+ // The given `field` is an array that contains the given `value`.
+ ARRAY_CONTAINS = 7;
+
+ // The given `field` is equal to at least one value in the given array.
+ //
+ // Requires:
+ //
+ // * That `value` is a non-empty `ArrayValue`, subject to disjunction
+ // limits.
+ // * No `NOT_IN` filters in the same query.
+ IN = 8;
+
+ // The given `field` is an array that contains any of the values in the
+ // given array.
+ //
+ // Requires:
+ //
+ // * That `value` is a non-empty `ArrayValue`, subject to disjunction
+ // limits.
+ // * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction.
+ // * No `NOT_IN` filters in the same query.
+ ARRAY_CONTAINS_ANY = 9;
+
+ // The value of the `field` is not in the given array.
+ //
+ // Requires:
+ //
+ // * That `value` is a non-empty `ArrayValue` with at most 10 values.
+ // * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
+ // `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ NOT_IN = 10;
+ }
+
+ // The field to filter by.
+ FieldReference field = 1;
+
+ // The operator to filter by.
+ Operator op = 2;
+
+ // The value to compare to.
+ Value value = 3;
+ }
+
+ // A filter with a single operand.
+ message UnaryFilter {
+ // A unary operator.
+ enum Operator {
+ // Unspecified. This value must not be used.
+ OPERATOR_UNSPECIFIED = 0;
+
+ // The given `field` is equal to `NaN`.
+ IS_NAN = 2;
+
+ // The given `field` is equal to `NULL`.
+ IS_NULL = 3;
+
+ // The given `field` is not equal to `NaN`.
+ //
+ // Requires:
+ //
+ // * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ IS_NOT_NAN = 4;
+
+ // The given `field` is not equal to `NULL`.
+ //
+ // Requires:
+ //
+ // * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ IS_NOT_NULL = 5;
+ }
+
+ // The unary operator to apply.
+ Operator op = 1;
+
+ // The argument to the filter.
+ oneof operand_type {
+ // The field to which to apply the operator.
+ FieldReference field = 2;
+ }
+ }
+
+ // An order on a field.
+ message Order {
+ // The field to order by.
+ FieldReference field = 1;
+
+ // The direction to order by. Defaults to `ASCENDING`.
+ Direction direction = 2;
+ }
+
+ // A sort direction.
+ enum Direction {
+ // Unspecified.
+ DIRECTION_UNSPECIFIED = 0;
+
+ // Ascending.
+ ASCENDING = 1;
+
+ // Descending.
+ DESCENDING = 2;
+ }
+
+ // A reference to a field in a document, ex: `stats.operations`.
+ message FieldReference {
+ // A reference to a field in a document.
+ //
+ // Requires:
+ //
+ // * MUST be a dot-delimited (`.`) string of segments, where each segment
+ // conforms to [document field name][google.firestore.v1.Document.fields]
+ // limitations.
+ string field_path = 2;
+ }
+
+ // The projection of document's fields to return.
+ message Projection {
+ // The fields to return.
+ //
+ // If empty, all fields are returned. To only return the name
+ // of the document, use `['__name__']`.
+ repeated FieldReference fields = 2;
+ }
+
+ // Nearest Neighbors search config. The ordering provided by FindNearest
+ // supersedes the order_by stage. If multiple documents have the same vector
+ // distance, the returned document order is not guaranteed to be stable
+ // between queries.
+ message FindNearest {
+ // The distance measure to use when comparing vectors.
+ enum DistanceMeasure {
+ // Should not be set.
+ DISTANCE_MEASURE_UNSPECIFIED = 0;
+
+ // Measures the EUCLIDEAN distance between the vectors. See
+ // [Euclidean](https://en.wikipedia.org/wiki/Euclidean_distance) to learn
+ // more. The resulting distance decreases the more similar two vectors
+ // are.
+ EUCLIDEAN = 1;
+
+ // COSINE distance compares vectors based on the angle between them, which
+ // allows you to measure similarity that isn't based on the vectors
+ // magnitude. We recommend using DOT_PRODUCT with unit normalized vectors
+ // instead of COSINE distance, which is mathematically equivalent with
+ // better performance. See [Cosine
+ // Similarity](https://en.wikipedia.org/wiki/Cosine_similarity) to learn
+ // more about COSINE similarity and COSINE distance. The resulting
+ // COSINE distance decreases the more similar two vectors are.
+ COSINE = 2;
+
+ // Similar to cosine but is affected by the magnitude of the vectors. See
+ // [Dot Product](https://en.wikipedia.org/wiki/Dot_product) to learn more.
+ // The resulting distance increases the more similar two vectors are.
+ DOT_PRODUCT = 3;
+ }
+
+ // Required. An indexed vector field to search upon. Only documents which
+ // contain vectors whose dimensionality match the query_vector can be
+ // returned.
+ FieldReference vector_field = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The query vector that we are searching on. Must be a vector of
+ // no more than 2048 dimensions.
+ Value query_vector = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The distance measure to use, required.
+ DistanceMeasure distance_measure = 3
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The number of nearest neighbors to return. Must be a positive
+ // integer of no more than 1000.
+ google.protobuf.Int32Value limit = 4
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Optional name of the field to output the result of the vector
+ // distance calculation. Must conform to [document field
+ // name][google.firestore.v1.Document.fields] limitations.
+ string distance_result_field = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Option to specify a threshold for which no less similar
+ // documents will be returned. The behavior of the specified
+ // `distance_measure` will affect the meaning of the distance threshold.
+ // Since DOT_PRODUCT distances increase when the vectors are more similar,
+ // the comparison is inverted.
+ //
+ // * For EUCLIDEAN, COSINE: `WHERE distance <= distance_threshold`
+ // * For DOT_PRODUCT: `WHERE distance >= distance_threshold`
+ google.protobuf.DoubleValue distance_threshold = 6
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional sub-set of the fields to return.
+ //
+ // This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
+ // documents returned from a query. When not set, assumes that the caller
+ // wants all fields returned.
+ Projection select = 1;
+
+ // The collections to query.
+ repeated CollectionSelector from = 2;
+
+ // The filter to apply.
+ Filter where = 3;
+
+ // The order to apply to the query results.
+ //
+ // Callers can provide a full ordering, a partial ordering, or no ordering at
+ // all. While Firestore will always respect the provided order, the behavior
+ // for queries without a full ordering is different per database edition:
+ //
+ // In Standard edition, Firestore guarantees a stable ordering through the
+ // following rules:
+ //
+ // * The `order_by` is required to reference all fields used with an
+ // inequality filter.
+ // * All fields that are required to be in the `order_by` but are not already
+ // present are appended in lexicographical ordering of the field name.
+ // * If an order on `__name__` is not specified, it is appended by default.
+ //
+ // Fields are appended with the same sort direction as the last order
+ // specified, or 'ASCENDING' if no order was specified. For example:
+ //
+ // * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
+ // * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
+ // * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
+ // * `WHERE __name__ > ... AND a > 1` becomes
+ // `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
+ //
+ // In Enterprise edition, Firestore does not guarantee a stable ordering.
+ // Instead it will pick the most efficient ordering based on the indexes
+ // available at the time of query execution. This will result in a different
+ // ordering for queries that are otherwise identical. To ensure a stable
+ // ordering, always include a unique field in the `order_by` clause, such as
+ // `__name__`.
+ repeated Order order_by = 4;
+
+ // A potential prefix of a position in the result set to start the query at.
+ //
+ // The ordering of the result set is based on the `ORDER BY` clause of the
+ // original query.
+ //
+ // ```
+ // SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
+ // ```
+ //
+ // This query's results are ordered by `(b ASC, __name__ ASC)`.
+ //
+ // Cursors can reference either the full ordering or a prefix of the location,
+ // though it cannot reference more fields than what are in the provided
+ // `ORDER BY`.
+ //
+ // Continuing off the example above, attaching the following start cursors
+ // will have varying impact:
+ //
+ // - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
+ // b > 2 AND __name__ > /k/123`.
+ // - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
+ //
+ // Unlike `OFFSET` which requires scanning over the first N results to skip,
+ // a start cursor allows the query to begin at a logical position. This
+ // position is not required to match an actual result, it will scan forward
+ // from this position to find the next document.
+ //
+ // Requires:
+ //
+ // * The number of values cannot be greater than the number of fields
+ // specified in the `ORDER BY` clause.
+ Cursor start_at = 7;
+
+ // A potential prefix of a position in the result set to end the query at.
+ //
+ // This is similar to `START_AT` but with it controlling the end position
+ // rather than the start position.
+ //
+ // Requires:
+ //
+ // * The number of values cannot be greater than the number of fields
+ // specified in the `ORDER BY` clause.
+ Cursor end_at = 8;
+
+ // The number of documents to skip before returning the first result.
+ //
+ // This applies after the constraints specified by the `WHERE`, `START AT`, &
+ // `END AT` but before the `LIMIT` clause.
+ //
+ // Requires:
+ //
+ // * The value must be greater than or equal to zero if specified.
+ int32 offset = 6;
+
+ // The maximum number of results to return.
+ //
+ // Applies after all other constraints.
+ //
+ // Requires:
+ //
+ // * The value must be greater than or equal to zero if specified.
+ google.protobuf.Int32Value limit = 5;
+
+ // Optional. A potential nearest neighbors search.
+ //
+ // Applies after all other filters and ordering.
+ //
+ // Finds the closest vector embeddings to the given query vector.
+ FindNearest find_nearest = 9 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Firestore query for running an aggregation over a
+// [StructuredQuery][google.firestore.v1.StructuredQuery].
+message StructuredAggregationQuery {
+ // Defines an aggregation that produces a single result.
+ message Aggregation {
+ // Count of documents that match the query.
+ //
+ // The `COUNT(*)` aggregation function operates on the entire document
+ // so it does not require a field reference.
+ message Count {
+ // Optional. Optional constraint on the maximum number of documents to
+ // count.
+ //
+ // This provides a way to set an upper bound on the number of documents
+ // to scan, limiting latency, and cost.
+ //
+ // Unspecified is interpreted as no bound.
+ //
+ // High-Level Example:
+ //
+ // ```
+ // AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
+ // ```
+ //
+ // Requires:
+ //
+ // * Must be greater than zero when present.
+ google.protobuf.Int64Value up_to = 1
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Sum of the values of the requested field.
+ //
+ // * Only numeric values will be aggregated. All non-numeric values
+ // including `NULL` are skipped.
+ //
+ // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
+ // follows IEEE-754 standards.
+ //
+ // * If the aggregated value set is empty, returns 0.
+ //
+ // * Returns a 64-bit integer if all aggregated numbers are integers and the
+ // sum result does not overflow. Otherwise, the result is returned as a
+ // double. Note that even if all the aggregated values are integers, the
+ // result is returned as a double if it cannot fit within a 64-bit signed
+ // integer. When this occurs, the returned value will lose precision.
+ //
+ // * When underflow occurs, floating-point aggregation is non-deterministic.
+ // This means that running the same query repeatedly without any changes to
+ // the underlying values could produce slightly different results each
+ // time. In those cases, values should be stored as integers over
+ // floating-point numbers.
+ message Sum {
+ // The field to aggregate on.
+ StructuredQuery.FieldReference field = 1;
+ }
+
+ // Average of the values of the requested field.
+ //
+ // * Only numeric values will be aggregated. All non-numeric values
+ // including `NULL` are skipped.
+ //
+ // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
+ // follows IEEE-754 standards.
+ //
+ // * If the aggregated value set is empty, returns `NULL`.
+ //
+ // * Always returns the result as a double.
+ message Avg {
+ // The field to aggregate on.
+ StructuredQuery.FieldReference field = 1;
+ }
+
+ // The type of aggregation to perform, required.
+ oneof operator {
+ // Count aggregator.
+ Count count = 1;
+
+ // Sum aggregator.
+ Sum sum = 2;
+
+ // Average aggregator.
+ Avg avg = 3;
+ }
+
+ // Optional. Optional name of the field to store the result of the
+ // aggregation into.
+ //
+ // If not provided, Firestore will pick a default name following the format
+ // `field_`. For example:
+ //
+ // ```
+ // AGGREGATE
+ // COUNT_UP_TO(1) AS count_up_to_1,
+ // COUNT_UP_TO(2),
+ // COUNT_UP_TO(3) AS count_up_to_3,
+ // COUNT(*)
+ // OVER (
+ // ...
+ // );
+ // ```
+ //
+ // becomes:
+ //
+ // ```
+ // AGGREGATE
+ // COUNT_UP_TO(1) AS count_up_to_1,
+ // COUNT_UP_TO(2) AS field_1,
+ // COUNT_UP_TO(3) AS count_up_to_3,
+ // COUNT(*) AS field_2
+ // OVER (
+ // ...
+ // );
+ // ```
+ //
+ // Requires:
+ //
+ // * Must be unique across all aggregation aliases.
+ // * Conform to [document field name][google.firestore.v1.Document.fields]
+ // limitations.
+ string alias = 7 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The base query to aggregate over.
+ oneof query_type {
+ // Nested structured query.
+ StructuredQuery structured_query = 1;
+ }
+
+ // Optional. Series of aggregations to apply over the results of the
+ // `structured_query`.
+ //
+ // Requires:
+ //
+ // * A minimum of one and maximum of five aggregations per query.
+ repeated Aggregation aggregations = 3
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A position in a query result set.
+message Cursor {
+ // The values that represent a position, in the order they appear in
+ // the order by clause of a query.
+ //
+ // Can contain fewer values than specified in the order by clause.
+ repeated Value values = 1;
+
+ // If the position is just before or just after the given values, relative
+ // to the sort order defined by the query.
+ bool before = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/query_profile.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/query_profile.proto
new file mode 100644
index 000000000000..a5f9e95c51fe
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/query_profile.proto
@@ -0,0 +1,92 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/struct.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "QueryProfileProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// Specification of the Firestore Query Profile fields.
+
+// Explain options for the query.
+message ExplainOptions {
+ // Optional. Whether to execute this query.
+ //
+ // When false (the default), the query will be planned, returning only
+ // metrics from the planning stages.
+ //
+ // When true, the query will be planned and executed, returning the full
+ // query results along with both planning and execution stage metrics.
+ bool analyze = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Explain metrics for the query.
+message ExplainMetrics {
+ // Planning phase information for the query.
+ PlanSummary plan_summary = 1;
+
+ // Aggregated stats from the execution of the query. Only present when
+ // [ExplainOptions.analyze][google.firestore.v1.ExplainOptions.analyze] is set
+ // to true.
+ ExecutionStats execution_stats = 2;
+}
+
+// Planning phase information for the query.
+message PlanSummary {
+ // The indexes selected for the query. For example:
+ // [
+ // {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"},
+ // {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"}
+ // ]
+ repeated google.protobuf.Struct indexes_used = 1;
+}
+
+// Execution statistics for the query.
+message ExecutionStats {
+ // Total number of results returned, including documents, projections,
+ // aggregation results, keys.
+ int64 results_returned = 1;
+
+ // Total time to execute the query in the backend.
+ google.protobuf.Duration execution_duration = 3;
+
+ // Total billable read operations.
+ int64 read_operations = 4;
+
+ // Debugging statistics from the execution of the query. Note that the
+ // debugging stats are subject to change as Firestore evolves. It could
+ // include:
+ // {
+ // "indexes_entries_scanned": "1000",
+ // "documents_scanned": "20",
+ // "billing_details" : {
+ // "documents_billable": "20",
+ // "index_entries_billable": "1000",
+ // "min_query_cost": "0"
+ // }
+ // }
+ google.protobuf.Struct debug_stats = 5;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1/write.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1/write.proto
new file mode 100644
index 000000000000..49f9a4870f92
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1/write.proto
@@ -0,0 +1,286 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1;
+
+import "google/firestore/v1/bloom_filter.proto";
+import "google/firestore/v1/common.proto";
+import "google/firestore/v1/document.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1";
+option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "WriteProto";
+option java_package = "com.google.firestore.v1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1";
+option ruby_package = "Google::Cloud::Firestore::V1";
+
+// A write on a document.
+message Write {
+ // The operation to execute.
+ oneof operation {
+ // A document to write.
+ Document update = 1;
+
+ // A document name to delete. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string delete = 2;
+
+ // Applies a transformation to a document.
+ DocumentTransform transform = 6;
+ }
+
+ // The fields to update in this write.
+ //
+ // This field can be set only when the operation is `update`.
+ // If the mask is not set for an `update` and the document exists, any
+ // existing data will be overwritten.
+ // If the mask is set and the document on the server has fields not covered by
+ // the mask, they are left unchanged.
+ // Fields referenced in the mask, but not present in the input document, are
+ // deleted from the document on the server.
+ // The field paths in this mask must not contain a reserved field name.
+ DocumentMask update_mask = 3;
+
+ // The transforms to perform after update.
+ //
+ // This field can be set only when the operation is `update`. If present, this
+ // write is equivalent to performing `update` and `transform` to the same
+ // document atomically and in order.
+ repeated DocumentTransform.FieldTransform update_transforms = 7;
+
+ // An optional precondition on the document.
+ //
+ // The write will fail if this is set and not met by the target document.
+ Precondition current_document = 4;
+}
+
+// A transformation of a document.
+message DocumentTransform {
+ // A transformation of a field of the document.
+ message FieldTransform {
+ // A value that is calculated by the server.
+ enum ServerValue {
+ // Unspecified. This value must not be used.
+ SERVER_VALUE_UNSPECIFIED = 0;
+
+ // The time at which the server processed the request, with millisecond
+ // precision. If used on multiple fields (same or different documents) in
+ // a transaction, all the fields will get the same server timestamp.
+ REQUEST_TIME = 1;
+ }
+
+ // The path of the field. See
+ // [Document.fields][google.firestore.v1.Document.fields] for the field path
+ // syntax reference.
+ string field_path = 1;
+
+ // The transformation to apply on the field.
+ oneof transform_type {
+ // Sets the field to the given server value.
+ ServerValue set_to_server_value = 2;
+
+ // Adds the given value to the field's current value.
+ //
+ // This must be an integer or a double value.
+ // If the field is not an integer or double, or if the field does not yet
+ // exist, the transformation will set the field to the given value.
+ // If either of the given value or the current field value are doubles,
+ // both values will be interpreted as doubles. Double arithmetic and
+ // representation of double values follow IEEE 754 semantics.
+ // If there is positive/negative integer overflow, the field is resolved
+ // to the largest magnitude positive/negative integer.
+ Value increment = 3;
+
+ // Sets the field to the maximum of its current value and the given value.
+ //
+ // This must be an integer or a double value.
+ // If the field is not an integer or double, or if the field does not yet
+ // exist, the transformation will set the field to the given value.
+ // If a maximum operation is applied where the field and the input value
+ // are of mixed types (that is - one is an integer and one is a double)
+ // the field takes on the type of the larger operand. If the operands are
+ // equivalent (e.g. 3 and 3.0), the field does not change.
+ // 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
+ // zero input value is always the stored value.
+ // The maximum of any numeric value x and NaN is NaN.
+ Value maximum = 4;
+
+ // Sets the field to the minimum of its current value and the given value.
+ //
+ // This must be an integer or a double value.
+ // If the field is not an integer or double, or if the field does not yet
+ // exist, the transformation will set the field to the input value.
+ // If a minimum operation is applied where the field and the input value
+ // are of mixed types (that is - one is an integer and one is a double)
+ // the field takes on the type of the smaller operand. If the operands are
+ // equivalent (e.g. 3 and 3.0), the field does not change.
+ // 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and
+ // zero input value is always the stored value.
+ // The minimum of any numeric value x and NaN is NaN.
+ Value minimum = 5;
+
+ // Append the given elements in order if they are not already present in
+ // the current field value.
+ // If the field is not an array, or if the field does not yet exist, it is
+ // first set to the empty array.
+ //
+ // Equivalent numbers of different types (e.g. 3L and 3.0) are
+ // considered equal when checking if a value is missing.
+ // NaN is equal to NaN, and Null is equal to Null.
+ // If the input contains multiple equivalent values, only the first will
+ // be considered.
+ //
+ // The corresponding transform_result will be the null value.
+ ArrayValue append_missing_elements = 6;
+
+ // Remove all of the given elements from the array in the field.
+ // If the field is not an array, or if the field does not yet exist, it is
+ // set to the empty array.
+ //
+ // Equivalent numbers of the different types (e.g. 3L and 3.0) are
+ // considered equal when deciding whether an element should be removed.
+ // NaN is equal to NaN, and Null is equal to Null.
+ // This will remove all equivalent values if there are duplicates.
+ //
+ // The corresponding transform_result will be the null value.
+ ArrayValue remove_all_from_array = 7;
+ }
+ }
+
+ // The name of the document to transform.
+ string document = 1;
+
+ // The list of transformations to apply to the fields of the document, in
+ // order.
+ // This must not be empty.
+ repeated FieldTransform field_transforms = 2;
+}
+
+// The result of applying a write.
+message WriteResult {
+ // The last update time of the document after applying the write. Not set
+ // after a `delete`.
+ //
+ // If the write did not actually change the document, this will be the
+ // previous update_time.
+ google.protobuf.Timestamp update_time = 1;
+
+ // The results of applying each
+ // [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
+ // in the same order.
+ repeated Value transform_results = 2;
+}
+
+// A [Document][google.firestore.v1.Document] has changed.
+//
+// May be the result of multiple [writes][google.firestore.v1.Write], including
+// deletes, that ultimately resulted in a new value for the
+// [Document][google.firestore.v1.Document].
+//
+// Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
+// returned for the same logical change, if multiple targets are affected.
+message DocumentChange {
+ // The new state of the [Document][google.firestore.v1.Document].
+ //
+ // If `mask` is set, contains only fields that were updated or added.
+ Document document = 1;
+
+ // A set of target IDs of targets that match this document.
+ repeated int32 target_ids = 5;
+
+ // A set of target IDs for targets that no longer match this document.
+ repeated int32 removed_target_ids = 6;
+}
+
+// A [Document][google.firestore.v1.Document] has been deleted.
+//
+// May be the result of multiple [writes][google.firestore.v1.Write], including
+// updates, the last of which deleted the
+// [Document][google.firestore.v1.Document].
+//
+// Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be
+// returned for the same logical delete, if multiple targets are affected.
+message DocumentDelete {
+ // The resource name of the [Document][google.firestore.v1.Document] that was
+ // deleted.
+ string document = 1;
+
+ // A set of target IDs for targets that previously matched this entity.
+ repeated int32 removed_target_ids = 6;
+
+ // The read timestamp at which the delete was observed.
+ //
+ // Greater or equal to the `commit_time` of the delete.
+ google.protobuf.Timestamp read_time = 4;
+}
+
+// A [Document][google.firestore.v1.Document] has been removed from the view of
+// the targets.
+//
+// Sent if the document is no longer relevant to a target and is out of view.
+// Can be sent instead of a DocumentDelete or a DocumentChange if the server
+// can not send the new value of the document.
+//
+// Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be
+// returned for the same logical write or delete, if multiple targets are
+// affected.
+message DocumentRemove {
+ // The resource name of the [Document][google.firestore.v1.Document] that has
+ // gone out of view.
+ string document = 1;
+
+ // A set of target IDs for targets that previously matched this document.
+ repeated int32 removed_target_ids = 2;
+
+ // The read timestamp at which the remove was observed.
+ //
+ // Greater or equal to the `commit_time` of the change/delete/remove.
+ google.protobuf.Timestamp read_time = 4;
+}
+
+// A digest of all the documents that match a given target.
+message ExistenceFilter {
+ // The target ID to which this filter applies.
+ int32 target_id = 1;
+
+ // The total count of documents that match
+ // [target_id][google.firestore.v1.ExistenceFilter.target_id].
+ //
+ // If different from the count of documents in the client that match, the
+ // client must manually determine which documents no longer match the target.
+ //
+ // The client can use the `unchanged_names` bloom filter to assist with
+ // this determination by testing ALL the document names against the filter;
+ // if the document name is NOT in the filter, it means the document no
+ // longer matches the target.
+ int32 count = 2;
+
+ // A bloom filter that, despite its name, contains the UTF-8 byte encodings of
+ // the resource names of ALL the documents that match
+ // [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ //
+ // This bloom filter may be omitted at the server's discretion, such as if it
+ // is deemed that the client will not make use of it or if it is too
+ // computationally expensive to calculate or transmit. Clients must gracefully
+ // handle this field being absent by falling back to the logic used before
+ // this field existed; that is, re-add the target without a resume token to
+ // figure out which documents in the client's cache are out of sync.
+ BloomFilter unchanged_names = 3;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/common.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/common.proto
new file mode 100644
index 000000000000..b18e53398b75
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/common.proto
@@ -0,0 +1,82 @@
+// Copyright 2025 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1beta1;
+
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1Beta1";
+option go_package = "cloud.google.com/go/firestore/apiv1beta1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "CommonProto";
+option java_package = "com.google.firestore.v1beta1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1beta1";
+option ruby_package = "Google::Cloud::Firestore::V1beta1";
+
+// A set of field paths on a document.
+// Used to restrict a get or update operation on a document to a subset of its
+// fields.
+// This is different from standard field masks, as this is always scoped to a
+// [Document][google.firestore.v1beta1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1beta1.Value].
+message DocumentMask {
+ // The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field
+ // path syntax reference.
+ repeated string field_paths = 1;
+}
+
+// A precondition on a document, used for conditional operations.
+message Precondition {
+ // The type of precondition.
+ oneof condition_type {
+ // When set to `true`, the target document must exist.
+ // When set to `false`, the target document must not exist.
+ bool exists = 1;
+
+ // When set, the target document must exist and have been last updated at
+ // that time.
+ google.protobuf.Timestamp update_time = 2;
+ }
+}
+
+// Options for creating a new transaction.
+message TransactionOptions {
+ // Options for a transaction that can be used to read and write documents.
+ message ReadWrite {
+ // An optional transaction to retry.
+ bytes retry_transaction = 1;
+ }
+
+ // Options for a transaction that can only be used to read documents.
+ message ReadOnly {
+ // The consistency mode for this transaction. If not set, defaults to strong
+ // consistency.
+ oneof consistency_selector {
+ // Reads documents at the given time.
+ // This may not be older than 60 seconds.
+ google.protobuf.Timestamp read_time = 2;
+ }
+ }
+
+ // The mode of the transaction.
+ oneof mode {
+ // The transaction can only be used for read operations.
+ ReadOnly read_only = 2;
+
+ // The transaction can be used for both read and write operations.
+ ReadWrite read_write = 3;
+ }
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/document.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/document.proto
new file mode 100644
index 000000000000..36b30151cd6d
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/document.proto
@@ -0,0 +1,149 @@
+// Copyright 2025 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1beta1;
+
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+import "google/type/latlng.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1Beta1";
+option go_package = "cloud.google.com/go/firestore/apiv1beta1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentProto";
+option java_package = "com.google.firestore.v1beta1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1beta1";
+option ruby_package = "Google::Cloud::Firestore::V1beta1";
+
+// A Firestore document.
+//
+// Must not exceed 1 MiB - 4 bytes.
+message Document {
+ // The resource name of the document, for example
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string name = 1;
+
+ // The document's fields.
+ //
+ // The map keys represent field names.
+ //
+ // A simple field name contains only characters `a` to `z`, `A` to `Z`,
+ // `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
+ // `foo_bar_17`.
+ //
+ // Field names matching the regular expression `__.*__` are reserved. Reserved
+ // field names are forbidden except in certain documented contexts. The map
+ // keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be
+ // empty.
+ //
+ // Field paths may be used in other contexts to refer to structured fields
+ // defined here. For `map_value`, the field path is represented by the simple
+ // or quoted field names of the containing fields, delimited by `.`. For
+ // example, the structured field
+ // `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be
+ // represented by the field path `foo.x&y`.
+ //
+ // Within a field path, a quoted field name starts and ends with `` ` `` and
+ // may contain any character. Some characters, including `` ` ``, must be
+ // escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
+ // `` `bak\`tik` `` represents `` bak`tik ``.
+ map fields = 2;
+
+ // Output only. The time at which the document was created.
+ //
+ // This value increases monotonically when a document is deleted then
+ // recreated. It can also be compared to values from other documents and
+ // the `read_time` of a query.
+ google.protobuf.Timestamp create_time = 3;
+
+ // Output only. The time at which the document was last changed.
+ //
+ // This value is initially set to the `create_time` then increases
+ // monotonically with each change to the document. It can also be
+ // compared to values from other documents and the `read_time` of a query.
+ google.protobuf.Timestamp update_time = 4;
+}
+
+// A message that can hold any of the supported value types.
+message Value {
+ // Must have a value set.
+ oneof value_type {
+ // A null value.
+ google.protobuf.NullValue null_value = 11;
+
+ // A boolean value.
+ bool boolean_value = 1;
+
+ // An integer value.
+ int64 integer_value = 2;
+
+ // A double value.
+ double double_value = 3;
+
+ // A timestamp value.
+ //
+ // Precise only to microseconds. When stored, any additional precision is
+ // rounded down.
+ google.protobuf.Timestamp timestamp_value = 10;
+
+ // A string value.
+ //
+ // The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
+ // Only the first 1,500 bytes of the UTF-8 representation are considered by
+ // queries.
+ string string_value = 17;
+
+ // A bytes value.
+ //
+ // Must not exceed 1 MiB - 89 bytes.
+ // Only the first 1,500 bytes are considered by queries.
+ bytes bytes_value = 18;
+
+ // A reference to a document. For example:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string reference_value = 5;
+
+ // A geo point value representing a point on the surface of Earth.
+ google.type.LatLng geo_point_value = 8;
+
+ // An array value.
+ //
+ // Cannot directly contain another array value, though can contain an
+ // map which contains another array.
+ ArrayValue array_value = 9;
+
+ // A map value.
+ MapValue map_value = 6;
+ }
+}
+
+// An array value.
+message ArrayValue {
+ // Values in the array.
+ repeated Value values = 1;
+}
+
+// A map value.
+message MapValue {
+ // The map's fields.
+ //
+ // The map keys represent field names. Field names matching the regular
+ // expression `__.*__` are reserved. Reserved field names are forbidden except
+ // in certain documented contexts. The map keys, represented as UTF-8, must
+ // not exceed 1,500 bytes and cannot be empty.
+ map fields = 1;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/firestore.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/firestore.proto
new file mode 100644
index 000000000000..07d4b3fe998b
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/firestore.proto
@@ -0,0 +1,900 @@
+// Copyright 2025 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/firestore/v1beta1/common.proto";
+import "google/firestore/v1beta1/document.proto";
+import "google/firestore/v1beta1/query.proto";
+import "google/firestore/v1beta1/write.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1Beta1";
+option go_package = "cloud.google.com/go/firestore/apiv1beta1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "FirestoreProto";
+option java_package = "com.google.firestore.v1beta1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1beta1";
+option ruby_package = "Google::Cloud::Firestore::V1beta1";
+
+// Specification of the Firestore API.
+
+// The Cloud Firestore service.
+//
+// Cloud Firestore is a fast, fully managed, serverless, cloud-native NoSQL
+// document database that simplifies storing, syncing, and querying data for
+// your mobile, web, and IoT apps at global scale. Its client libraries provide
+// live synchronization and offline support, while its security features and
+// integrations with Firebase and Google Cloud Platform (GCP) accelerate
+// building truly serverless apps.
+service Firestore {
+ option (google.api.default_host) = "firestore.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/datastore";
+
+ // Gets a single document.
+ rpc GetDocument(GetDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/databases/*/documents/*/**}"
+ };
+ }
+
+ // Lists documents.
+ rpc ListDocuments(ListDocumentsRequest) returns (ListDocumentsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/databases/*/documents/*/**}/{collection_id}"
+ };
+ }
+
+ // Updates or inserts a document.
+ rpc UpdateDocument(UpdateDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{document.name=projects/*/databases/*/documents/*/**}"
+ body: "document"
+ };
+ option (google.api.method_signature) = "document,update_mask";
+ }
+
+ // Deletes a document.
+ rpc DeleteDocument(DeleteDocumentRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/databases/*/documents/*/**}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets multiple documents.
+ //
+ // Documents returned by this method are not guaranteed to be returned in the
+ // same order that they were requested.
+ rpc BatchGetDocuments(BatchGetDocumentsRequest) returns (stream BatchGetDocumentsResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{database=projects/*/databases/*}/documents:batchGet"
+ body: "*"
+ };
+ }
+
+ // Starts a new transaction.
+ rpc BeginTransaction(BeginTransactionRequest) returns (BeginTransactionResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{database=projects/*/databases/*}/documents:beginTransaction"
+ body: "*"
+ };
+ option (google.api.method_signature) = "database";
+ }
+
+ // Commits a transaction, while optionally updating documents.
+ rpc Commit(CommitRequest) returns (CommitResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{database=projects/*/databases/*}/documents:commit"
+ body: "*"
+ };
+ option (google.api.method_signature) = "database,writes";
+ }
+
+ // Rolls back a transaction.
+ rpc Rollback(RollbackRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v1beta1/{database=projects/*/databases/*}/documents:rollback"
+ body: "*"
+ };
+ option (google.api.method_signature) = "database,transaction";
+ }
+
+ // Runs a query.
+ rpc RunQuery(RunQueryRequest) returns (stream RunQueryResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/databases/*/documents}:runQuery"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta1/{parent=projects/*/databases/*/documents/*/**}:runQuery"
+ body: "*"
+ }
+ };
+ }
+
+ // Partitions a query by returning partition cursors that can be used to run
+ // the query in parallel. The returned partition cursors are split points that
+ // can be used by RunQuery as starting/end points for the query results.
+ rpc PartitionQuery(PartitionQueryRequest) returns (PartitionQueryResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/databases/*/documents}:partitionQuery"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta1/{parent=projects/*/databases/*/documents/*/**}:partitionQuery"
+ body: "*"
+ }
+ };
+ }
+
+ // Streams batches of document updates and deletes, in order.
+ rpc Write(stream WriteRequest) returns (stream WriteResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{database=projects/*/databases/*}/documents:write"
+ body: "*"
+ };
+ }
+
+ // Listens to changes.
+ rpc Listen(stream ListenRequest) returns (stream ListenResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{database=projects/*/databases/*}/documents:listen"
+ body: "*"
+ };
+ }
+
+ // Lists all the collection IDs underneath a document.
+ rpc ListCollectionIds(ListCollectionIdsRequest) returns (ListCollectionIdsResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/databases/*/documents}:listCollectionIds"
+ body: "*"
+ additional_bindings {
+ post: "/v1beta1/{parent=projects/*/databases/*/documents/*/**}:listCollectionIds"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Applies a batch of write operations.
+ //
+ // The BatchWrite method does not apply the write operations atomically
+ // and can apply them out of order. Method does not allow more than one write
+ // per document. Each write succeeds or fails independently. See the
+ // [BatchWriteResponse][google.firestore.v1beta1.BatchWriteResponse] for the success status of each write.
+ //
+ // If you require an atomically applied set of writes, use
+ // [Commit][google.firestore.v1beta1.Firestore.Commit] instead.
+ rpc BatchWrite(BatchWriteRequest) returns (BatchWriteResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{database=projects/*/databases/*}/documents:batchWrite"
+ body: "*"
+ };
+ }
+
+ // Creates a new document.
+ rpc CreateDocument(CreateDocumentRequest) returns (Document) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/databases/*/documents/**}/{collection_id}"
+ body: "document"
+ };
+ }
+}
+
+// The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
+message GetDocumentRequest {
+ // Required. The resource name of the Document to get. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // 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.
+ DocumentMask mask = 2;
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads the document in a transaction.
+ bytes transaction = 3;
+
+ // Reads the version of the document at the given time.
+ // This may not be older than 270 seconds.
+ google.protobuf.Timestamp read_time = 5;
+ }
+}
+
+// The request for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
+message ListDocumentsRequest {
+ // Required. The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents` or
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`
+ // or `messages`.
+ string collection_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum number of documents to return.
+ int32 page_size = 3;
+
+ // The `next_page_token` value returned from a previous List request, if any.
+ string page_token = 4;
+
+ // The order to sort results by. For example: `priority desc, name`.
+ string order_by = 6;
+
+ // The fields to return. If not set, returns all fields.
+ //
+ // If a document has a field that is not present in this mask, that field
+ // will not be returned in the response.
+ DocumentMask mask = 7;
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads documents in a transaction.
+ bytes transaction = 8;
+
+ // Reads documents as they were at the given time.
+ // This may not be older than 270 seconds.
+ google.protobuf.Timestamp read_time = 10;
+ }
+
+ // If the list should show missing documents. A missing document is a
+ // document that does not exist but has sub-documents. These documents will
+ // be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time],
+ // or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
+ //
+ // Requests with `show_missing` may not specify `where` or
+ // `order_by`.
+ bool show_missing = 12;
+}
+
+// The response for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
+message ListDocumentsResponse {
+ // The Documents found.
+ repeated Document documents = 1;
+
+ // The next page token.
+ string next_page_token = 2;
+}
+
+// The request for [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
+message CreateDocumentRequest {
+ // Required. The parent resource. For example:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`.
+ string collection_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The client-assigned document ID to use for this document.
+ //
+ // Optional. If not specified, an ID will be assigned by the service.
+ string document_id = 3;
+
+ // Required. The document to create. `name` must not be set.
+ Document document = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // 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.
+ DocumentMask mask = 5;
+}
+
+// The request for [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
+message UpdateDocumentRequest {
+ // Required. The updated document.
+ // Creates the document if it does not already exist.
+ Document document = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The fields to update.
+ // None of the field paths in the mask may contain a reserved name.
+ //
+ // If the document exists on the server and has fields not referenced in the
+ // mask, they are left unchanged.
+ // Fields referenced in the mask, but not present in the input document, are
+ // deleted from the document on the server.
+ DocumentMask update_mask = 2;
+
+ // 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.
+ DocumentMask mask = 3;
+
+ // An optional precondition on the document.
+ // The request will fail if this is set and not met by the target document.
+ Precondition current_document = 4;
+}
+
+// The request for [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
+message DeleteDocumentRequest {
+ // Required. The resource name of the Document to delete. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // An optional precondition on the document.
+ // The request will fail if this is set and not met by the target document.
+ Precondition current_document = 2;
+}
+
+// The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
+message BatchGetDocumentsRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The names of the documents to retrieve. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // The request will fail if any of the document is not a child resource of the
+ // given `database`. Duplicate names will be elided.
+ repeated string documents = 2;
+
+ // The fields to return. If not set, returns all fields.
+ //
+ // If a document has a field that is not present in this mask, that field will
+ // not be returned in the response.
+ DocumentMask mask = 3;
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads documents in a transaction.
+ bytes transaction = 4;
+
+ // Starts a new transaction and reads the documents.
+ // Defaults to a read-only transaction.
+ // The new transaction ID will be returned as the first response in the
+ // stream.
+ TransactionOptions new_transaction = 5;
+
+ // Reads documents as they were at the given time.
+ // This may not be older than 270 seconds.
+ google.protobuf.Timestamp read_time = 7;
+ }
+}
+
+// The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
+message BatchGetDocumentsResponse {
+ // A single result.
+ // This can be empty if the server is just returning a transaction.
+ oneof result {
+ // A document that was requested.
+ Document found = 1;
+
+ // A document name that was requested but does not exist. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string missing = 2;
+ }
+
+ // The transaction that was started as part of this request.
+ // Will only be set in the first response, and only if
+ // [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
+ bytes transaction = 3;
+
+ // The time at which the document was read.
+ // This may be monotically increasing, in this case the previous documents in
+ // the result stream are guaranteed not to have changed between their
+ // read_time and this one.
+ google.protobuf.Timestamp read_time = 4;
+}
+
+// The request for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
+message BeginTransactionRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The options for the transaction.
+ // Defaults to a read-write transaction.
+ TransactionOptions options = 2;
+}
+
+// The response for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
+message BeginTransactionResponse {
+ // The transaction that was started.
+ bytes transaction = 1;
+}
+
+// The request for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
+message CommitRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The writes to apply.
+ //
+ // Always executed atomically and in order.
+ repeated Write writes = 2;
+
+ // If set, applies all writes in this transaction, and commits it.
+ bytes transaction = 3;
+}
+
+// The response for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
+message CommitResponse {
+ // The result of applying the writes.
+ //
+ // This i-th write result corresponds to the i-th write in the
+ // request.
+ repeated WriteResult write_results = 1;
+
+ // The time at which the commit occurred. Any read with an equal or greater
+ // `read_time` is guaranteed to see the effects of the commit.
+ google.protobuf.Timestamp commit_time = 2;
+}
+
+// The request for [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
+message RollbackRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The transaction to roll back.
+ bytes transaction = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
+message RunQueryRequest {
+ // Required. The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents` or
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The query to run.
+ oneof query_type {
+ // A structured query.
+ StructuredQuery structured_query = 2;
+ }
+
+ // The consistency mode for this transaction.
+ // If not set, defaults to strong consistency.
+ oneof consistency_selector {
+ // Reads documents in a transaction.
+ bytes transaction = 5;
+
+ // Starts a new transaction and reads the documents.
+ // Defaults to a read-only transaction.
+ // The new transaction ID will be returned as the first response in the
+ // stream.
+ TransactionOptions new_transaction = 6;
+
+ // Reads documents as they were at the given time.
+ // This may not be older than 270 seconds.
+ google.protobuf.Timestamp read_time = 7;
+ }
+}
+
+// The response for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
+message RunQueryResponse {
+ // The transaction that was started as part of this request.
+ // Can only be set in the first response, and only if
+ // [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request.
+ // If set, no other fields will be set in this response.
+ bytes transaction = 2;
+
+ // A query result.
+ // Not set when reporting partial progress.
+ Document document = 1;
+
+ // The time at which the document was read. This may be monotonically
+ // increasing; in this case, the previous documents in the result stream are
+ // guaranteed not to have changed between their `read_time` and this one.
+ //
+ // If the query returns no results, a response with `read_time` and no
+ // `document` will be sent, and this represents the time at which the query
+ // was run.
+ google.protobuf.Timestamp read_time = 3;
+
+ // The number of results that have been skipped due to an offset between
+ // the last response and the current response.
+ int32 skipped_results = 4;
+}
+
+// The request for [Firestore.PartitionQuery][google.firestore.v1beta1.Firestore.PartitionQuery].
+message PartitionQueryRequest {
+ // Required. The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents`.
+ // Document resource names are not supported; only database resource names
+ // can be specified.
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The query to partition.
+ oneof query_type {
+ // A structured query.
+ // Query must specify collection with all descendants and be ordered by name
+ // ascending. Other filters, order bys, limits, offsets, and start/end
+ // cursors are not supported.
+ StructuredQuery structured_query = 2;
+ }
+
+ // The desired maximum number of partition points.
+ // The partitions may be returned across multiple pages of results.
+ // The number must be positive. The actual number of partitions
+ // returned may be fewer.
+ //
+ // For example, this may be set to one fewer than the number of parallel
+ // queries to be run, or in running a data pipeline job, one fewer than the
+ // number of workers or compute instances available.
+ int64 partition_count = 3;
+
+ // The `next_page_token` value returned from a previous call to
+ // PartitionQuery that may be used to get an additional set of results.
+ // There are no ordering guarantees between sets of results. Thus, using
+ // multiple sets of results will require merging the different result sets.
+ //
+ // For example, two subsequent calls using a page_token may return:
+ //
+ // * cursor B, cursor M, cursor Q
+ // * cursor A, cursor U, cursor W
+ //
+ // To obtain a complete result set ordered with respect to the results of the
+ // query supplied to PartitionQuery, the results sets should be merged:
+ // cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
+ string page_token = 4;
+
+ // The maximum number of partitions to return in this call, subject to
+ // `partition_count`.
+ //
+ // For example, if `partition_count` = 10 and `page_size` = 8, the first call
+ // to PartitionQuery will return up to 8 partitions and a `next_page_token`
+ // if more results exist. A second call to PartitionQuery will return up to
+ // 2 partitions, to complete the total of 10 specified in `partition_count`.
+ int32 page_size = 5;
+}
+
+// The response for [Firestore.PartitionQuery][google.firestore.v1beta1.Firestore.PartitionQuery].
+message PartitionQueryResponse {
+ // Partition results.
+ // Each partition is a split point that can be used by RunQuery as a starting
+ // or end point for the query results. The RunQuery requests must be made with
+ // the same query supplied to this PartitionQuery request. The partition
+ // cursors will be ordered according to same ordering as the results of the
+ // query supplied to PartitionQuery.
+ //
+ // For example, if a PartitionQuery request returns partition cursors A and B,
+ // running the following three queries will return the entire result set of
+ // the original query:
+ //
+ // * query, end_at A
+ // * query, start_at A, end_at B
+ // * query, start_at B
+ //
+ // An empty result may indicate that the query has too few results to be
+ // partitioned.
+ repeated Cursor partitions = 1;
+
+ // A page token that may be used to request an additional set of results, up
+ // to the number specified by `partition_count` in the PartitionQuery request.
+ // If blank, there are no more results.
+ string next_page_token = 2;
+}
+
+// The request for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
+//
+// The first request creates a stream, or resumes an existing one from a token.
+//
+// When creating a new stream, the server replies with a response containing
+// only an ID and a token, to use in the next request.
+//
+// When resuming a stream, the server first streams any responses later than the
+// given token, then a response containing only an up-to-date token, to use in
+// the next request.
+message WriteRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ // This is only required in the first message.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // 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.
+ string stream_id = 2;
+
+ // The writes to apply.
+ //
+ // Always executed atomically and in order.
+ // This must be empty on the first request.
+ // This may be empty on the last request.
+ // This must not be empty on all other requests.
+ repeated Write writes = 3;
+
+ // A stream token that was previously sent by the server.
+ //
+ // The client should set this field to the token from the most recent
+ // [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has
+ // received responses up to this token. After sending this token, earlier
+ // tokens may not be used anymore.
+ //
+ // The server may close the stream if there are too many unacknowledged
+ // responses.
+ //
+ // Leave this field unset when creating a new stream. To resume a stream at
+ // a specific point, set this field and the `stream_id` field.
+ //
+ // Leave this field unset when creating a new stream.
+ bytes stream_token = 4;
+
+ // Labels associated with this write request.
+ map labels = 5;
+}
+
+// The response for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
+message WriteResponse {
+ // The ID of the stream.
+ // Only set on the first message, when a new stream was created.
+ string stream_id = 1;
+
+ // A token that represents the position of this response in the stream.
+ // This can be used by a client to resume the stream at this point.
+ //
+ // This field is always set.
+ bytes stream_token = 2;
+
+ // The result of applying the writes.
+ //
+ // This i-th write result corresponds to the i-th write in the
+ // request.
+ repeated WriteResult write_results = 3;
+
+ // The time at which the commit occurred. Any read with an equal or greater
+ // `read_time` is guaranteed to see the effects of the write.
+ google.protobuf.Timestamp commit_time = 4;
+}
+
+// A request for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen]
+message ListenRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The supported target changes.
+ oneof target_change {
+ // A target to add to this stream.
+ Target add_target = 2;
+
+ // The ID of a target to remove from this stream.
+ int32 remove_target = 3;
+ }
+
+ // Labels associated with this target change.
+ map labels = 4;
+}
+
+// The response for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
+message ListenResponse {
+ // The supported responses.
+ oneof response_type {
+ // Targets have changed.
+ TargetChange target_change = 2;
+
+ // A [Document][google.firestore.v1beta1.Document] has changed.
+ DocumentChange document_change = 3;
+
+ // A [Document][google.firestore.v1beta1.Document] has been deleted.
+ DocumentDelete document_delete = 4;
+
+ // A [Document][google.firestore.v1beta1.Document] has been removed from a target (because it is no longer
+ // relevant to that target).
+ DocumentRemove document_remove = 6;
+
+ // A filter to apply to the set of documents previously returned for the
+ // given target.
+ //
+ // Returned when documents may have been removed from the given target, but
+ // the exact documents are unknown.
+ ExistenceFilter filter = 5;
+ }
+}
+
+// A specification of a set of documents to listen to.
+message Target {
+ // A target specified by a set of documents names.
+ message DocumentsTarget {
+ // The names of the documents to retrieve. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // The request will fail if any of the document is not a child resource of
+ // the given `database`. Duplicate names will be elided.
+ repeated string documents = 2;
+ }
+
+ // A target specified by a query.
+ message QueryTarget {
+ // The parent resource name. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents` or
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents` or
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1;
+
+ // The query to run.
+ oneof query_type {
+ // A structured query.
+ StructuredQuery structured_query = 2;
+ }
+ }
+
+ // The type of target to listen to.
+ oneof target_type {
+ // A target specified by a query.
+ QueryTarget query = 2;
+
+ // A target specified by a set of document names.
+ DocumentsTarget documents = 3;
+ }
+
+ // When to start listening.
+ //
+ // If not specified, all matching Documents are returned before any
+ // subsequent changes.
+ oneof resume_type {
+ // A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
+ //
+ // Using a resume token with a different target is unsupported and may fail.
+ bytes resume_token = 4;
+
+ // Start listening after a specific `read_time`.
+ //
+ // The client must know the state of matching documents at this time.
+ google.protobuf.Timestamp read_time = 11;
+ }
+
+ // The target ID that identifies the target on the stream. Must be a positive
+ // number and non-zero.
+ int32 target_id = 5;
+
+ // If the target should be removed once it is current and consistent.
+ bool once = 6;
+}
+
+// Targets being watched have changed.
+message TargetChange {
+ // The type of change.
+ enum TargetChangeType {
+ // No change has occurred. Used only to send an updated `resume_token`.
+ NO_CHANGE = 0;
+
+ // The targets have been added.
+ ADD = 1;
+
+ // The targets have been removed.
+ REMOVE = 2;
+
+ // The targets reflect all changes committed before the targets were added
+ // to the stream.
+ //
+ // This will be sent after or with a `read_time` that is greater than or
+ // equal to the time at which the targets were added.
+ //
+ // Listeners can wait for this change if read-after-write semantics
+ // are desired.
+ CURRENT = 3;
+
+ // The targets have been reset, and a new initial state for the targets
+ // will be returned in subsequent changes.
+ //
+ // After the initial state is complete, `CURRENT` will be returned even
+ // if the target was previously indicated to be `CURRENT`.
+ RESET = 4;
+ }
+
+ // The type of change that occurred.
+ TargetChangeType target_change_type = 1;
+
+ // The target IDs of targets that have changed.
+ //
+ // If empty, the change applies to all targets.
+ //
+ // The order of the target IDs is not defined.
+ repeated int32 target_ids = 2;
+
+ // The error that resulted in this change, if applicable.
+ google.rpc.Status cause = 3;
+
+ // A token that can be used to resume the stream for the given `target_ids`,
+ // or all targets if `target_ids` is empty.
+ //
+ // Not set on every target change.
+ bytes resume_token = 4;
+
+ // The consistent `read_time` for the given `target_ids` (omitted when the
+ // target_ids are not at a consistent snapshot).
+ //
+ // The stream is guaranteed to send a `read_time` with `target_ids` empty
+ // whenever the entire stream reaches a new consistent snapshot. ADD,
+ // CURRENT, and RESET messages are guaranteed to (eventually) result in a
+ // new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
+ //
+ // For a given stream, `read_time` is guaranteed to be monotonically
+ // increasing.
+ google.protobuf.Timestamp read_time = 6;
+}
+
+// The request for [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
+message ListCollectionIdsRequest {
+ // Required. The parent document. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ // For example:
+ // `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum number of results to return.
+ int32 page_size = 2;
+
+ // A page token. Must be a value from
+ // [ListCollectionIdsResponse][google.firestore.v1beta1.ListCollectionIdsResponse].
+ string page_token = 3;
+}
+
+// The response from [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
+message ListCollectionIdsResponse {
+ // The collection ids.
+ repeated string collection_ids = 1;
+
+ // A page token that may be used to continue the list.
+ string next_page_token = 2;
+}
+
+// The request for [Firestore.BatchWrite][google.firestore.v1beta1.Firestore.BatchWrite].
+message BatchWriteRequest {
+ // Required. The database name. In the format:
+ // `projects/{project_id}/databases/{database_id}`.
+ string database = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The writes to apply.
+ //
+ // Method does not apply writes atomically and does not guarantee ordering.
+ // Each write succeeds or fails independently. You cannot write to the same
+ // document more than once per request.
+ repeated Write writes = 2;
+
+ // Labels associated with this batch write.
+ map labels = 3;
+}
+
+// The response from [Firestore.BatchWrite][google.firestore.v1beta1.Firestore.BatchWrite].
+message BatchWriteResponse {
+ // The result of applying the writes.
+ //
+ // This i-th write result corresponds to the i-th write in the
+ // request.
+ repeated WriteResult write_results = 1;
+
+ // The status of applying the writes.
+ //
+ // This i-th write status corresponds to the i-th write in the
+ // request.
+ repeated google.rpc.Status status = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/query.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/query.proto
new file mode 100644
index 000000000000..f107ab72177a
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/query.proto
@@ -0,0 +1,300 @@
+// Copyright 2025 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1beta1;
+
+import "google/firestore/v1beta1/document.proto";
+import "google/protobuf/wrappers.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1Beta1";
+option go_package = "cloud.google.com/go/firestore/apiv1beta1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "QueryProto";
+option java_package = "com.google.firestore.v1beta1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1beta1";
+option ruby_package = "Google::Cloud::Firestore::V1beta1";
+
+// A Firestore query.
+message StructuredQuery {
+ // A selection of a collection, such as `messages as m1`.
+ message CollectionSelector {
+ // The collection ID.
+ // When set, selects only collections with this ID.
+ string collection_id = 2;
+
+ // When false, selects only collections that are immediate children of
+ // the `parent` specified in the containing `RunQueryRequest`.
+ // When true, selects all descendant collections.
+ bool all_descendants = 3;
+ }
+
+ // A filter.
+ message Filter {
+ // The type of filter.
+ oneof filter_type {
+ // A composite filter.
+ CompositeFilter composite_filter = 1;
+
+ // A filter on a document field.
+ FieldFilter field_filter = 2;
+
+ // A filter that takes exactly one argument.
+ UnaryFilter unary_filter = 3;
+ }
+ }
+
+ // A filter that merges multiple other filters using the given operator.
+ message CompositeFilter {
+ // A composite filter operator.
+ enum Operator {
+ // Unspecified. This value must not be used.
+ OPERATOR_UNSPECIFIED = 0;
+
+ // The results are required to satisfy each of the combined filters.
+ AND = 1;
+ }
+
+ // The operator for combining multiple filters.
+ Operator op = 1;
+
+ // The list of filters to combine.
+ // Must contain at least one filter.
+ repeated Filter filters = 2;
+ }
+
+ // A filter on a specific field.
+ message FieldFilter {
+ // A field filter operator.
+ enum Operator {
+ // Unspecified. This value must not be used.
+ OPERATOR_UNSPECIFIED = 0;
+
+ // The given `field` is less than the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ LESS_THAN = 1;
+
+ // The given `field` is less than or equal to the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ LESS_THAN_OR_EQUAL = 2;
+
+ // The given `field` is greater than the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ GREATER_THAN = 3;
+
+ // The given `field` is greater than or equal to the given `value`.
+ //
+ // Requires:
+ //
+ // * That `field` come first in `order_by`.
+ GREATER_THAN_OR_EQUAL = 4;
+
+ // The given `field` is equal to the given `value`.
+ EQUAL = 5;
+
+ // The given `field` is not equal to the given `value`.
+ //
+ // Requires:
+ //
+ // * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ NOT_EQUAL = 6;
+
+ // The given `field` is an array that contains the given `value`.
+ ARRAY_CONTAINS = 7;
+
+ // The given `field` is equal to at least one value in the given array.
+ //
+ // Requires:
+ //
+ // * That `value` is a non-empty `ArrayValue` with at most 10 values.
+ // * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.
+ IN = 8;
+
+ // The given `field` is an array that contains any of the values in the
+ // given array.
+ //
+ // Requires:
+ //
+ // * That `value` is a non-empty `ArrayValue` with at most 10 values.
+ // * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.
+ ARRAY_CONTAINS_ANY = 9;
+
+ // The value of the `field` is not in the given array.
+ //
+ // Requires:
+ //
+ // * That `value` is a non-empty `ArrayValue` with at most 10 values.
+ // * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
+ // `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ NOT_IN = 10;
+ }
+
+ // The field to filter by.
+ FieldReference field = 1;
+
+ // The operator to filter by.
+ Operator op = 2;
+
+ // The value to compare to.
+ Value value = 3;
+ }
+
+ // A filter with a single operand.
+ message UnaryFilter {
+ // A unary operator.
+ enum Operator {
+ // Unspecified. This value must not be used.
+ OPERATOR_UNSPECIFIED = 0;
+
+ // The given `field` is equal to `NaN`.
+ IS_NAN = 2;
+
+ // The given `field` is equal to `NULL`.
+ IS_NULL = 3;
+
+ // The given `field` is not equal to `NaN`.
+ //
+ // Requires:
+ //
+ // * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ IS_NOT_NAN = 4;
+
+ // The given `field` is not equal to `NULL`.
+ //
+ // Requires:
+ //
+ // * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
+ // * That `field` comes first in the `order_by`.
+ IS_NOT_NULL = 5;
+ }
+
+ // The unary operator to apply.
+ Operator op = 1;
+
+ // The argument to the filter.
+ oneof operand_type {
+ // The field to which to apply the operator.
+ FieldReference field = 2;
+ }
+ }
+
+ // A reference to a field, such as `max(messages.time) as max_time`.
+ message FieldReference {
+ string field_path = 2;
+ }
+
+ // An order on a field.
+ message Order {
+ // The field to order by.
+ FieldReference field = 1;
+
+ // The direction to order by. Defaults to `ASCENDING`.
+ Direction direction = 2;
+ }
+
+ // The projection of document's fields to return.
+ message Projection {
+ // The fields to return.
+ //
+ // If empty, all fields are returned. To only return the name
+ // of the document, use `['__name__']`.
+ repeated FieldReference fields = 2;
+ }
+
+ // A sort direction.
+ enum Direction {
+ // Unspecified.
+ DIRECTION_UNSPECIFIED = 0;
+
+ // Ascending.
+ ASCENDING = 1;
+
+ // Descending.
+ DESCENDING = 2;
+ }
+
+ // The projection to return.
+ Projection select = 1;
+
+ // The collections to query.
+ repeated CollectionSelector from = 2;
+
+ // The filter to apply.
+ Filter where = 3;
+
+ // The order to apply to the query results.
+ //
+ // Firestore guarantees a stable ordering through the following rules:
+ //
+ // * Any field required to appear in `order_by`, that is not already
+ // specified in `order_by`, is appended to the order in field name order
+ // by default.
+ // * If an order on `__name__` is not specified, it is appended by default.
+ //
+ // Fields are appended with the same sort direction as the last order
+ // specified, or 'ASCENDING' if no order was specified. For example:
+ //
+ // * `SELECT * FROM Foo ORDER BY A` becomes
+ // `SELECT * FROM Foo ORDER BY A, __name__`
+ // * `SELECT * FROM Foo ORDER BY A DESC` becomes
+ // `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
+ // * `SELECT * FROM Foo WHERE A > 1` becomes
+ // `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
+ repeated Order order_by = 4;
+
+ // A starting point for the query results.
+ Cursor start_at = 7;
+
+ // A end point for the query results.
+ Cursor end_at = 8;
+
+ // The number of results to skip.
+ //
+ // Applies before limit, but after all other constraints. Must be >= 0 if
+ // specified.
+ int32 offset = 6;
+
+ // The maximum number of results to return.
+ //
+ // Applies after all other constraints.
+ // Must be >= 0 if specified.
+ google.protobuf.Int32Value limit = 5;
+}
+
+// A position in a query result set.
+message Cursor {
+ // The values that represent a position, in the order they appear in
+ // the order by clause of a query.
+ //
+ // Can contain fewer values than specified in the order by clause.
+ repeated Value values = 1;
+
+ // If the position is just before or just after the given values, relative
+ // to the sort order defined by the query.
+ bool before = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/undeliverable_first_gen_event.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/undeliverable_first_gen_event.proto
new file mode 100644
index 000000000000..0f7841eb9d64
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/undeliverable_first_gen_event.proto
@@ -0,0 +1,75 @@
+// Copyright 2025 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1beta1;
+
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1Beta1";
+option go_package = "cloud.google.com/go/firestore/apiv1beta1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "UndeliverableFirstGenEventProto";
+option java_package = "com.google.firestore.v1beta1";
+option php_namespace = "Google\\Cloud\\Firestore\\V1beta1";
+option ruby_package = "Google::Cloud::Firestore::V1beta1";
+
+// A message signifying an event that cannot be delivered to Cloud Functions
+// from Firestore using [Cloud Firestore triggers 1st
+// gen](https://cloud.google.com/functions/docs/calling/cloud-firestore)
+message UndeliverableFirstGenEvent {
+ // Reason for events being undeliverable.
+ enum Reason {
+ // Unspecified.
+ REASON_UNSPECIFIED = 0;
+
+ // Exceeding maximum event size limit
+ EXCEEDING_SIZE_LIMIT = 1;
+ }
+
+ // Document change type.
+ enum DocumentChangeType {
+ // Unspecified.
+ DOCUMENT_CHANGE_TYPE_UNSPECIFIED = 0;
+
+ // Represent creation operation.
+ CREATE = 1;
+
+ // Represent delete operation.
+ DELETE = 2;
+
+ // Represent update operation.
+ UPDATE = 3;
+ }
+
+ // Error message for events being undeliverable.
+ string message = 1;
+
+ // Reason for events being undeliverable.
+ Reason reason = 2;
+
+ // The resource name of the changed document, in the format of
+ // `projects/{projectId}/databases/{databaseId}/documents/{document_path}`.
+ string document_name = 3;
+
+ // The type of the document change.
+ DocumentChangeType document_change_type = 4;
+
+ // The names of the functions that were supposed to be triggered.
+ repeated string function_name = 5;
+
+ // The commit time of triggered write operation.
+ google.protobuf.Timestamp triggered_time = 6;
+}
diff --git a/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/write.proto b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/write.proto
new file mode 100644
index 000000000000..2fbe127ebe89
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/google/firestore/v1beta1/write.proto
@@ -0,0 +1,258 @@
+// Copyright 2025 Google LLC
+//
+// 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.
+
+syntax = "proto3";
+
+package google.firestore.v1beta1;
+
+import "google/firestore/v1beta1/common.proto";
+import "google/firestore/v1beta1/document.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Firestore.V1Beta1";
+option go_package = "cloud.google.com/go/firestore/apiv1beta1/firestorepb;firestorepb";
+option java_multiple_files = true;
+option java_outer_classname = "WriteProto";
+option java_package = "com.google.firestore.v1beta1";
+option objc_class_prefix = "GCFS";
+option php_namespace = "Google\\Cloud\\Firestore\\V1beta1";
+option ruby_package = "Google::Cloud::Firestore::V1beta1";
+
+// A write on a document.
+message Write {
+ // The operation to execute.
+ oneof operation {
+ // A document to write.
+ Document update = 1;
+
+ // A document name to delete. In the format:
+ // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
+ string delete = 2;
+
+ // Applies a transformation to a document.
+ DocumentTransform transform = 6;
+ }
+
+ // The fields to update in this write.
+ //
+ // This field can be set only when the operation is `update`.
+ // If the mask is not set for an `update` and the document exists, any
+ // existing data will be overwritten.
+ // If the mask is set and the document on the server has fields not covered by
+ // the mask, they are left unchanged.
+ // Fields referenced in the mask, but not present in the input document, are
+ // deleted from the document on the server.
+ // The field paths in this mask must not contain a reserved field name.
+ DocumentMask update_mask = 3;
+
+ // The transforms to perform after update.
+ //
+ // This field can be set only when the operation is `update`. If present, this
+ // write is equivalent to performing `update` and `transform` to the same
+ // document atomically and in order.
+ repeated DocumentTransform.FieldTransform update_transforms = 7;
+
+ // An optional precondition on the document.
+ //
+ // The write will fail if this is set and not met by the target document.
+ Precondition current_document = 4;
+}
+
+// A transformation of a document.
+message DocumentTransform {
+ // A transformation of a field of the document.
+ message FieldTransform {
+ // A value that is calculated by the server.
+ enum ServerValue {
+ // Unspecified. This value must not be used.
+ SERVER_VALUE_UNSPECIFIED = 0;
+
+ // The time at which the server processed the request, with millisecond
+ // precision. If used on multiple fields (same or different documents) in
+ // a transaction, all the fields will get the same server timestamp.
+ REQUEST_TIME = 1;
+ }
+
+ // The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax
+ // reference.
+ string field_path = 1;
+
+ // The transformation to apply on the field.
+ oneof transform_type {
+ // Sets the field to the given server value.
+ ServerValue set_to_server_value = 2;
+
+ // Adds the given value to the field's current value.
+ //
+ // This must be an integer or a double value.
+ // If the field is not an integer or double, or if the field does not yet
+ // exist, the transformation will set the field to the given value.
+ // If either of the given value or the current field value are doubles,
+ // both values will be interpreted as doubles. Double arithmetic and
+ // representation of double values follow IEEE 754 semantics.
+ // If there is positive/negative integer overflow, the field is resolved
+ // to the largest magnitude positive/negative integer.
+ Value increment = 3;
+
+ // Sets the field to the maximum of its current value and the given value.
+ //
+ // This must be an integer or a double value.
+ // If the field is not an integer or double, or if the field does not yet
+ // exist, the transformation will set the field to the given value.
+ // If a maximum operation is applied where the field and the input value
+ // are of mixed types (that is - one is an integer and one is a double)
+ // the field takes on the type of the larger operand. If the operands are
+ // equivalent (e.g. 3 and 3.0), the field does not change.
+ // 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
+ // zero input value is always the stored value.
+ // The maximum of any numeric value x and NaN is NaN.
+ Value maximum = 4;
+
+ // Sets the field to the minimum of its current value and the given value.
+ //
+ // This must be an integer or a double value.
+ // If the field is not an integer or double, or if the field does not yet
+ // exist, the transformation will set the field to the input value.
+ // If a minimum operation is applied where the field and the input value
+ // are of mixed types (that is - one is an integer and one is a double)
+ // the field takes on the type of the smaller operand. If the operands are
+ // equivalent (e.g. 3 and 3.0), the field does not change.
+ // 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and
+ // zero input value is always the stored value.
+ // The minimum of any numeric value x and NaN is NaN.
+ Value minimum = 5;
+
+ // Append the given elements in order if they are not already present in
+ // the current field value.
+ // If the field is not an array, or if the field does not yet exist, it is
+ // first set to the empty array.
+ //
+ // Equivalent numbers of different types (e.g. 3L and 3.0) are
+ // considered equal when checking if a value is missing.
+ // NaN is equal to NaN, and Null is equal to Null.
+ // If the input contains multiple equivalent values, only the first will
+ // be considered.
+ //
+ // The corresponding transform_result will be the null value.
+ ArrayValue append_missing_elements = 6;
+
+ // Remove all of the given elements from the array in the field.
+ // If the field is not an array, or if the field does not yet exist, it is
+ // set to the empty array.
+ //
+ // Equivalent numbers of the different types (e.g. 3L and 3.0) are
+ // considered equal when deciding whether an element should be removed.
+ // NaN is equal to NaN, and Null is equal to Null.
+ // This will remove all equivalent values if there are duplicates.
+ //
+ // The corresponding transform_result will be the null value.
+ ArrayValue remove_all_from_array = 7;
+ }
+ }
+
+ // The name of the document to transform.
+ string document = 1;
+
+ // The list of transformations to apply to the fields of the document, in
+ // order.
+ // This must not be empty.
+ repeated FieldTransform field_transforms = 2;
+}
+
+// The result of applying a write.
+message WriteResult {
+ // The last update time of the document after applying the write. Not set
+ // after a `delete`.
+ //
+ // If the write did not actually change the document, this will be the
+ // previous update_time.
+ google.protobuf.Timestamp update_time = 1;
+
+ // The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the
+ // same order.
+ repeated Value transform_results = 2;
+}
+
+// A [Document][google.firestore.v1beta1.Document] has changed.
+//
+// May be the result of multiple [writes][google.firestore.v1beta1.Write], including deletes, that
+// ultimately resulted in a new value for the [Document][google.firestore.v1beta1.Document].
+//
+// Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages may be returned for the same logical
+// change, if multiple targets are affected.
+message DocumentChange {
+ // The new state of the [Document][google.firestore.v1beta1.Document].
+ //
+ // If `mask` is set, contains only fields that were updated or added.
+ Document document = 1;
+
+ // A set of target IDs of targets that match this document.
+ repeated int32 target_ids = 5;
+
+ // A set of target IDs for targets that no longer match this document.
+ repeated int32 removed_target_ids = 6;
+}
+
+// A [Document][google.firestore.v1beta1.Document] has been deleted.
+//
+// May be the result of multiple [writes][google.firestore.v1beta1.Write], including updates, the
+// last of which deleted the [Document][google.firestore.v1beta1.Document].
+//
+// Multiple [DocumentDelete][google.firestore.v1beta1.DocumentDelete] messages may be returned for the same logical
+// delete, if multiple targets are affected.
+message DocumentDelete {
+ // The resource name of the [Document][google.firestore.v1beta1.Document] that was deleted.
+ string document = 1;
+
+ // A set of target IDs for targets that previously matched this entity.
+ repeated int32 removed_target_ids = 6;
+
+ // The read timestamp at which the delete was observed.
+ //
+ // Greater or equal to the `commit_time` of the delete.
+ google.protobuf.Timestamp read_time = 4;
+}
+
+// A [Document][google.firestore.v1beta1.Document] has been removed from the view of the targets.
+//
+// Sent if the document is no longer relevant to a target and is out of view.
+// Can be sent instead of a DocumentDelete or a DocumentChange if the server
+// can not send the new value of the document.
+//
+// Multiple [DocumentRemove][google.firestore.v1beta1.DocumentRemove] messages may be returned for the same logical
+// write or delete, if multiple targets are affected.
+message DocumentRemove {
+ // The resource name of the [Document][google.firestore.v1beta1.Document] that has gone out of view.
+ string document = 1;
+
+ // A set of target IDs for targets that previously matched this document.
+ repeated int32 removed_target_ids = 2;
+
+ // The read timestamp at which the remove was observed.
+ //
+ // Greater or equal to the `commit_time` of the change/delete/remove.
+ google.protobuf.Timestamp read_time = 4;
+}
+
+// A digest of all the documents that match a given target.
+message ExistenceFilter {
+ // The target ID to which this filter applies.
+ int32 target_id = 1;
+
+ // The total count of documents that match [target_id][google.firestore.v1beta1.ExistenceFilter.target_id].
+ //
+ // If different from the count of documents in the client that match, the
+ // client must manually determine which documents no longer match the target.
+ int32 count = 2;
+}
diff --git a/packages/google-cloud-firestore-api/protos/protos.d.ts b/packages/google-cloud-firestore-api/protos/protos.d.ts
new file mode 100644
index 000000000000..794aabf24f73
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/protos.d.ts
@@ -0,0 +1,35648 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace firestore. */
+ namespace firestore {
+
+ /** Namespace admin. */
+ namespace admin {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a Backup. */
+ interface IBackup {
+
+ /** Backup name */
+ name?: (string|null);
+
+ /** Backup database */
+ database?: (string|null);
+
+ /** Backup databaseUid */
+ databaseUid?: (string|null);
+
+ /** Backup snapshotTime */
+ snapshotTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup expireTime */
+ expireTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup stats */
+ stats?: (google.firestore.admin.v1.Backup.IStats|null);
+
+ /** Backup state */
+ state?: (google.firestore.admin.v1.Backup.State|keyof typeof google.firestore.admin.v1.Backup.State|null);
+ }
+
+ /** Represents a Backup. */
+ class Backup implements IBackup {
+
+ /**
+ * Constructs a new Backup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IBackup);
+
+ /** Backup name. */
+ public name: string;
+
+ /** Backup database. */
+ public database: string;
+
+ /** Backup databaseUid. */
+ public databaseUid: string;
+
+ /** Backup snapshotTime. */
+ public snapshotTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup expireTime. */
+ public expireTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup stats. */
+ public stats?: (google.firestore.admin.v1.Backup.IStats|null);
+
+ /** Backup state. */
+ public state: (google.firestore.admin.v1.Backup.State|keyof typeof google.firestore.admin.v1.Backup.State);
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Backup instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IBackup): google.firestore.admin.v1.Backup;
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.firestore.admin.v1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Backup;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Backup;
+
+ /**
+ * Verifies a Backup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Backup
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Backup;
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @param message Backup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Backup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Backup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Backup {
+
+ /** Properties of a Stats. */
+ interface IStats {
+
+ /** Stats sizeBytes */
+ sizeBytes?: (number|Long|string|null);
+
+ /** Stats documentCount */
+ documentCount?: (number|Long|string|null);
+
+ /** Stats indexCount */
+ indexCount?: (number|Long|string|null);
+ }
+
+ /** Represents a Stats. */
+ class Stats implements IStats {
+
+ /**
+ * Constructs a new Stats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Backup.IStats);
+
+ /** Stats sizeBytes. */
+ public sizeBytes: (number|Long|string);
+
+ /** Stats documentCount. */
+ public documentCount: (number|Long|string);
+
+ /** Stats indexCount. */
+ public indexCount: (number|Long|string);
+
+ /**
+ * Creates a new Stats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Stats instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Backup.IStats): google.firestore.admin.v1.Backup.Stats;
+
+ /**
+ * Encodes the specified Stats message. Does not implicitly {@link google.firestore.admin.v1.Backup.Stats.verify|verify} messages.
+ * @param message Stats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Backup.IStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Stats message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Backup.Stats.verify|verify} messages.
+ * @param message Stats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Backup.IStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Stats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Stats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Backup.Stats;
+
+ /**
+ * Decodes a Stats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Stats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Backup.Stats;
+
+ /**
+ * Verifies a Stats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Stats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Stats
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Backup.Stats;
+
+ /**
+ * Creates a plain object from a Stats message. Also converts values to other types if specified.
+ * @param message Stats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Backup.Stats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Stats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Stats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 2,
+ NOT_AVAILABLE = 3
+ }
+ }
+
+ /** Properties of a Database. */
+ interface IDatabase {
+
+ /** Database name */
+ name?: (string|null);
+
+ /** Database uid */
+ uid?: (string|null);
+
+ /** Database createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database deleteTime */
+ deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database locationId */
+ locationId?: (string|null);
+
+ /** Database type */
+ type?: (google.firestore.admin.v1.Database.DatabaseType|keyof typeof google.firestore.admin.v1.Database.DatabaseType|null);
+
+ /** Database concurrencyMode */
+ concurrencyMode?: (google.firestore.admin.v1.Database.ConcurrencyMode|keyof typeof google.firestore.admin.v1.Database.ConcurrencyMode|null);
+
+ /** Database versionRetentionPeriod */
+ versionRetentionPeriod?: (google.protobuf.IDuration|null);
+
+ /** Database earliestVersionTime */
+ earliestVersionTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database pointInTimeRecoveryEnablement */
+ pointInTimeRecoveryEnablement?: (google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement|keyof typeof google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement|null);
+
+ /** Database appEngineIntegrationMode */
+ appEngineIntegrationMode?: (google.firestore.admin.v1.Database.AppEngineIntegrationMode|keyof typeof google.firestore.admin.v1.Database.AppEngineIntegrationMode|null);
+
+ /** Database keyPrefix */
+ keyPrefix?: (string|null);
+
+ /** Database deleteProtectionState */
+ deleteProtectionState?: (google.firestore.admin.v1.Database.DeleteProtectionState|keyof typeof google.firestore.admin.v1.Database.DeleteProtectionState|null);
+
+ /** Database cmekConfig */
+ cmekConfig?: (google.firestore.admin.v1.Database.ICmekConfig|null);
+
+ /** Database previousId */
+ previousId?: (string|null);
+
+ /** Database sourceInfo */
+ sourceInfo?: (google.firestore.admin.v1.Database.ISourceInfo|null);
+
+ /** Database tags */
+ tags?: ({ [k: string]: string }|null);
+
+ /** Database freeTier */
+ freeTier?: (boolean|null);
+
+ /** Database etag */
+ etag?: (string|null);
+
+ /** Database databaseEdition */
+ databaseEdition?: (google.firestore.admin.v1.Database.DatabaseEdition|keyof typeof google.firestore.admin.v1.Database.DatabaseEdition|null);
+
+ /** Database realtimeUpdatesMode */
+ realtimeUpdatesMode?: (google.firestore.admin.v1.RealtimeUpdatesMode|keyof typeof google.firestore.admin.v1.RealtimeUpdatesMode|null);
+
+ /** Database firestoreDataAccessMode */
+ firestoreDataAccessMode?: (google.firestore.admin.v1.Database.DataAccessMode|keyof typeof google.firestore.admin.v1.Database.DataAccessMode|null);
+
+ /** Database mongodbCompatibleDataAccessMode */
+ mongodbCompatibleDataAccessMode?: (google.firestore.admin.v1.Database.DataAccessMode|keyof typeof google.firestore.admin.v1.Database.DataAccessMode|null);
+ }
+
+ /** Represents a Database. */
+ class Database implements IDatabase {
+
+ /**
+ * Constructs a new Database.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDatabase);
+
+ /** Database name. */
+ public name: string;
+
+ /** Database uid. */
+ public uid: string;
+
+ /** Database createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database deleteTime. */
+ public deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database locationId. */
+ public locationId: string;
+
+ /** Database type. */
+ public type: (google.firestore.admin.v1.Database.DatabaseType|keyof typeof google.firestore.admin.v1.Database.DatabaseType);
+
+ /** Database concurrencyMode. */
+ public concurrencyMode: (google.firestore.admin.v1.Database.ConcurrencyMode|keyof typeof google.firestore.admin.v1.Database.ConcurrencyMode);
+
+ /** Database versionRetentionPeriod. */
+ public versionRetentionPeriod?: (google.protobuf.IDuration|null);
+
+ /** Database earliestVersionTime. */
+ public earliestVersionTime?: (google.protobuf.ITimestamp|null);
+
+ /** Database pointInTimeRecoveryEnablement. */
+ public pointInTimeRecoveryEnablement: (google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement|keyof typeof google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement);
+
+ /** Database appEngineIntegrationMode. */
+ public appEngineIntegrationMode: (google.firestore.admin.v1.Database.AppEngineIntegrationMode|keyof typeof google.firestore.admin.v1.Database.AppEngineIntegrationMode);
+
+ /** Database keyPrefix. */
+ public keyPrefix: string;
+
+ /** Database deleteProtectionState. */
+ public deleteProtectionState: (google.firestore.admin.v1.Database.DeleteProtectionState|keyof typeof google.firestore.admin.v1.Database.DeleteProtectionState);
+
+ /** Database cmekConfig. */
+ public cmekConfig?: (google.firestore.admin.v1.Database.ICmekConfig|null);
+
+ /** Database previousId. */
+ public previousId: string;
+
+ /** Database sourceInfo. */
+ public sourceInfo?: (google.firestore.admin.v1.Database.ISourceInfo|null);
+
+ /** Database tags. */
+ public tags: { [k: string]: string };
+
+ /** Database freeTier. */
+ public freeTier?: (boolean|null);
+
+ /** Database etag. */
+ public etag: string;
+
+ /** Database databaseEdition. */
+ public databaseEdition: (google.firestore.admin.v1.Database.DatabaseEdition|keyof typeof google.firestore.admin.v1.Database.DatabaseEdition);
+
+ /** Database realtimeUpdatesMode. */
+ public realtimeUpdatesMode: (google.firestore.admin.v1.RealtimeUpdatesMode|keyof typeof google.firestore.admin.v1.RealtimeUpdatesMode);
+
+ /** Database firestoreDataAccessMode. */
+ public firestoreDataAccessMode: (google.firestore.admin.v1.Database.DataAccessMode|keyof typeof google.firestore.admin.v1.Database.DataAccessMode);
+
+ /** Database mongodbCompatibleDataAccessMode. */
+ public mongodbCompatibleDataAccessMode: (google.firestore.admin.v1.Database.DataAccessMode|keyof typeof google.firestore.admin.v1.Database.DataAccessMode);
+
+ /**
+ * Creates a new Database instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Database instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDatabase): google.firestore.admin.v1.Database;
+
+ /**
+ * Encodes the specified Database message. Does not implicitly {@link google.firestore.admin.v1.Database.verify|verify} messages.
+ * @param message Database message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDatabase, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Database message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.verify|verify} messages.
+ * @param message Database message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDatabase, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Database message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Database
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database;
+
+ /**
+ * Decodes a Database message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Database
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database;
+
+ /**
+ * Verifies a Database message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Database message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Database
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database;
+
+ /**
+ * Creates a plain object from a Database message. Also converts values to other types if specified.
+ * @param message Database
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Database to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Database
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Database {
+
+ /** DatabaseType enum. */
+ enum DatabaseType {
+ DATABASE_TYPE_UNSPECIFIED = 0,
+ FIRESTORE_NATIVE = 1,
+ DATASTORE_MODE = 2
+ }
+
+ /** ConcurrencyMode enum. */
+ enum ConcurrencyMode {
+ CONCURRENCY_MODE_UNSPECIFIED = 0,
+ OPTIMISTIC = 1,
+ PESSIMISTIC = 2,
+ OPTIMISTIC_WITH_ENTITY_GROUPS = 3
+ }
+
+ /** PointInTimeRecoveryEnablement enum. */
+ enum PointInTimeRecoveryEnablement {
+ POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED = 0,
+ POINT_IN_TIME_RECOVERY_ENABLED = 1,
+ POINT_IN_TIME_RECOVERY_DISABLED = 2
+ }
+
+ /** AppEngineIntegrationMode enum. */
+ enum AppEngineIntegrationMode {
+ APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED = 0,
+ ENABLED = 1,
+ DISABLED = 2
+ }
+
+ /** DeleteProtectionState enum. */
+ enum DeleteProtectionState {
+ DELETE_PROTECTION_STATE_UNSPECIFIED = 0,
+ DELETE_PROTECTION_DISABLED = 1,
+ DELETE_PROTECTION_ENABLED = 2
+ }
+
+ /** Properties of a CmekConfig. */
+ interface ICmekConfig {
+
+ /** CmekConfig kmsKeyName */
+ kmsKeyName?: (string|null);
+
+ /** CmekConfig activeKeyVersion */
+ activeKeyVersion?: (string[]|null);
+ }
+
+ /** Represents a CmekConfig. */
+ class CmekConfig implements ICmekConfig {
+
+ /**
+ * Constructs a new CmekConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Database.ICmekConfig);
+
+ /** CmekConfig kmsKeyName. */
+ public kmsKeyName: string;
+
+ /** CmekConfig activeKeyVersion. */
+ public activeKeyVersion: string[];
+
+ /**
+ * Creates a new CmekConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CmekConfig instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Database.ICmekConfig): google.firestore.admin.v1.Database.CmekConfig;
+
+ /**
+ * Encodes the specified CmekConfig message. Does not implicitly {@link google.firestore.admin.v1.Database.CmekConfig.verify|verify} messages.
+ * @param message CmekConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Database.ICmekConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CmekConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.CmekConfig.verify|verify} messages.
+ * @param message CmekConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Database.ICmekConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CmekConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CmekConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database.CmekConfig;
+
+ /**
+ * Decodes a CmekConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CmekConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database.CmekConfig;
+
+ /**
+ * Verifies a CmekConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CmekConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CmekConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database.CmekConfig;
+
+ /**
+ * Creates a plain object from a CmekConfig message. Also converts values to other types if specified.
+ * @param message CmekConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database.CmekConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CmekConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CmekConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceInfo. */
+ interface ISourceInfo {
+
+ /** SourceInfo backup */
+ backup?: (google.firestore.admin.v1.Database.SourceInfo.IBackupSource|null);
+
+ /** SourceInfo operation */
+ operation?: (string|null);
+ }
+
+ /** Represents a SourceInfo. */
+ class SourceInfo implements ISourceInfo {
+
+ /**
+ * Constructs a new SourceInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Database.ISourceInfo);
+
+ /** SourceInfo backup. */
+ public backup?: (google.firestore.admin.v1.Database.SourceInfo.IBackupSource|null);
+
+ /** SourceInfo operation. */
+ public operation: string;
+
+ /** SourceInfo source. */
+ public source?: "backup";
+
+ /**
+ * Creates a new SourceInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceInfo instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Database.ISourceInfo): google.firestore.admin.v1.Database.SourceInfo;
+
+ /**
+ * Encodes the specified SourceInfo message. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.verify|verify} messages.
+ * @param message SourceInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Database.ISourceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceInfo message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.verify|verify} messages.
+ * @param message SourceInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Database.ISourceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database.SourceInfo;
+
+ /**
+ * Decodes a SourceInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database.SourceInfo;
+
+ /**
+ * Verifies a SourceInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database.SourceInfo;
+
+ /**
+ * Creates a plain object from a SourceInfo message. Also converts values to other types if specified.
+ * @param message SourceInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database.SourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceInfo {
+
+ /** Properties of a BackupSource. */
+ interface IBackupSource {
+
+ /** BackupSource backup */
+ backup?: (string|null);
+ }
+
+ /** Represents a BackupSource. */
+ class BackupSource implements IBackupSource {
+
+ /**
+ * Constructs a new BackupSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Database.SourceInfo.IBackupSource);
+
+ /** BackupSource backup. */
+ public backup: string;
+
+ /**
+ * Creates a new BackupSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BackupSource instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Database.SourceInfo.IBackupSource): google.firestore.admin.v1.Database.SourceInfo.BackupSource;
+
+ /**
+ * Encodes the specified BackupSource message. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.BackupSource.verify|verify} messages.
+ * @param message BackupSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Database.SourceInfo.IBackupSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BackupSource message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.BackupSource.verify|verify} messages.
+ * @param message BackupSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Database.SourceInfo.IBackupSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BackupSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BackupSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database.SourceInfo.BackupSource;
+
+ /**
+ * Decodes a BackupSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BackupSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database.SourceInfo.BackupSource;
+
+ /**
+ * Verifies a BackupSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BackupSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BackupSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database.SourceInfo.BackupSource;
+
+ /**
+ * Creates a plain object from a BackupSource message. Also converts values to other types if specified.
+ * @param message BackupSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database.SourceInfo.BackupSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BackupSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BackupSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EncryptionConfig. */
+ interface IEncryptionConfig {
+
+ /** EncryptionConfig googleDefaultEncryption */
+ googleDefaultEncryption?: (google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions|null);
+
+ /** EncryptionConfig useSourceEncryption */
+ useSourceEncryption?: (google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions|null);
+
+ /** EncryptionConfig customerManagedEncryption */
+ customerManagedEncryption?: (google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions|null);
+ }
+
+ /** Represents an EncryptionConfig. */
+ class EncryptionConfig implements IEncryptionConfig {
+
+ /**
+ * Constructs a new EncryptionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Database.IEncryptionConfig);
+
+ /** EncryptionConfig googleDefaultEncryption. */
+ public googleDefaultEncryption?: (google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions|null);
+
+ /** EncryptionConfig useSourceEncryption. */
+ public useSourceEncryption?: (google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions|null);
+
+ /** EncryptionConfig customerManagedEncryption. */
+ public customerManagedEncryption?: (google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions|null);
+
+ /** EncryptionConfig encryptionType. */
+ public encryptionType?: ("googleDefaultEncryption"|"useSourceEncryption"|"customerManagedEncryption");
+
+ /**
+ * Creates a new EncryptionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EncryptionConfig instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Database.IEncryptionConfig): google.firestore.admin.v1.Database.EncryptionConfig;
+
+ /**
+ * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Database.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Database.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database.EncryptionConfig;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database.EncryptionConfig;
+
+ /**
+ * Verifies an EncryptionConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EncryptionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database.EncryptionConfig;
+
+ /**
+ * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified.
+ * @param message EncryptionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database.EncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EncryptionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EncryptionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EncryptionConfig {
+
+ /** Properties of a GoogleDefaultEncryptionOptions. */
+ interface IGoogleDefaultEncryptionOptions {
+ }
+
+ /** Represents a GoogleDefaultEncryptionOptions. */
+ class GoogleDefaultEncryptionOptions implements IGoogleDefaultEncryptionOptions {
+
+ /**
+ * Constructs a new GoogleDefaultEncryptionOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions);
+
+ /**
+ * Creates a new GoogleDefaultEncryptionOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoogleDefaultEncryptionOptions instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions): google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions;
+
+ /**
+ * Encodes the specified GoogleDefaultEncryptionOptions message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.verify|verify} messages.
+ * @param message GoogleDefaultEncryptionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoogleDefaultEncryptionOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.verify|verify} messages.
+ * @param message GoogleDefaultEncryptionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoogleDefaultEncryptionOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoogleDefaultEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions;
+
+ /**
+ * Decodes a GoogleDefaultEncryptionOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoogleDefaultEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions;
+
+ /**
+ * Verifies a GoogleDefaultEncryptionOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoogleDefaultEncryptionOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoogleDefaultEncryptionOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions;
+
+ /**
+ * Creates a plain object from a GoogleDefaultEncryptionOptions message. Also converts values to other types if specified.
+ * @param message GoogleDefaultEncryptionOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoogleDefaultEncryptionOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoogleDefaultEncryptionOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceEncryptionOptions. */
+ interface ISourceEncryptionOptions {
+ }
+
+ /** Represents a SourceEncryptionOptions. */
+ class SourceEncryptionOptions implements ISourceEncryptionOptions {
+
+ /**
+ * Constructs a new SourceEncryptionOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions);
+
+ /**
+ * Creates a new SourceEncryptionOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceEncryptionOptions instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions): google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions;
+
+ /**
+ * Encodes the specified SourceEncryptionOptions message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.verify|verify} messages.
+ * @param message SourceEncryptionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceEncryptionOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.verify|verify} messages.
+ * @param message SourceEncryptionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceEncryptionOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions;
+
+ /**
+ * Decodes a SourceEncryptionOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions;
+
+ /**
+ * Verifies a SourceEncryptionOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceEncryptionOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceEncryptionOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions;
+
+ /**
+ * Creates a plain object from a SourceEncryptionOptions message. Also converts values to other types if specified.
+ * @param message SourceEncryptionOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceEncryptionOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceEncryptionOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomerManagedEncryptionOptions. */
+ interface ICustomerManagedEncryptionOptions {
+
+ /** CustomerManagedEncryptionOptions kmsKeyName */
+ kmsKeyName?: (string|null);
+ }
+
+ /** Represents a CustomerManagedEncryptionOptions. */
+ class CustomerManagedEncryptionOptions implements ICustomerManagedEncryptionOptions {
+
+ /**
+ * Constructs a new CustomerManagedEncryptionOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions);
+
+ /** CustomerManagedEncryptionOptions kmsKeyName. */
+ public kmsKeyName: string;
+
+ /**
+ * Creates a new CustomerManagedEncryptionOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomerManagedEncryptionOptions instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions): google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions;
+
+ /**
+ * Encodes the specified CustomerManagedEncryptionOptions message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.verify|verify} messages.
+ * @param message CustomerManagedEncryptionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomerManagedEncryptionOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.verify|verify} messages.
+ * @param message CustomerManagedEncryptionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomerManagedEncryptionOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomerManagedEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions;
+
+ /**
+ * Decodes a CustomerManagedEncryptionOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomerManagedEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions;
+
+ /**
+ * Verifies a CustomerManagedEncryptionOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomerManagedEncryptionOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomerManagedEncryptionOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions;
+
+ /**
+ * Creates a plain object from a CustomerManagedEncryptionOptions message. Also converts values to other types if specified.
+ * @param message CustomerManagedEncryptionOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomerManagedEncryptionOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomerManagedEncryptionOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** DatabaseEdition enum. */
+ enum DatabaseEdition {
+ DATABASE_EDITION_UNSPECIFIED = 0,
+ STANDARD = 1,
+ ENTERPRISE = 2
+ }
+
+ /** DataAccessMode enum. */
+ enum DataAccessMode {
+ DATA_ACCESS_MODE_UNSPECIFIED = 0,
+ DATA_ACCESS_MODE_ENABLED = 1,
+ DATA_ACCESS_MODE_DISABLED = 2
+ }
+ }
+
+ /** RealtimeUpdatesMode enum. */
+ enum RealtimeUpdatesMode {
+ REALTIME_UPDATES_MODE_UNSPECIFIED = 0,
+ REALTIME_UPDATES_MODE_ENABLED = 1,
+ REALTIME_UPDATES_MODE_DISABLED = 2
+ }
+
+ /** Properties of a Field. */
+ interface IField {
+
+ /** Field name */
+ name?: (string|null);
+
+ /** Field indexConfig */
+ indexConfig?: (google.firestore.admin.v1.Field.IIndexConfig|null);
+
+ /** Field ttlConfig */
+ ttlConfig?: (google.firestore.admin.v1.Field.ITtlConfig|null);
+ }
+
+ /** Represents a Field. */
+ class Field implements IField {
+
+ /**
+ * Constructs a new Field.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IField);
+
+ /** Field name. */
+ public name: string;
+
+ /** Field indexConfig. */
+ public indexConfig?: (google.firestore.admin.v1.Field.IIndexConfig|null);
+
+ /** Field ttlConfig. */
+ public ttlConfig?: (google.firestore.admin.v1.Field.ITtlConfig|null);
+
+ /**
+ * Creates a new Field instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Field instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IField): google.firestore.admin.v1.Field;
+
+ /**
+ * Encodes the specified Field message. Does not implicitly {@link google.firestore.admin.v1.Field.verify|verify} messages.
+ * @param message Field message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Field message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Field.verify|verify} messages.
+ * @param message Field message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Field message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Field;
+
+ /**
+ * Decodes a Field message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Field;
+
+ /**
+ * Verifies a Field message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Field message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Field
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Field;
+
+ /**
+ * Creates a plain object from a Field message. Also converts values to other types if specified.
+ * @param message Field
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Field, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Field to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Field
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Field {
+
+ /** Properties of an IndexConfig. */
+ interface IIndexConfig {
+
+ /** IndexConfig indexes */
+ indexes?: (google.firestore.admin.v1.IIndex[]|null);
+
+ /** IndexConfig usesAncestorConfig */
+ usesAncestorConfig?: (boolean|null);
+
+ /** IndexConfig ancestorField */
+ ancestorField?: (string|null);
+
+ /** IndexConfig reverting */
+ reverting?: (boolean|null);
+ }
+
+ /** Represents an IndexConfig. */
+ class IndexConfig implements IIndexConfig {
+
+ /**
+ * Constructs a new IndexConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Field.IIndexConfig);
+
+ /** IndexConfig indexes. */
+ public indexes: google.firestore.admin.v1.IIndex[];
+
+ /** IndexConfig usesAncestorConfig. */
+ public usesAncestorConfig: boolean;
+
+ /** IndexConfig ancestorField. */
+ public ancestorField: string;
+
+ /** IndexConfig reverting. */
+ public reverting: boolean;
+
+ /**
+ * Creates a new IndexConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndexConfig instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Field.IIndexConfig): google.firestore.admin.v1.Field.IndexConfig;
+
+ /**
+ * Encodes the specified IndexConfig message. Does not implicitly {@link google.firestore.admin.v1.Field.IndexConfig.verify|verify} messages.
+ * @param message IndexConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Field.IIndexConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndexConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Field.IndexConfig.verify|verify} messages.
+ * @param message IndexConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Field.IIndexConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndexConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndexConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Field.IndexConfig;
+
+ /**
+ * Decodes an IndexConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndexConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Field.IndexConfig;
+
+ /**
+ * Verifies an IndexConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an IndexConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndexConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Field.IndexConfig;
+
+ /**
+ * Creates a plain object from an IndexConfig message. Also converts values to other types if specified.
+ * @param message IndexConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Field.IndexConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndexConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndexConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TtlConfig. */
+ interface ITtlConfig {
+
+ /** TtlConfig state */
+ state?: (google.firestore.admin.v1.Field.TtlConfig.State|keyof typeof google.firestore.admin.v1.Field.TtlConfig.State|null);
+
+ /** TtlConfig expirationOffset */
+ expirationOffset?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a TtlConfig. */
+ class TtlConfig implements ITtlConfig {
+
+ /**
+ * Constructs a new TtlConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Field.ITtlConfig);
+
+ /** TtlConfig state. */
+ public state: (google.firestore.admin.v1.Field.TtlConfig.State|keyof typeof google.firestore.admin.v1.Field.TtlConfig.State);
+
+ /** TtlConfig expirationOffset. */
+ public expirationOffset?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new TtlConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TtlConfig instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Field.ITtlConfig): google.firestore.admin.v1.Field.TtlConfig;
+
+ /**
+ * Encodes the specified TtlConfig message. Does not implicitly {@link google.firestore.admin.v1.Field.TtlConfig.verify|verify} messages.
+ * @param message TtlConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Field.ITtlConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TtlConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Field.TtlConfig.verify|verify} messages.
+ * @param message TtlConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Field.ITtlConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TtlConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TtlConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Field.TtlConfig;
+
+ /**
+ * Decodes a TtlConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TtlConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Field.TtlConfig;
+
+ /**
+ * Verifies a TtlConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TtlConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TtlConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Field.TtlConfig;
+
+ /**
+ * Creates a plain object from a TtlConfig message. Also converts values to other types if specified.
+ * @param message TtlConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Field.TtlConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TtlConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TtlConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TtlConfig {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ ACTIVE = 2,
+ NEEDS_REPAIR = 3
+ }
+ }
+ }
+
+ /** Properties of an Index. */
+ interface IIndex {
+
+ /** Index name */
+ name?: (string|null);
+
+ /** Index queryScope */
+ queryScope?: (google.firestore.admin.v1.Index.QueryScope|keyof typeof google.firestore.admin.v1.Index.QueryScope|null);
+
+ /** Index apiScope */
+ apiScope?: (google.firestore.admin.v1.Index.ApiScope|keyof typeof google.firestore.admin.v1.Index.ApiScope|null);
+
+ /** Index fields */
+ fields?: (google.firestore.admin.v1.Index.IIndexField[]|null);
+
+ /** Index state */
+ state?: (google.firestore.admin.v1.Index.State|keyof typeof google.firestore.admin.v1.Index.State|null);
+
+ /** Index density */
+ density?: (google.firestore.admin.v1.Index.Density|keyof typeof google.firestore.admin.v1.Index.Density|null);
+
+ /** Index multikey */
+ multikey?: (boolean|null);
+
+ /** Index shardCount */
+ shardCount?: (number|null);
+
+ /** Index unique */
+ unique?: (boolean|null);
+
+ /** Index searchIndexOptions */
+ searchIndexOptions?: (google.firestore.admin.v1.Index.ISearchIndexOptions|null);
+ }
+
+ /** Represents an Index. */
+ class Index implements IIndex {
+
+ /**
+ * Constructs a new Index.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IIndex);
+
+ /** Index name. */
+ public name: string;
+
+ /** Index queryScope. */
+ public queryScope: (google.firestore.admin.v1.Index.QueryScope|keyof typeof google.firestore.admin.v1.Index.QueryScope);
+
+ /** Index apiScope. */
+ public apiScope: (google.firestore.admin.v1.Index.ApiScope|keyof typeof google.firestore.admin.v1.Index.ApiScope);
+
+ /** Index fields. */
+ public fields: google.firestore.admin.v1.Index.IIndexField[];
+
+ /** Index state. */
+ public state: (google.firestore.admin.v1.Index.State|keyof typeof google.firestore.admin.v1.Index.State);
+
+ /** Index density. */
+ public density: (google.firestore.admin.v1.Index.Density|keyof typeof google.firestore.admin.v1.Index.Density);
+
+ /** Index multikey. */
+ public multikey: boolean;
+
+ /** Index shardCount. */
+ public shardCount: number;
+
+ /** Index unique. */
+ public unique: boolean;
+
+ /** Index searchIndexOptions. */
+ public searchIndexOptions?: (google.firestore.admin.v1.Index.ISearchIndexOptions|null);
+
+ /**
+ * Creates a new Index instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Index instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IIndex): google.firestore.admin.v1.Index;
+
+ /**
+ * Encodes the specified Index message. Does not implicitly {@link google.firestore.admin.v1.Index.verify|verify} messages.
+ * @param message Index message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Index message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.verify|verify} messages.
+ * @param message Index message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Index message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Index
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index;
+
+ /**
+ * Decodes an Index message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Index
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index;
+
+ /**
+ * Verifies an Index message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Index message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Index
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index;
+
+ /**
+ * Creates a plain object from an Index message. Also converts values to other types if specified.
+ * @param message Index
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Index to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Index
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Index {
+
+ /** QueryScope enum. */
+ enum QueryScope {
+ QUERY_SCOPE_UNSPECIFIED = 0,
+ COLLECTION = 1,
+ COLLECTION_GROUP = 2,
+ COLLECTION_RECURSIVE = 3
+ }
+
+ /** ApiScope enum. */
+ enum ApiScope {
+ ANY_API = 0,
+ DATASTORE_MODE_API = 1,
+ MONGODB_COMPATIBLE_API = 2
+ }
+
+ /** Properties of an IndexField. */
+ interface IIndexField {
+
+ /** IndexField fieldPath */
+ fieldPath?: (string|null);
+
+ /** IndexField order */
+ order?: (google.firestore.admin.v1.Index.IndexField.Order|keyof typeof google.firestore.admin.v1.Index.IndexField.Order|null);
+
+ /** IndexField arrayConfig */
+ arrayConfig?: (google.firestore.admin.v1.Index.IndexField.ArrayConfig|keyof typeof google.firestore.admin.v1.Index.IndexField.ArrayConfig|null);
+
+ /** IndexField vectorConfig */
+ vectorConfig?: (google.firestore.admin.v1.Index.IndexField.IVectorConfig|null);
+
+ /** IndexField searchConfig */
+ searchConfig?: (google.firestore.admin.v1.Index.IndexField.ISearchConfig|null);
+ }
+
+ /** Represents an IndexField. */
+ class IndexField implements IIndexField {
+
+ /**
+ * Constructs a new IndexField.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.IIndexField);
+
+ /** IndexField fieldPath. */
+ public fieldPath: string;
+
+ /** IndexField order. */
+ public order?: (google.firestore.admin.v1.Index.IndexField.Order|keyof typeof google.firestore.admin.v1.Index.IndexField.Order|null);
+
+ /** IndexField arrayConfig. */
+ public arrayConfig?: (google.firestore.admin.v1.Index.IndexField.ArrayConfig|keyof typeof google.firestore.admin.v1.Index.IndexField.ArrayConfig|null);
+
+ /** IndexField vectorConfig. */
+ public vectorConfig?: (google.firestore.admin.v1.Index.IndexField.IVectorConfig|null);
+
+ /** IndexField searchConfig. */
+ public searchConfig?: (google.firestore.admin.v1.Index.IndexField.ISearchConfig|null);
+
+ /** IndexField valueMode. */
+ public valueMode?: ("order"|"arrayConfig"|"vectorConfig"|"searchConfig");
+
+ /**
+ * Creates a new IndexField instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndexField instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.IIndexField): google.firestore.admin.v1.Index.IndexField;
+
+ /**
+ * Encodes the specified IndexField message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.verify|verify} messages.
+ * @param message IndexField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.IIndexField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndexField message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.verify|verify} messages.
+ * @param message IndexField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.IIndexField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndexField message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndexField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.IndexField;
+
+ /**
+ * Decodes an IndexField message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndexField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.IndexField;
+
+ /**
+ * Verifies an IndexField message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an IndexField message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndexField
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.IndexField;
+
+ /**
+ * Creates a plain object from an IndexField message. Also converts values to other types if specified.
+ * @param message IndexField
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.IndexField, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndexField to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndexField
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IndexField {
+
+ /** Order enum. */
+ enum Order {
+ ORDER_UNSPECIFIED = 0,
+ ASCENDING = 1,
+ DESCENDING = 2
+ }
+
+ /** ArrayConfig enum. */
+ enum ArrayConfig {
+ ARRAY_CONFIG_UNSPECIFIED = 0,
+ CONTAINS = 1
+ }
+
+ /** Properties of a VectorConfig. */
+ interface IVectorConfig {
+
+ /** VectorConfig dimension */
+ dimension?: (number|null);
+
+ /** VectorConfig flat */
+ flat?: (google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex|null);
+ }
+
+ /** Represents a VectorConfig. */
+ class VectorConfig implements IVectorConfig {
+
+ /**
+ * Constructs a new VectorConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.IndexField.IVectorConfig);
+
+ /** VectorConfig dimension. */
+ public dimension: number;
+
+ /** VectorConfig flat. */
+ public flat?: (google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex|null);
+
+ /** VectorConfig type. */
+ public type?: "flat";
+
+ /**
+ * Creates a new VectorConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VectorConfig instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.IndexField.IVectorConfig): google.firestore.admin.v1.Index.IndexField.VectorConfig;
+
+ /**
+ * Encodes the specified VectorConfig message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.verify|verify} messages.
+ * @param message VectorConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.IndexField.IVectorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VectorConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.verify|verify} messages.
+ * @param message VectorConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.IndexField.IVectorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VectorConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VectorConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.IndexField.VectorConfig;
+
+ /**
+ * Decodes a VectorConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VectorConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.IndexField.VectorConfig;
+
+ /**
+ * Verifies a VectorConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VectorConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VectorConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.IndexField.VectorConfig;
+
+ /**
+ * Creates a plain object from a VectorConfig message. Also converts values to other types if specified.
+ * @param message VectorConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.IndexField.VectorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VectorConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VectorConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VectorConfig {
+
+ /** Properties of a FlatIndex. */
+ interface IFlatIndex {
+ }
+
+ /** Represents a FlatIndex. */
+ class FlatIndex implements IFlatIndex {
+
+ /**
+ * Constructs a new FlatIndex.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex);
+
+ /**
+ * Creates a new FlatIndex instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FlatIndex instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex): google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex;
+
+ /**
+ * Encodes the specified FlatIndex message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.verify|verify} messages.
+ * @param message FlatIndex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FlatIndex message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.verify|verify} messages.
+ * @param message FlatIndex message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FlatIndex message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FlatIndex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex;
+
+ /**
+ * Decodes a FlatIndex message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FlatIndex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex;
+
+ /**
+ * Verifies a FlatIndex message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FlatIndex message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FlatIndex
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex;
+
+ /**
+ * Creates a plain object from a FlatIndex message. Also converts values to other types if specified.
+ * @param message FlatIndex
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FlatIndex to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FlatIndex
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SearchConfig. */
+ interface ISearchConfig {
+
+ /** SearchConfig textSpec */
+ textSpec?: (google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec|null);
+
+ /** SearchConfig geoSpec */
+ geoSpec?: (google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec|null);
+ }
+
+ /** Represents a SearchConfig. */
+ class SearchConfig implements ISearchConfig {
+
+ /**
+ * Constructs a new SearchConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.IndexField.ISearchConfig);
+
+ /** SearchConfig textSpec. */
+ public textSpec?: (google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec|null);
+
+ /** SearchConfig geoSpec. */
+ public geoSpec?: (google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec|null);
+
+ /**
+ * Creates a new SearchConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchConfig instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.IndexField.ISearchConfig): google.firestore.admin.v1.Index.IndexField.SearchConfig;
+
+ /**
+ * Encodes the specified SearchConfig message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.verify|verify} messages.
+ * @param message SearchConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.IndexField.ISearchConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.verify|verify} messages.
+ * @param message SearchConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.IndexField.ISearchConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.IndexField.SearchConfig;
+
+ /**
+ * Decodes a SearchConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.IndexField.SearchConfig;
+
+ /**
+ * Verifies a SearchConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.IndexField.SearchConfig;
+
+ /**
+ * Creates a plain object from a SearchConfig message. Also converts values to other types if specified.
+ * @param message SearchConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.IndexField.SearchConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SearchConfig {
+
+ /** TextIndexType enum. */
+ enum TextIndexType {
+ TEXT_INDEX_TYPE_UNSPECIFIED = 0,
+ TOKENIZED = 1
+ }
+
+ /** TextMatchType enum. */
+ enum TextMatchType {
+ TEXT_MATCH_TYPE_UNSPECIFIED = 0,
+ MATCH_GLOBALLY = 1
+ }
+
+ /** Properties of a SearchTextIndexSpec. */
+ interface ISearchTextIndexSpec {
+
+ /** SearchTextIndexSpec indexType */
+ indexType?: (google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType|keyof typeof google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType|null);
+
+ /** SearchTextIndexSpec matchType */
+ matchType?: (google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType|keyof typeof google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType|null);
+ }
+
+ /** Represents a SearchTextIndexSpec. */
+ class SearchTextIndexSpec implements ISearchTextIndexSpec {
+
+ /**
+ * Constructs a new SearchTextIndexSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec);
+
+ /** SearchTextIndexSpec indexType. */
+ public indexType: (google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType|keyof typeof google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType);
+
+ /** SearchTextIndexSpec matchType. */
+ public matchType: (google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType|keyof typeof google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType);
+
+ /**
+ * Creates a new SearchTextIndexSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchTextIndexSpec instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec;
+
+ /**
+ * Encodes the specified SearchTextIndexSpec message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.verify|verify} messages.
+ * @param message SearchTextIndexSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchTextIndexSpec message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.verify|verify} messages.
+ * @param message SearchTextIndexSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchTextIndexSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchTextIndexSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec;
+
+ /**
+ * Decodes a SearchTextIndexSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchTextIndexSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec;
+
+ /**
+ * Verifies a SearchTextIndexSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchTextIndexSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchTextIndexSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec;
+
+ /**
+ * Creates a plain object from a SearchTextIndexSpec message. Also converts values to other types if specified.
+ * @param message SearchTextIndexSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchTextIndexSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchTextIndexSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchTextSpec. */
+ interface ISearchTextSpec {
+
+ /** SearchTextSpec indexSpecs */
+ indexSpecs?: (google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec[]|null);
+ }
+
+ /** Represents a SearchTextSpec. */
+ class SearchTextSpec implements ISearchTextSpec {
+
+ /**
+ * Constructs a new SearchTextSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec);
+
+ /** SearchTextSpec indexSpecs. */
+ public indexSpecs: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec[];
+
+ /**
+ * Creates a new SearchTextSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchTextSpec instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec;
+
+ /**
+ * Encodes the specified SearchTextSpec message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.verify|verify} messages.
+ * @param message SearchTextSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchTextSpec message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.verify|verify} messages.
+ * @param message SearchTextSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchTextSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchTextSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec;
+
+ /**
+ * Decodes a SearchTextSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchTextSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec;
+
+ /**
+ * Verifies a SearchTextSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchTextSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchTextSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec;
+
+ /**
+ * Creates a plain object from a SearchTextSpec message. Also converts values to other types if specified.
+ * @param message SearchTextSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchTextSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchTextSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchGeoSpec. */
+ interface ISearchGeoSpec {
+
+ /** SearchGeoSpec geoJsonIndexingDisabled */
+ geoJsonIndexingDisabled?: (boolean|null);
+ }
+
+ /** Represents a SearchGeoSpec. */
+ class SearchGeoSpec implements ISearchGeoSpec {
+
+ /**
+ * Constructs a new SearchGeoSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec);
+
+ /** SearchGeoSpec geoJsonIndexingDisabled. */
+ public geoJsonIndexingDisabled: boolean;
+
+ /**
+ * Creates a new SearchGeoSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchGeoSpec instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec;
+
+ /**
+ * Encodes the specified SearchGeoSpec message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.verify|verify} messages.
+ * @param message SearchGeoSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchGeoSpec message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.verify|verify} messages.
+ * @param message SearchGeoSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchGeoSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchGeoSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec;
+
+ /**
+ * Decodes a SearchGeoSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchGeoSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec;
+
+ /**
+ * Verifies a SearchGeoSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchGeoSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchGeoSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec;
+
+ /**
+ * Creates a plain object from a SearchGeoSpec message. Also converts values to other types if specified.
+ * @param message SearchGeoSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchGeoSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchGeoSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 2,
+ NEEDS_REPAIR = 3
+ }
+
+ /** Density enum. */
+ enum Density {
+ DENSITY_UNSPECIFIED = 0,
+ SPARSE_ALL = 1,
+ SPARSE_ANY = 2,
+ DENSE = 3
+ }
+
+ /** Properties of a SearchIndexOptions. */
+ interface ISearchIndexOptions {
+
+ /** SearchIndexOptions textLanguage */
+ textLanguage?: (string|null);
+
+ /** SearchIndexOptions textLanguageOverrideFieldPath */
+ textLanguageOverrideFieldPath?: (string|null);
+ }
+
+ /** Represents a SearchIndexOptions. */
+ class SearchIndexOptions implements ISearchIndexOptions {
+
+ /**
+ * Constructs a new SearchIndexOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.Index.ISearchIndexOptions);
+
+ /** SearchIndexOptions textLanguage. */
+ public textLanguage: string;
+
+ /** SearchIndexOptions textLanguageOverrideFieldPath. */
+ public textLanguageOverrideFieldPath: string;
+
+ /**
+ * Creates a new SearchIndexOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchIndexOptions instance
+ */
+ public static create(properties?: google.firestore.admin.v1.Index.ISearchIndexOptions): google.firestore.admin.v1.Index.SearchIndexOptions;
+
+ /**
+ * Encodes the specified SearchIndexOptions message. Does not implicitly {@link google.firestore.admin.v1.Index.SearchIndexOptions.verify|verify} messages.
+ * @param message SearchIndexOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.Index.ISearchIndexOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchIndexOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.SearchIndexOptions.verify|verify} messages.
+ * @param message SearchIndexOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.Index.ISearchIndexOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchIndexOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchIndexOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Index.SearchIndexOptions;
+
+ /**
+ * Decodes a SearchIndexOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchIndexOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Index.SearchIndexOptions;
+
+ /**
+ * Verifies a SearchIndexOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchIndexOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchIndexOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Index.SearchIndexOptions;
+
+ /**
+ * Creates a plain object from a SearchIndexOptions message. Also converts values to other types if specified.
+ * @param message SearchIndexOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Index.SearchIndexOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchIndexOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchIndexOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Represents a FirestoreAdmin */
+ class FirestoreAdmin extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new FirestoreAdmin service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new FirestoreAdmin service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FirestoreAdmin;
+
+ /**
+ * Calls CreateIndex.
+ * @param request CreateIndexRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createIndex(request: google.firestore.admin.v1.ICreateIndexRequest, callback: google.firestore.admin.v1.FirestoreAdmin.CreateIndexCallback): void;
+
+ /**
+ * Calls CreateIndex.
+ * @param request CreateIndexRequest message or plain object
+ * @returns Promise
+ */
+ public createIndex(request: google.firestore.admin.v1.ICreateIndexRequest): Promise;
+
+ /**
+ * Calls ListIndexes.
+ * @param request ListIndexesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListIndexesResponse
+ */
+ public listIndexes(request: google.firestore.admin.v1.IListIndexesRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ListIndexesCallback): void;
+
+ /**
+ * Calls ListIndexes.
+ * @param request ListIndexesRequest message or plain object
+ * @returns Promise
+ */
+ public listIndexes(request: google.firestore.admin.v1.IListIndexesRequest): Promise;
+
+ /**
+ * Calls GetIndex.
+ * @param request GetIndexRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Index
+ */
+ public getIndex(request: google.firestore.admin.v1.IGetIndexRequest, callback: google.firestore.admin.v1.FirestoreAdmin.GetIndexCallback): void;
+
+ /**
+ * Calls GetIndex.
+ * @param request GetIndexRequest message or plain object
+ * @returns Promise
+ */
+ public getIndex(request: google.firestore.admin.v1.IGetIndexRequest): Promise;
+
+ /**
+ * Calls DeleteIndex.
+ * @param request DeleteIndexRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteIndex(request: google.firestore.admin.v1.IDeleteIndexRequest, callback: google.firestore.admin.v1.FirestoreAdmin.DeleteIndexCallback): void;
+
+ /**
+ * Calls DeleteIndex.
+ * @param request DeleteIndexRequest message or plain object
+ * @returns Promise
+ */
+ public deleteIndex(request: google.firestore.admin.v1.IDeleteIndexRequest): Promise;
+
+ /**
+ * Calls GetField.
+ * @param request GetFieldRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Field
+ */
+ public getField(request: google.firestore.admin.v1.IGetFieldRequest, callback: google.firestore.admin.v1.FirestoreAdmin.GetFieldCallback): void;
+
+ /**
+ * Calls GetField.
+ * @param request GetFieldRequest message or plain object
+ * @returns Promise
+ */
+ public getField(request: google.firestore.admin.v1.IGetFieldRequest): Promise;
+
+ /**
+ * Calls UpdateField.
+ * @param request UpdateFieldRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateField(request: google.firestore.admin.v1.IUpdateFieldRequest, callback: google.firestore.admin.v1.FirestoreAdmin.UpdateFieldCallback): void;
+
+ /**
+ * Calls UpdateField.
+ * @param request UpdateFieldRequest message or plain object
+ * @returns Promise
+ */
+ public updateField(request: google.firestore.admin.v1.IUpdateFieldRequest): Promise;
+
+ /**
+ * Calls ListFields.
+ * @param request ListFieldsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFieldsResponse
+ */
+ public listFields(request: google.firestore.admin.v1.IListFieldsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ListFieldsCallback): void;
+
+ /**
+ * Calls ListFields.
+ * @param request ListFieldsRequest message or plain object
+ * @returns Promise
+ */
+ public listFields(request: google.firestore.admin.v1.IListFieldsRequest): Promise;
+
+ /**
+ * Calls ExportDocuments.
+ * @param request ExportDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public exportDocuments(request: google.firestore.admin.v1.IExportDocumentsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ExportDocumentsCallback): void;
+
+ /**
+ * Calls ExportDocuments.
+ * @param request ExportDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public exportDocuments(request: google.firestore.admin.v1.IExportDocumentsRequest): Promise;
+
+ /**
+ * Calls ImportDocuments.
+ * @param request ImportDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public importDocuments(request: google.firestore.admin.v1.IImportDocumentsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ImportDocumentsCallback): void;
+
+ /**
+ * Calls ImportDocuments.
+ * @param request ImportDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public importDocuments(request: google.firestore.admin.v1.IImportDocumentsRequest): Promise;
+
+ /**
+ * Calls BulkDeleteDocuments.
+ * @param request BulkDeleteDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public bulkDeleteDocuments(request: google.firestore.admin.v1.IBulkDeleteDocumentsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocumentsCallback): void;
+
+ /**
+ * Calls BulkDeleteDocuments.
+ * @param request BulkDeleteDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public bulkDeleteDocuments(request: google.firestore.admin.v1.IBulkDeleteDocumentsRequest): Promise;
+
+ /**
+ * Calls CreateDatabase.
+ * @param request CreateDatabaseRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createDatabase(request: google.firestore.admin.v1.ICreateDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.CreateDatabaseCallback): void;
+
+ /**
+ * Calls CreateDatabase.
+ * @param request CreateDatabaseRequest message or plain object
+ * @returns Promise
+ */
+ public createDatabase(request: google.firestore.admin.v1.ICreateDatabaseRequest): Promise;
+
+ /**
+ * Calls GetDatabase.
+ * @param request GetDatabaseRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Database
+ */
+ public getDatabase(request: google.firestore.admin.v1.IGetDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.GetDatabaseCallback): void;
+
+ /**
+ * Calls GetDatabase.
+ * @param request GetDatabaseRequest message or plain object
+ * @returns Promise
+ */
+ public getDatabase(request: google.firestore.admin.v1.IGetDatabaseRequest): Promise;
+
+ /**
+ * Calls ListDatabases.
+ * @param request ListDatabasesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDatabasesResponse
+ */
+ public listDatabases(request: google.firestore.admin.v1.IListDatabasesRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ListDatabasesCallback): void;
+
+ /**
+ * Calls ListDatabases.
+ * @param request ListDatabasesRequest message or plain object
+ * @returns Promise
+ */
+ public listDatabases(request: google.firestore.admin.v1.IListDatabasesRequest): Promise;
+
+ /**
+ * Calls UpdateDatabase.
+ * @param request UpdateDatabaseRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateDatabase(request: google.firestore.admin.v1.IUpdateDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.UpdateDatabaseCallback): void;
+
+ /**
+ * Calls UpdateDatabase.
+ * @param request UpdateDatabaseRequest message or plain object
+ * @returns Promise
+ */
+ public updateDatabase(request: google.firestore.admin.v1.IUpdateDatabaseRequest): Promise;
+
+ /**
+ * Calls DeleteDatabase.
+ * @param request DeleteDatabaseRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteDatabase(request: google.firestore.admin.v1.IDeleteDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.DeleteDatabaseCallback): void;
+
+ /**
+ * Calls DeleteDatabase.
+ * @param request DeleteDatabaseRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDatabase(request: google.firestore.admin.v1.IDeleteDatabaseRequest): Promise;
+
+ /**
+ * Calls CreateUserCreds.
+ * @param request CreateUserCredsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and UserCreds
+ */
+ public createUserCreds(request: google.firestore.admin.v1.ICreateUserCredsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.CreateUserCredsCallback): void;
+
+ /**
+ * Calls CreateUserCreds.
+ * @param request CreateUserCredsRequest message or plain object
+ * @returns Promise
+ */
+ public createUserCreds(request: google.firestore.admin.v1.ICreateUserCredsRequest): Promise;
+
+ /**
+ * Calls GetUserCreds.
+ * @param request GetUserCredsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and UserCreds
+ */
+ public getUserCreds(request: google.firestore.admin.v1.IGetUserCredsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.GetUserCredsCallback): void;
+
+ /**
+ * Calls GetUserCreds.
+ * @param request GetUserCredsRequest message or plain object
+ * @returns Promise
+ */
+ public getUserCreds(request: google.firestore.admin.v1.IGetUserCredsRequest): Promise;
+
+ /**
+ * Calls ListUserCreds.
+ * @param request ListUserCredsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListUserCredsResponse
+ */
+ public listUserCreds(request: google.firestore.admin.v1.IListUserCredsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ListUserCredsCallback): void;
+
+ /**
+ * Calls ListUserCreds.
+ * @param request ListUserCredsRequest message or plain object
+ * @returns Promise
+ */
+ public listUserCreds(request: google.firestore.admin.v1.IListUserCredsRequest): Promise;
+
+ /**
+ * Calls EnableUserCreds.
+ * @param request EnableUserCredsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and UserCreds
+ */
+ public enableUserCreds(request: google.firestore.admin.v1.IEnableUserCredsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.EnableUserCredsCallback): void;
+
+ /**
+ * Calls EnableUserCreds.
+ * @param request EnableUserCredsRequest message or plain object
+ * @returns Promise
+ */
+ public enableUserCreds(request: google.firestore.admin.v1.IEnableUserCredsRequest): Promise;
+
+ /**
+ * Calls DisableUserCreds.
+ * @param request DisableUserCredsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and UserCreds
+ */
+ public disableUserCreds(request: google.firestore.admin.v1.IDisableUserCredsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.DisableUserCredsCallback): void;
+
+ /**
+ * Calls DisableUserCreds.
+ * @param request DisableUserCredsRequest message or plain object
+ * @returns Promise
+ */
+ public disableUserCreds(request: google.firestore.admin.v1.IDisableUserCredsRequest): Promise;
+
+ /**
+ * Calls ResetUserPassword.
+ * @param request ResetUserPasswordRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and UserCreds
+ */
+ public resetUserPassword(request: google.firestore.admin.v1.IResetUserPasswordRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ResetUserPasswordCallback): void;
+
+ /**
+ * Calls ResetUserPassword.
+ * @param request ResetUserPasswordRequest message or plain object
+ * @returns Promise
+ */
+ public resetUserPassword(request: google.firestore.admin.v1.IResetUserPasswordRequest): Promise;
+
+ /**
+ * Calls DeleteUserCreds.
+ * @param request DeleteUserCredsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteUserCreds(request: google.firestore.admin.v1.IDeleteUserCredsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.DeleteUserCredsCallback): void;
+
+ /**
+ * Calls DeleteUserCreds.
+ * @param request DeleteUserCredsRequest message or plain object
+ * @returns Promise
+ */
+ public deleteUserCreds(request: google.firestore.admin.v1.IDeleteUserCredsRequest): Promise;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Backup
+ */
+ public getBackup(request: google.firestore.admin.v1.IGetBackupRequest, callback: google.firestore.admin.v1.FirestoreAdmin.GetBackupCallback): void;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @returns Promise
+ */
+ public getBackup(request: google.firestore.admin.v1.IGetBackupRequest): Promise;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBackupsResponse
+ */
+ public listBackups(request: google.firestore.admin.v1.IListBackupsRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ListBackupsCallback): void;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @returns Promise
+ */
+ public listBackups(request: google.firestore.admin.v1.IListBackupsRequest): Promise;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteBackup(request: google.firestore.admin.v1.IDeleteBackupRequest, callback: google.firestore.admin.v1.FirestoreAdmin.DeleteBackupCallback): void;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBackup(request: google.firestore.admin.v1.IDeleteBackupRequest): Promise;
+
+ /**
+ * Calls RestoreDatabase.
+ * @param request RestoreDatabaseRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public restoreDatabase(request: google.firestore.admin.v1.IRestoreDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.RestoreDatabaseCallback): void;
+
+ /**
+ * Calls RestoreDatabase.
+ * @param request RestoreDatabaseRequest message or plain object
+ * @returns Promise
+ */
+ public restoreDatabase(request: google.firestore.admin.v1.IRestoreDatabaseRequest): Promise;
+
+ /**
+ * Calls CreateBackupSchedule.
+ * @param request CreateBackupScheduleRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BackupSchedule
+ */
+ public createBackupSchedule(request: google.firestore.admin.v1.ICreateBackupScheduleRequest, callback: google.firestore.admin.v1.FirestoreAdmin.CreateBackupScheduleCallback): void;
+
+ /**
+ * Calls CreateBackupSchedule.
+ * @param request CreateBackupScheduleRequest message or plain object
+ * @returns Promise
+ */
+ public createBackupSchedule(request: google.firestore.admin.v1.ICreateBackupScheduleRequest): Promise;
+
+ /**
+ * Calls GetBackupSchedule.
+ * @param request GetBackupScheduleRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BackupSchedule
+ */
+ public getBackupSchedule(request: google.firestore.admin.v1.IGetBackupScheduleRequest, callback: google.firestore.admin.v1.FirestoreAdmin.GetBackupScheduleCallback): void;
+
+ /**
+ * Calls GetBackupSchedule.
+ * @param request GetBackupScheduleRequest message or plain object
+ * @returns Promise
+ */
+ public getBackupSchedule(request: google.firestore.admin.v1.IGetBackupScheduleRequest): Promise;
+
+ /**
+ * Calls ListBackupSchedules.
+ * @param request ListBackupSchedulesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBackupSchedulesResponse
+ */
+ public listBackupSchedules(request: google.firestore.admin.v1.IListBackupSchedulesRequest, callback: google.firestore.admin.v1.FirestoreAdmin.ListBackupSchedulesCallback): void;
+
+ /**
+ * Calls ListBackupSchedules.
+ * @param request ListBackupSchedulesRequest message or plain object
+ * @returns Promise
+ */
+ public listBackupSchedules(request: google.firestore.admin.v1.IListBackupSchedulesRequest): Promise;
+
+ /**
+ * Calls UpdateBackupSchedule.
+ * @param request UpdateBackupScheduleRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BackupSchedule
+ */
+ public updateBackupSchedule(request: google.firestore.admin.v1.IUpdateBackupScheduleRequest, callback: google.firestore.admin.v1.FirestoreAdmin.UpdateBackupScheduleCallback): void;
+
+ /**
+ * Calls UpdateBackupSchedule.
+ * @param request UpdateBackupScheduleRequest message or plain object
+ * @returns Promise
+ */
+ public updateBackupSchedule(request: google.firestore.admin.v1.IUpdateBackupScheduleRequest): Promise;
+
+ /**
+ * Calls DeleteBackupSchedule.
+ * @param request DeleteBackupScheduleRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteBackupSchedule(request: google.firestore.admin.v1.IDeleteBackupScheduleRequest, callback: google.firestore.admin.v1.FirestoreAdmin.DeleteBackupScheduleCallback): void;
+
+ /**
+ * Calls DeleteBackupSchedule.
+ * @param request DeleteBackupScheduleRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBackupSchedule(request: google.firestore.admin.v1.IDeleteBackupScheduleRequest): Promise;
+
+ /**
+ * Calls CloneDatabase.
+ * @param request CloneDatabaseRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public cloneDatabase(request: google.firestore.admin.v1.ICloneDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.CloneDatabaseCallback): void;
+
+ /**
+ * Calls CloneDatabase.
+ * @param request CloneDatabaseRequest message or plain object
+ * @returns Promise
+ */
+ public cloneDatabase(request: google.firestore.admin.v1.ICloneDatabaseRequest): Promise;
+ }
+
+ namespace FirestoreAdmin {
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createIndex}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listIndexes}.
+ * @param error Error, if any
+ * @param [response] ListIndexesResponse
+ */
+ type ListIndexesCallback = (error: (Error|null), response?: google.firestore.admin.v1.ListIndexesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getIndex}.
+ * @param error Error, if any
+ * @param [response] Index
+ */
+ type GetIndexCallback = (error: (Error|null), response?: google.firestore.admin.v1.Index) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteIndex}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteIndexCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getField}.
+ * @param error Error, if any
+ * @param [response] Field
+ */
+ type GetFieldCallback = (error: (Error|null), response?: google.firestore.admin.v1.Field) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|updateField}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateFieldCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listFields}.
+ * @param error Error, if any
+ * @param [response] ListFieldsResponse
+ */
+ type ListFieldsCallback = (error: (Error|null), response?: google.firestore.admin.v1.ListFieldsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|exportDocuments}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ExportDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|importDocuments}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ImportDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|bulkDeleteDocuments}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type BulkDeleteDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createDatabase}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getDatabase}.
+ * @param error Error, if any
+ * @param [response] Database
+ */
+ type GetDatabaseCallback = (error: (Error|null), response?: google.firestore.admin.v1.Database) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listDatabases}.
+ * @param error Error, if any
+ * @param [response] ListDatabasesResponse
+ */
+ type ListDatabasesCallback = (error: (Error|null), response?: google.firestore.admin.v1.ListDatabasesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|updateDatabase}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteDatabase}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createUserCreds}.
+ * @param error Error, if any
+ * @param [response] UserCreds
+ */
+ type CreateUserCredsCallback = (error: (Error|null), response?: google.firestore.admin.v1.UserCreds) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getUserCreds}.
+ * @param error Error, if any
+ * @param [response] UserCreds
+ */
+ type GetUserCredsCallback = (error: (Error|null), response?: google.firestore.admin.v1.UserCreds) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listUserCreds}.
+ * @param error Error, if any
+ * @param [response] ListUserCredsResponse
+ */
+ type ListUserCredsCallback = (error: (Error|null), response?: google.firestore.admin.v1.ListUserCredsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|enableUserCreds}.
+ * @param error Error, if any
+ * @param [response] UserCreds
+ */
+ type EnableUserCredsCallback = (error: (Error|null), response?: google.firestore.admin.v1.UserCreds) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|disableUserCreds}.
+ * @param error Error, if any
+ * @param [response] UserCreds
+ */
+ type DisableUserCredsCallback = (error: (Error|null), response?: google.firestore.admin.v1.UserCreds) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|resetUserPassword}.
+ * @param error Error, if any
+ * @param [response] UserCreds
+ */
+ type ResetUserPasswordCallback = (error: (Error|null), response?: google.firestore.admin.v1.UserCreds) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteUserCreds}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteUserCredsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getBackup}.
+ * @param error Error, if any
+ * @param [response] Backup
+ */
+ type GetBackupCallback = (error: (Error|null), response?: google.firestore.admin.v1.Backup) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listBackups}.
+ * @param error Error, if any
+ * @param [response] ListBackupsResponse
+ */
+ type ListBackupsCallback = (error: (Error|null), response?: google.firestore.admin.v1.ListBackupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteBackup}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteBackupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|restoreDatabase}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RestoreDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createBackupSchedule}.
+ * @param error Error, if any
+ * @param [response] BackupSchedule
+ */
+ type CreateBackupScheduleCallback = (error: (Error|null), response?: google.firestore.admin.v1.BackupSchedule) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getBackupSchedule}.
+ * @param error Error, if any
+ * @param [response] BackupSchedule
+ */
+ type GetBackupScheduleCallback = (error: (Error|null), response?: google.firestore.admin.v1.BackupSchedule) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listBackupSchedules}.
+ * @param error Error, if any
+ * @param [response] ListBackupSchedulesResponse
+ */
+ type ListBackupSchedulesCallback = (error: (Error|null), response?: google.firestore.admin.v1.ListBackupSchedulesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|updateBackupSchedule}.
+ * @param error Error, if any
+ * @param [response] BackupSchedule
+ */
+ type UpdateBackupScheduleCallback = (error: (Error|null), response?: google.firestore.admin.v1.BackupSchedule) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteBackupSchedule}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteBackupScheduleCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|cloneDatabase}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CloneDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a ListDatabasesRequest. */
+ interface IListDatabasesRequest {
+
+ /** ListDatabasesRequest parent */
+ parent?: (string|null);
+
+ /** ListDatabasesRequest showDeleted */
+ showDeleted?: (boolean|null);
+ }
+
+ /** Represents a ListDatabasesRequest. */
+ class ListDatabasesRequest implements IListDatabasesRequest {
+
+ /**
+ * Constructs a new ListDatabasesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListDatabasesRequest);
+
+ /** ListDatabasesRequest parent. */
+ public parent: string;
+
+ /** ListDatabasesRequest showDeleted. */
+ public showDeleted: boolean;
+
+ /**
+ * Creates a new ListDatabasesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatabasesRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListDatabasesRequest): google.firestore.admin.v1.ListDatabasesRequest;
+
+ /**
+ * Encodes the specified ListDatabasesRequest message. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesRequest.verify|verify} messages.
+ * @param message ListDatabasesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListDatabasesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatabasesRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesRequest.verify|verify} messages.
+ * @param message ListDatabasesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListDatabasesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatabasesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatabasesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListDatabasesRequest;
+
+ /**
+ * Decodes a ListDatabasesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatabasesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListDatabasesRequest;
+
+ /**
+ * Verifies a ListDatabasesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDatabasesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatabasesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListDatabasesRequest;
+
+ /**
+ * Creates a plain object from a ListDatabasesRequest message. Also converts values to other types if specified.
+ * @param message ListDatabasesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListDatabasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatabasesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatabasesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateDatabaseRequest. */
+ interface ICreateDatabaseRequest {
+
+ /** CreateDatabaseRequest parent */
+ parent?: (string|null);
+
+ /** CreateDatabaseRequest database */
+ database?: (google.firestore.admin.v1.IDatabase|null);
+
+ /** CreateDatabaseRequest databaseId */
+ databaseId?: (string|null);
+ }
+
+ /** Represents a CreateDatabaseRequest. */
+ class CreateDatabaseRequest implements ICreateDatabaseRequest {
+
+ /**
+ * Constructs a new CreateDatabaseRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ICreateDatabaseRequest);
+
+ /** CreateDatabaseRequest parent. */
+ public parent: string;
+
+ /** CreateDatabaseRequest database. */
+ public database?: (google.firestore.admin.v1.IDatabase|null);
+
+ /** CreateDatabaseRequest databaseId. */
+ public databaseId: string;
+
+ /**
+ * Creates a new CreateDatabaseRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDatabaseRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ICreateDatabaseRequest): google.firestore.admin.v1.CreateDatabaseRequest;
+
+ /**
+ * Encodes the specified CreateDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseRequest.verify|verify} messages.
+ * @param message CreateDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ICreateDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseRequest.verify|verify} messages.
+ * @param message CreateDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ICreateDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDatabaseRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.CreateDatabaseRequest;
+
+ /**
+ * Decodes a CreateDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.CreateDatabaseRequest;
+
+ /**
+ * Verifies a CreateDatabaseRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDatabaseRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateDatabaseRequest;
+
+ /**
+ * Creates a plain object from a CreateDatabaseRequest message. Also converts values to other types if specified.
+ * @param message CreateDatabaseRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.CreateDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDatabaseRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDatabaseRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateDatabaseMetadata. */
+ interface ICreateDatabaseMetadata {
+ }
+
+ /** Represents a CreateDatabaseMetadata. */
+ class CreateDatabaseMetadata implements ICreateDatabaseMetadata {
+
+ /**
+ * Constructs a new CreateDatabaseMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ICreateDatabaseMetadata);
+
+ /**
+ * Creates a new CreateDatabaseMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDatabaseMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ICreateDatabaseMetadata): google.firestore.admin.v1.CreateDatabaseMetadata;
+
+ /**
+ * Encodes the specified CreateDatabaseMetadata message. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseMetadata.verify|verify} messages.
+ * @param message CreateDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ICreateDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDatabaseMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseMetadata.verify|verify} messages.
+ * @param message CreateDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ICreateDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDatabaseMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.CreateDatabaseMetadata;
+
+ /**
+ * Decodes a CreateDatabaseMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.CreateDatabaseMetadata;
+
+ /**
+ * Verifies a CreateDatabaseMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDatabaseMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateDatabaseMetadata;
+
+ /**
+ * Creates a plain object from a CreateDatabaseMetadata message. Also converts values to other types if specified.
+ * @param message CreateDatabaseMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.CreateDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDatabaseMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDatabaseMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatabasesResponse. */
+ interface IListDatabasesResponse {
+
+ /** ListDatabasesResponse databases */
+ databases?: (google.firestore.admin.v1.IDatabase[]|null);
+
+ /** ListDatabasesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListDatabasesResponse. */
+ class ListDatabasesResponse implements IListDatabasesResponse {
+
+ /**
+ * Constructs a new ListDatabasesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListDatabasesResponse);
+
+ /** ListDatabasesResponse databases. */
+ public databases: google.firestore.admin.v1.IDatabase[];
+
+ /** ListDatabasesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListDatabasesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatabasesResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListDatabasesResponse): google.firestore.admin.v1.ListDatabasesResponse;
+
+ /**
+ * Encodes the specified ListDatabasesResponse message. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesResponse.verify|verify} messages.
+ * @param message ListDatabasesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListDatabasesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatabasesResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesResponse.verify|verify} messages.
+ * @param message ListDatabasesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListDatabasesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatabasesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatabasesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListDatabasesResponse;
+
+ /**
+ * Decodes a ListDatabasesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatabasesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListDatabasesResponse;
+
+ /**
+ * Verifies a ListDatabasesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDatabasesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatabasesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListDatabasesResponse;
+
+ /**
+ * Creates a plain object from a ListDatabasesResponse message. Also converts values to other types if specified.
+ * @param message ListDatabasesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListDatabasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatabasesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatabasesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDatabaseRequest. */
+ interface IGetDatabaseRequest {
+
+ /** GetDatabaseRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetDatabaseRequest. */
+ class GetDatabaseRequest implements IGetDatabaseRequest {
+
+ /**
+ * Constructs a new GetDatabaseRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IGetDatabaseRequest);
+
+ /** GetDatabaseRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetDatabaseRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDatabaseRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IGetDatabaseRequest): google.firestore.admin.v1.GetDatabaseRequest;
+
+ /**
+ * Encodes the specified GetDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.GetDatabaseRequest.verify|verify} messages.
+ * @param message GetDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IGetDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.GetDatabaseRequest.verify|verify} messages.
+ * @param message GetDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IGetDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDatabaseRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.GetDatabaseRequest;
+
+ /**
+ * Decodes a GetDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.GetDatabaseRequest;
+
+ /**
+ * Verifies a GetDatabaseRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDatabaseRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.GetDatabaseRequest;
+
+ /**
+ * Creates a plain object from a GetDatabaseRequest message. Also converts values to other types if specified.
+ * @param message GetDatabaseRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.GetDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDatabaseRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDatabaseRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDatabaseRequest. */
+ interface IUpdateDatabaseRequest {
+
+ /** UpdateDatabaseRequest database */
+ database?: (google.firestore.admin.v1.IDatabase|null);
+
+ /** UpdateDatabaseRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateDatabaseRequest. */
+ class UpdateDatabaseRequest implements IUpdateDatabaseRequest {
+
+ /**
+ * Constructs a new UpdateDatabaseRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IUpdateDatabaseRequest);
+
+ /** UpdateDatabaseRequest database. */
+ public database?: (google.firestore.admin.v1.IDatabase|null);
+
+ /** UpdateDatabaseRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateDatabaseRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDatabaseRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IUpdateDatabaseRequest): google.firestore.admin.v1.UpdateDatabaseRequest;
+
+ /**
+ * Encodes the specified UpdateDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseRequest.verify|verify} messages.
+ * @param message UpdateDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IUpdateDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseRequest.verify|verify} messages.
+ * @param message UpdateDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IUpdateDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDatabaseRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.UpdateDatabaseRequest;
+
+ /**
+ * Decodes an UpdateDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.UpdateDatabaseRequest;
+
+ /**
+ * Verifies an UpdateDatabaseRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDatabaseRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.UpdateDatabaseRequest;
+
+ /**
+ * Creates a plain object from an UpdateDatabaseRequest message. Also converts values to other types if specified.
+ * @param message UpdateDatabaseRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.UpdateDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDatabaseRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDatabaseRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDatabaseMetadata. */
+ interface IUpdateDatabaseMetadata {
+ }
+
+ /** Represents an UpdateDatabaseMetadata. */
+ class UpdateDatabaseMetadata implements IUpdateDatabaseMetadata {
+
+ /**
+ * Constructs a new UpdateDatabaseMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IUpdateDatabaseMetadata);
+
+ /**
+ * Creates a new UpdateDatabaseMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDatabaseMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IUpdateDatabaseMetadata): google.firestore.admin.v1.UpdateDatabaseMetadata;
+
+ /**
+ * Encodes the specified UpdateDatabaseMetadata message. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseMetadata.verify|verify} messages.
+ * @param message UpdateDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IUpdateDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDatabaseMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseMetadata.verify|verify} messages.
+ * @param message UpdateDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IUpdateDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDatabaseMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.UpdateDatabaseMetadata;
+
+ /**
+ * Decodes an UpdateDatabaseMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.UpdateDatabaseMetadata;
+
+ /**
+ * Verifies an UpdateDatabaseMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDatabaseMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.UpdateDatabaseMetadata;
+
+ /**
+ * Creates a plain object from an UpdateDatabaseMetadata message. Also converts values to other types if specified.
+ * @param message UpdateDatabaseMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.UpdateDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDatabaseMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDatabaseMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDatabaseRequest. */
+ interface IDeleteDatabaseRequest {
+
+ /** DeleteDatabaseRequest name */
+ name?: (string|null);
+
+ /** DeleteDatabaseRequest etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a DeleteDatabaseRequest. */
+ class DeleteDatabaseRequest implements IDeleteDatabaseRequest {
+
+ /**
+ * Constructs a new DeleteDatabaseRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDeleteDatabaseRequest);
+
+ /** DeleteDatabaseRequest name. */
+ public name: string;
+
+ /** DeleteDatabaseRequest etag. */
+ public etag: string;
+
+ /**
+ * Creates a new DeleteDatabaseRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDatabaseRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDeleteDatabaseRequest): google.firestore.admin.v1.DeleteDatabaseRequest;
+
+ /**
+ * Encodes the specified DeleteDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.DeleteDatabaseRequest.verify|verify} messages.
+ * @param message DeleteDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDeleteDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DeleteDatabaseRequest.verify|verify} messages.
+ * @param message DeleteDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDeleteDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDatabaseRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DeleteDatabaseRequest;
+
+ /**
+ * Decodes a DeleteDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DeleteDatabaseRequest;
+
+ /**
+ * Verifies a DeleteDatabaseRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDatabaseRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DeleteDatabaseRequest;
+
+ /**
+ * Creates a plain object from a DeleteDatabaseRequest message. Also converts values to other types if specified.
+ * @param message DeleteDatabaseRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DeleteDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDatabaseRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDatabaseRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDatabaseMetadata. */
+ interface IDeleteDatabaseMetadata {
+ }
+
+ /** Represents a DeleteDatabaseMetadata. */
+ class DeleteDatabaseMetadata implements IDeleteDatabaseMetadata {
+
+ /**
+ * Constructs a new DeleteDatabaseMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDeleteDatabaseMetadata);
+
+ /**
+ * Creates a new DeleteDatabaseMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDatabaseMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDeleteDatabaseMetadata): google.firestore.admin.v1.DeleteDatabaseMetadata;
+
+ /**
+ * Encodes the specified DeleteDatabaseMetadata message. Does not implicitly {@link google.firestore.admin.v1.DeleteDatabaseMetadata.verify|verify} messages.
+ * @param message DeleteDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDeleteDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDatabaseMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DeleteDatabaseMetadata.verify|verify} messages.
+ * @param message DeleteDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDeleteDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDatabaseMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DeleteDatabaseMetadata;
+
+ /**
+ * Decodes a DeleteDatabaseMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DeleteDatabaseMetadata;
+
+ /**
+ * Verifies a DeleteDatabaseMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDatabaseMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DeleteDatabaseMetadata;
+
+ /**
+ * Creates a plain object from a DeleteDatabaseMetadata message. Also converts values to other types if specified.
+ * @param message DeleteDatabaseMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DeleteDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDatabaseMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDatabaseMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateUserCredsRequest. */
+ interface ICreateUserCredsRequest {
+
+ /** CreateUserCredsRequest parent */
+ parent?: (string|null);
+
+ /** CreateUserCredsRequest userCreds */
+ userCreds?: (google.firestore.admin.v1.IUserCreds|null);
+
+ /** CreateUserCredsRequest userCredsId */
+ userCredsId?: (string|null);
+ }
+
+ /** Represents a CreateUserCredsRequest. */
+ class CreateUserCredsRequest implements ICreateUserCredsRequest {
+
+ /**
+ * Constructs a new CreateUserCredsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ICreateUserCredsRequest);
+
+ /** CreateUserCredsRequest parent. */
+ public parent: string;
+
+ /** CreateUserCredsRequest userCreds. */
+ public userCreds?: (google.firestore.admin.v1.IUserCreds|null);
+
+ /** CreateUserCredsRequest userCredsId. */
+ public userCredsId: string;
+
+ /**
+ * Creates a new CreateUserCredsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateUserCredsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ICreateUserCredsRequest): google.firestore.admin.v1.CreateUserCredsRequest;
+
+ /**
+ * Encodes the specified CreateUserCredsRequest message. Does not implicitly {@link google.firestore.admin.v1.CreateUserCredsRequest.verify|verify} messages.
+ * @param message CreateUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ICreateUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateUserCredsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CreateUserCredsRequest.verify|verify} messages.
+ * @param message CreateUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ICreateUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateUserCredsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.CreateUserCredsRequest;
+
+ /**
+ * Decodes a CreateUserCredsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.CreateUserCredsRequest;
+
+ /**
+ * Verifies a CreateUserCredsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateUserCredsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateUserCredsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateUserCredsRequest;
+
+ /**
+ * Creates a plain object from a CreateUserCredsRequest message. Also converts values to other types if specified.
+ * @param message CreateUserCredsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.CreateUserCredsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateUserCredsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateUserCredsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetUserCredsRequest. */
+ interface IGetUserCredsRequest {
+
+ /** GetUserCredsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetUserCredsRequest. */
+ class GetUserCredsRequest implements IGetUserCredsRequest {
+
+ /**
+ * Constructs a new GetUserCredsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IGetUserCredsRequest);
+
+ /** GetUserCredsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetUserCredsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetUserCredsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IGetUserCredsRequest): google.firestore.admin.v1.GetUserCredsRequest;
+
+ /**
+ * Encodes the specified GetUserCredsRequest message. Does not implicitly {@link google.firestore.admin.v1.GetUserCredsRequest.verify|verify} messages.
+ * @param message GetUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IGetUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetUserCredsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.GetUserCredsRequest.verify|verify} messages.
+ * @param message GetUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IGetUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetUserCredsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.GetUserCredsRequest;
+
+ /**
+ * Decodes a GetUserCredsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.GetUserCredsRequest;
+
+ /**
+ * Verifies a GetUserCredsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetUserCredsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetUserCredsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.GetUserCredsRequest;
+
+ /**
+ * Creates a plain object from a GetUserCredsRequest message. Also converts values to other types if specified.
+ * @param message GetUserCredsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.GetUserCredsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetUserCredsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetUserCredsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListUserCredsRequest. */
+ interface IListUserCredsRequest {
+
+ /** ListUserCredsRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a ListUserCredsRequest. */
+ class ListUserCredsRequest implements IListUserCredsRequest {
+
+ /**
+ * Constructs a new ListUserCredsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListUserCredsRequest);
+
+ /** ListUserCredsRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new ListUserCredsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListUserCredsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListUserCredsRequest): google.firestore.admin.v1.ListUserCredsRequest;
+
+ /**
+ * Encodes the specified ListUserCredsRequest message. Does not implicitly {@link google.firestore.admin.v1.ListUserCredsRequest.verify|verify} messages.
+ * @param message ListUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListUserCredsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListUserCredsRequest.verify|verify} messages.
+ * @param message ListUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListUserCredsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListUserCredsRequest;
+
+ /**
+ * Decodes a ListUserCredsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListUserCredsRequest;
+
+ /**
+ * Verifies a ListUserCredsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListUserCredsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListUserCredsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListUserCredsRequest;
+
+ /**
+ * Creates a plain object from a ListUserCredsRequest message. Also converts values to other types if specified.
+ * @param message ListUserCredsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListUserCredsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListUserCredsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListUserCredsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListUserCredsResponse. */
+ interface IListUserCredsResponse {
+
+ /** ListUserCredsResponse userCreds */
+ userCreds?: (google.firestore.admin.v1.IUserCreds[]|null);
+ }
+
+ /** Represents a ListUserCredsResponse. */
+ class ListUserCredsResponse implements IListUserCredsResponse {
+
+ /**
+ * Constructs a new ListUserCredsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListUserCredsResponse);
+
+ /** ListUserCredsResponse userCreds. */
+ public userCreds: google.firestore.admin.v1.IUserCreds[];
+
+ /**
+ * Creates a new ListUserCredsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListUserCredsResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListUserCredsResponse): google.firestore.admin.v1.ListUserCredsResponse;
+
+ /**
+ * Encodes the specified ListUserCredsResponse message. Does not implicitly {@link google.firestore.admin.v1.ListUserCredsResponse.verify|verify} messages.
+ * @param message ListUserCredsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListUserCredsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListUserCredsResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListUserCredsResponse.verify|verify} messages.
+ * @param message ListUserCredsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListUserCredsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListUserCredsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListUserCredsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListUserCredsResponse;
+
+ /**
+ * Decodes a ListUserCredsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListUserCredsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListUserCredsResponse;
+
+ /**
+ * Verifies a ListUserCredsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListUserCredsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListUserCredsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListUserCredsResponse;
+
+ /**
+ * Creates a plain object from a ListUserCredsResponse message. Also converts values to other types if specified.
+ * @param message ListUserCredsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListUserCredsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListUserCredsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListUserCredsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnableUserCredsRequest. */
+ interface IEnableUserCredsRequest {
+
+ /** EnableUserCredsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an EnableUserCredsRequest. */
+ class EnableUserCredsRequest implements IEnableUserCredsRequest {
+
+ /**
+ * Constructs a new EnableUserCredsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IEnableUserCredsRequest);
+
+ /** EnableUserCredsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new EnableUserCredsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnableUserCredsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IEnableUserCredsRequest): google.firestore.admin.v1.EnableUserCredsRequest;
+
+ /**
+ * Encodes the specified EnableUserCredsRequest message. Does not implicitly {@link google.firestore.admin.v1.EnableUserCredsRequest.verify|verify} messages.
+ * @param message EnableUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IEnableUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnableUserCredsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.EnableUserCredsRequest.verify|verify} messages.
+ * @param message EnableUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IEnableUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnableUserCredsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnableUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.EnableUserCredsRequest;
+
+ /**
+ * Decodes an EnableUserCredsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnableUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.EnableUserCredsRequest;
+
+ /**
+ * Verifies an EnableUserCredsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnableUserCredsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnableUserCredsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.EnableUserCredsRequest;
+
+ /**
+ * Creates a plain object from an EnableUserCredsRequest message. Also converts values to other types if specified.
+ * @param message EnableUserCredsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.EnableUserCredsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnableUserCredsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnableUserCredsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableUserCredsRequest. */
+ interface IDisableUserCredsRequest {
+
+ /** DisableUserCredsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DisableUserCredsRequest. */
+ class DisableUserCredsRequest implements IDisableUserCredsRequest {
+
+ /**
+ * Constructs a new DisableUserCredsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDisableUserCredsRequest);
+
+ /** DisableUserCredsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DisableUserCredsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableUserCredsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDisableUserCredsRequest): google.firestore.admin.v1.DisableUserCredsRequest;
+
+ /**
+ * Encodes the specified DisableUserCredsRequest message. Does not implicitly {@link google.firestore.admin.v1.DisableUserCredsRequest.verify|verify} messages.
+ * @param message DisableUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDisableUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableUserCredsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DisableUserCredsRequest.verify|verify} messages.
+ * @param message DisableUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDisableUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableUserCredsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DisableUserCredsRequest;
+
+ /**
+ * Decodes a DisableUserCredsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DisableUserCredsRequest;
+
+ /**
+ * Verifies a DisableUserCredsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DisableUserCredsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableUserCredsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DisableUserCredsRequest;
+
+ /**
+ * Creates a plain object from a DisableUserCredsRequest message. Also converts values to other types if specified.
+ * @param message DisableUserCredsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DisableUserCredsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableUserCredsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableUserCredsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResetUserPasswordRequest. */
+ interface IResetUserPasswordRequest {
+
+ /** ResetUserPasswordRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a ResetUserPasswordRequest. */
+ class ResetUserPasswordRequest implements IResetUserPasswordRequest {
+
+ /**
+ * Constructs a new ResetUserPasswordRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IResetUserPasswordRequest);
+
+ /** ResetUserPasswordRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new ResetUserPasswordRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResetUserPasswordRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IResetUserPasswordRequest): google.firestore.admin.v1.ResetUserPasswordRequest;
+
+ /**
+ * Encodes the specified ResetUserPasswordRequest message. Does not implicitly {@link google.firestore.admin.v1.ResetUserPasswordRequest.verify|verify} messages.
+ * @param message ResetUserPasswordRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IResetUserPasswordRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResetUserPasswordRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ResetUserPasswordRequest.verify|verify} messages.
+ * @param message ResetUserPasswordRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IResetUserPasswordRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResetUserPasswordRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResetUserPasswordRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ResetUserPasswordRequest;
+
+ /**
+ * Decodes a ResetUserPasswordRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResetUserPasswordRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ResetUserPasswordRequest;
+
+ /**
+ * Verifies a ResetUserPasswordRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResetUserPasswordRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResetUserPasswordRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ResetUserPasswordRequest;
+
+ /**
+ * Creates a plain object from a ResetUserPasswordRequest message. Also converts values to other types if specified.
+ * @param message ResetUserPasswordRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ResetUserPasswordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResetUserPasswordRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResetUserPasswordRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteUserCredsRequest. */
+ interface IDeleteUserCredsRequest {
+
+ /** DeleteUserCredsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteUserCredsRequest. */
+ class DeleteUserCredsRequest implements IDeleteUserCredsRequest {
+
+ /**
+ * Constructs a new DeleteUserCredsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDeleteUserCredsRequest);
+
+ /** DeleteUserCredsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteUserCredsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteUserCredsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDeleteUserCredsRequest): google.firestore.admin.v1.DeleteUserCredsRequest;
+
+ /**
+ * Encodes the specified DeleteUserCredsRequest message. Does not implicitly {@link google.firestore.admin.v1.DeleteUserCredsRequest.verify|verify} messages.
+ * @param message DeleteUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDeleteUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteUserCredsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DeleteUserCredsRequest.verify|verify} messages.
+ * @param message DeleteUserCredsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDeleteUserCredsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteUserCredsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DeleteUserCredsRequest;
+
+ /**
+ * Decodes a DeleteUserCredsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteUserCredsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DeleteUserCredsRequest;
+
+ /**
+ * Verifies a DeleteUserCredsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteUserCredsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteUserCredsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DeleteUserCredsRequest;
+
+ /**
+ * Creates a plain object from a DeleteUserCredsRequest message. Also converts values to other types if specified.
+ * @param message DeleteUserCredsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DeleteUserCredsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteUserCredsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteUserCredsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateBackupScheduleRequest. */
+ interface ICreateBackupScheduleRequest {
+
+ /** CreateBackupScheduleRequest parent */
+ parent?: (string|null);
+
+ /** CreateBackupScheduleRequest backupSchedule */
+ backupSchedule?: (google.firestore.admin.v1.IBackupSchedule|null);
+ }
+
+ /** Represents a CreateBackupScheduleRequest. */
+ class CreateBackupScheduleRequest implements ICreateBackupScheduleRequest {
+
+ /**
+ * Constructs a new CreateBackupScheduleRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ICreateBackupScheduleRequest);
+
+ /** CreateBackupScheduleRequest parent. */
+ public parent: string;
+
+ /** CreateBackupScheduleRequest backupSchedule. */
+ public backupSchedule?: (google.firestore.admin.v1.IBackupSchedule|null);
+
+ /**
+ * Creates a new CreateBackupScheduleRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBackupScheduleRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ICreateBackupScheduleRequest): google.firestore.admin.v1.CreateBackupScheduleRequest;
+
+ /**
+ * Encodes the specified CreateBackupScheduleRequest message. Does not implicitly {@link google.firestore.admin.v1.CreateBackupScheduleRequest.verify|verify} messages.
+ * @param message CreateBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ICreateBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBackupScheduleRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CreateBackupScheduleRequest.verify|verify} messages.
+ * @param message CreateBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ICreateBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBackupScheduleRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.CreateBackupScheduleRequest;
+
+ /**
+ * Decodes a CreateBackupScheduleRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.CreateBackupScheduleRequest;
+
+ /**
+ * Verifies a CreateBackupScheduleRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateBackupScheduleRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBackupScheduleRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateBackupScheduleRequest;
+
+ /**
+ * Creates a plain object from a CreateBackupScheduleRequest message. Also converts values to other types if specified.
+ * @param message CreateBackupScheduleRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.CreateBackupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBackupScheduleRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBackupScheduleRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBackupScheduleRequest. */
+ interface IGetBackupScheduleRequest {
+
+ /** GetBackupScheduleRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBackupScheduleRequest. */
+ class GetBackupScheduleRequest implements IGetBackupScheduleRequest {
+
+ /**
+ * Constructs a new GetBackupScheduleRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IGetBackupScheduleRequest);
+
+ /** GetBackupScheduleRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBackupScheduleRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBackupScheduleRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IGetBackupScheduleRequest): google.firestore.admin.v1.GetBackupScheduleRequest;
+
+ /**
+ * Encodes the specified GetBackupScheduleRequest message. Does not implicitly {@link google.firestore.admin.v1.GetBackupScheduleRequest.verify|verify} messages.
+ * @param message GetBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IGetBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBackupScheduleRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.GetBackupScheduleRequest.verify|verify} messages.
+ * @param message GetBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IGetBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBackupScheduleRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.GetBackupScheduleRequest;
+
+ /**
+ * Decodes a GetBackupScheduleRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.GetBackupScheduleRequest;
+
+ /**
+ * Verifies a GetBackupScheduleRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBackupScheduleRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBackupScheduleRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.GetBackupScheduleRequest;
+
+ /**
+ * Creates a plain object from a GetBackupScheduleRequest message. Also converts values to other types if specified.
+ * @param message GetBackupScheduleRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.GetBackupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBackupScheduleRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBackupScheduleRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBackupScheduleRequest. */
+ interface IUpdateBackupScheduleRequest {
+
+ /** UpdateBackupScheduleRequest backupSchedule */
+ backupSchedule?: (google.firestore.admin.v1.IBackupSchedule|null);
+
+ /** UpdateBackupScheduleRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateBackupScheduleRequest. */
+ class UpdateBackupScheduleRequest implements IUpdateBackupScheduleRequest {
+
+ /**
+ * Constructs a new UpdateBackupScheduleRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IUpdateBackupScheduleRequest);
+
+ /** UpdateBackupScheduleRequest backupSchedule. */
+ public backupSchedule?: (google.firestore.admin.v1.IBackupSchedule|null);
+
+ /** UpdateBackupScheduleRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateBackupScheduleRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBackupScheduleRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IUpdateBackupScheduleRequest): google.firestore.admin.v1.UpdateBackupScheduleRequest;
+
+ /**
+ * Encodes the specified UpdateBackupScheduleRequest message. Does not implicitly {@link google.firestore.admin.v1.UpdateBackupScheduleRequest.verify|verify} messages.
+ * @param message UpdateBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IUpdateBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBackupScheduleRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UpdateBackupScheduleRequest.verify|verify} messages.
+ * @param message UpdateBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IUpdateBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBackupScheduleRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.UpdateBackupScheduleRequest;
+
+ /**
+ * Decodes an UpdateBackupScheduleRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.UpdateBackupScheduleRequest;
+
+ /**
+ * Verifies an UpdateBackupScheduleRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateBackupScheduleRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBackupScheduleRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.UpdateBackupScheduleRequest;
+
+ /**
+ * Creates a plain object from an UpdateBackupScheduleRequest message. Also converts values to other types if specified.
+ * @param message UpdateBackupScheduleRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.UpdateBackupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBackupScheduleRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBackupScheduleRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupSchedulesRequest. */
+ interface IListBackupSchedulesRequest {
+
+ /** ListBackupSchedulesRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a ListBackupSchedulesRequest. */
+ class ListBackupSchedulesRequest implements IListBackupSchedulesRequest {
+
+ /**
+ * Constructs a new ListBackupSchedulesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListBackupSchedulesRequest);
+
+ /** ListBackupSchedulesRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new ListBackupSchedulesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupSchedulesRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListBackupSchedulesRequest): google.firestore.admin.v1.ListBackupSchedulesRequest;
+
+ /**
+ * Encodes the specified ListBackupSchedulesRequest message. Does not implicitly {@link google.firestore.admin.v1.ListBackupSchedulesRequest.verify|verify} messages.
+ * @param message ListBackupSchedulesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListBackupSchedulesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupSchedulesRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListBackupSchedulesRequest.verify|verify} messages.
+ * @param message ListBackupSchedulesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListBackupSchedulesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupSchedulesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupSchedulesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListBackupSchedulesRequest;
+
+ /**
+ * Decodes a ListBackupSchedulesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupSchedulesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListBackupSchedulesRequest;
+
+ /**
+ * Verifies a ListBackupSchedulesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupSchedulesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupSchedulesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListBackupSchedulesRequest;
+
+ /**
+ * Creates a plain object from a ListBackupSchedulesRequest message. Also converts values to other types if specified.
+ * @param message ListBackupSchedulesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListBackupSchedulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupSchedulesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupSchedulesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupSchedulesResponse. */
+ interface IListBackupSchedulesResponse {
+
+ /** ListBackupSchedulesResponse backupSchedules */
+ backupSchedules?: (google.firestore.admin.v1.IBackupSchedule[]|null);
+ }
+
+ /** Represents a ListBackupSchedulesResponse. */
+ class ListBackupSchedulesResponse implements IListBackupSchedulesResponse {
+
+ /**
+ * Constructs a new ListBackupSchedulesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListBackupSchedulesResponse);
+
+ /** ListBackupSchedulesResponse backupSchedules. */
+ public backupSchedules: google.firestore.admin.v1.IBackupSchedule[];
+
+ /**
+ * Creates a new ListBackupSchedulesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupSchedulesResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListBackupSchedulesResponse): google.firestore.admin.v1.ListBackupSchedulesResponse;
+
+ /**
+ * Encodes the specified ListBackupSchedulesResponse message. Does not implicitly {@link google.firestore.admin.v1.ListBackupSchedulesResponse.verify|verify} messages.
+ * @param message ListBackupSchedulesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListBackupSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupSchedulesResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListBackupSchedulesResponse.verify|verify} messages.
+ * @param message ListBackupSchedulesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListBackupSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupSchedulesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupSchedulesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListBackupSchedulesResponse;
+
+ /**
+ * Decodes a ListBackupSchedulesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupSchedulesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListBackupSchedulesResponse;
+
+ /**
+ * Verifies a ListBackupSchedulesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupSchedulesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupSchedulesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListBackupSchedulesResponse;
+
+ /**
+ * Creates a plain object from a ListBackupSchedulesResponse message. Also converts values to other types if specified.
+ * @param message ListBackupSchedulesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListBackupSchedulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupSchedulesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupSchedulesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBackupScheduleRequest. */
+ interface IDeleteBackupScheduleRequest {
+
+ /** DeleteBackupScheduleRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteBackupScheduleRequest. */
+ class DeleteBackupScheduleRequest implements IDeleteBackupScheduleRequest {
+
+ /**
+ * Constructs a new DeleteBackupScheduleRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDeleteBackupScheduleRequest);
+
+ /** DeleteBackupScheduleRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteBackupScheduleRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBackupScheduleRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDeleteBackupScheduleRequest): google.firestore.admin.v1.DeleteBackupScheduleRequest;
+
+ /**
+ * Encodes the specified DeleteBackupScheduleRequest message. Does not implicitly {@link google.firestore.admin.v1.DeleteBackupScheduleRequest.verify|verify} messages.
+ * @param message DeleteBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDeleteBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBackupScheduleRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DeleteBackupScheduleRequest.verify|verify} messages.
+ * @param message DeleteBackupScheduleRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDeleteBackupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBackupScheduleRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DeleteBackupScheduleRequest;
+
+ /**
+ * Decodes a DeleteBackupScheduleRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBackupScheduleRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DeleteBackupScheduleRequest;
+
+ /**
+ * Verifies a DeleteBackupScheduleRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBackupScheduleRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBackupScheduleRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DeleteBackupScheduleRequest;
+
+ /**
+ * Creates a plain object from a DeleteBackupScheduleRequest message. Also converts values to other types if specified.
+ * @param message DeleteBackupScheduleRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DeleteBackupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBackupScheduleRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBackupScheduleRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateIndexRequest. */
+ interface ICreateIndexRequest {
+
+ /** CreateIndexRequest parent */
+ parent?: (string|null);
+
+ /** CreateIndexRequest index */
+ index?: (google.firestore.admin.v1.IIndex|null);
+ }
+
+ /** Represents a CreateIndexRequest. */
+ class CreateIndexRequest implements ICreateIndexRequest {
+
+ /**
+ * Constructs a new CreateIndexRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ICreateIndexRequest);
+
+ /** CreateIndexRequest parent. */
+ public parent: string;
+
+ /** CreateIndexRequest index. */
+ public index?: (google.firestore.admin.v1.IIndex|null);
+
+ /**
+ * Creates a new CreateIndexRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateIndexRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ICreateIndexRequest): google.firestore.admin.v1.CreateIndexRequest;
+
+ /**
+ * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.firestore.admin.v1.CreateIndexRequest.verify|verify} messages.
+ * @param message CreateIndexRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CreateIndexRequest.verify|verify} messages.
+ * @param message CreateIndexRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateIndexRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateIndexRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.CreateIndexRequest;
+
+ /**
+ * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateIndexRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.CreateIndexRequest;
+
+ /**
+ * Verifies a CreateIndexRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateIndexRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateIndexRequest;
+
+ /**
+ * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified.
+ * @param message CreateIndexRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateIndexRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateIndexRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListIndexesRequest. */
+ interface IListIndexesRequest {
+
+ /** ListIndexesRequest parent */
+ parent?: (string|null);
+
+ /** ListIndexesRequest filter */
+ filter?: (string|null);
+
+ /** ListIndexesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListIndexesRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListIndexesRequest. */
+ class ListIndexesRequest implements IListIndexesRequest {
+
+ /**
+ * Constructs a new ListIndexesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListIndexesRequest);
+
+ /** ListIndexesRequest parent. */
+ public parent: string;
+
+ /** ListIndexesRequest filter. */
+ public filter: string;
+
+ /** ListIndexesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListIndexesRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListIndexesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListIndexesRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListIndexesRequest): google.firestore.admin.v1.ListIndexesRequest;
+
+ /**
+ * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.firestore.admin.v1.ListIndexesRequest.verify|verify} messages.
+ * @param message ListIndexesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListIndexesRequest.verify|verify} messages.
+ * @param message ListIndexesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListIndexesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListIndexesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListIndexesRequest;
+
+ /**
+ * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListIndexesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListIndexesRequest;
+
+ /**
+ * Verifies a ListIndexesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListIndexesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListIndexesRequest;
+
+ /**
+ * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified.
+ * @param message ListIndexesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListIndexesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListIndexesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListIndexesResponse. */
+ interface IListIndexesResponse {
+
+ /** ListIndexesResponse indexes */
+ indexes?: (google.firestore.admin.v1.IIndex[]|null);
+
+ /** ListIndexesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListIndexesResponse. */
+ class ListIndexesResponse implements IListIndexesResponse {
+
+ /**
+ * Constructs a new ListIndexesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListIndexesResponse);
+
+ /** ListIndexesResponse indexes. */
+ public indexes: google.firestore.admin.v1.IIndex[];
+
+ /** ListIndexesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListIndexesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListIndexesResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListIndexesResponse): google.firestore.admin.v1.ListIndexesResponse;
+
+ /**
+ * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.firestore.admin.v1.ListIndexesResponse.verify|verify} messages.
+ * @param message ListIndexesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListIndexesResponse.verify|verify} messages.
+ * @param message ListIndexesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListIndexesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListIndexesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListIndexesResponse;
+
+ /**
+ * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListIndexesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListIndexesResponse;
+
+ /**
+ * Verifies a ListIndexesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListIndexesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListIndexesResponse;
+
+ /**
+ * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified.
+ * @param message ListIndexesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListIndexesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListIndexesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetIndexRequest. */
+ interface IGetIndexRequest {
+
+ /** GetIndexRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetIndexRequest. */
+ class GetIndexRequest implements IGetIndexRequest {
+
+ /**
+ * Constructs a new GetIndexRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IGetIndexRequest);
+
+ /** GetIndexRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetIndexRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetIndexRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IGetIndexRequest): google.firestore.admin.v1.GetIndexRequest;
+
+ /**
+ * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.firestore.admin.v1.GetIndexRequest.verify|verify} messages.
+ * @param message GetIndexRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.GetIndexRequest.verify|verify} messages.
+ * @param message GetIndexRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetIndexRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetIndexRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.GetIndexRequest;
+
+ /**
+ * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetIndexRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.GetIndexRequest;
+
+ /**
+ * Verifies a GetIndexRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetIndexRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.GetIndexRequest;
+
+ /**
+ * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified.
+ * @param message GetIndexRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetIndexRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetIndexRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteIndexRequest. */
+ interface IDeleteIndexRequest {
+
+ /** DeleteIndexRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteIndexRequest. */
+ class DeleteIndexRequest implements IDeleteIndexRequest {
+
+ /**
+ * Constructs a new DeleteIndexRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDeleteIndexRequest);
+
+ /** DeleteIndexRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteIndexRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteIndexRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDeleteIndexRequest): google.firestore.admin.v1.DeleteIndexRequest;
+
+ /**
+ * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.firestore.admin.v1.DeleteIndexRequest.verify|verify} messages.
+ * @param message DeleteIndexRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DeleteIndexRequest.verify|verify} messages.
+ * @param message DeleteIndexRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteIndexRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteIndexRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DeleteIndexRequest;
+
+ /**
+ * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteIndexRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DeleteIndexRequest;
+
+ /**
+ * Verifies a DeleteIndexRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteIndexRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DeleteIndexRequest;
+
+ /**
+ * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified.
+ * @param message DeleteIndexRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteIndexRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteIndexRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateFieldRequest. */
+ interface IUpdateFieldRequest {
+
+ /** UpdateFieldRequest field */
+ field?: (google.firestore.admin.v1.IField|null);
+
+ /** UpdateFieldRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateFieldRequest. */
+ class UpdateFieldRequest implements IUpdateFieldRequest {
+
+ /**
+ * Constructs a new UpdateFieldRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IUpdateFieldRequest);
+
+ /** UpdateFieldRequest field. */
+ public field?: (google.firestore.admin.v1.IField|null);
+
+ /** UpdateFieldRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateFieldRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateFieldRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IUpdateFieldRequest): google.firestore.admin.v1.UpdateFieldRequest;
+
+ /**
+ * Encodes the specified UpdateFieldRequest message. Does not implicitly {@link google.firestore.admin.v1.UpdateFieldRequest.verify|verify} messages.
+ * @param message UpdateFieldRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IUpdateFieldRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateFieldRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UpdateFieldRequest.verify|verify} messages.
+ * @param message UpdateFieldRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IUpdateFieldRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateFieldRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateFieldRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.UpdateFieldRequest;
+
+ /**
+ * Decodes an UpdateFieldRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateFieldRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.UpdateFieldRequest;
+
+ /**
+ * Verifies an UpdateFieldRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateFieldRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateFieldRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.UpdateFieldRequest;
+
+ /**
+ * Creates a plain object from an UpdateFieldRequest message. Also converts values to other types if specified.
+ * @param message UpdateFieldRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.UpdateFieldRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateFieldRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateFieldRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetFieldRequest. */
+ interface IGetFieldRequest {
+
+ /** GetFieldRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFieldRequest. */
+ class GetFieldRequest implements IGetFieldRequest {
+
+ /**
+ * Constructs a new GetFieldRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IGetFieldRequest);
+
+ /** GetFieldRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFieldRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFieldRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IGetFieldRequest): google.firestore.admin.v1.GetFieldRequest;
+
+ /**
+ * Encodes the specified GetFieldRequest message. Does not implicitly {@link google.firestore.admin.v1.GetFieldRequest.verify|verify} messages.
+ * @param message GetFieldRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IGetFieldRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFieldRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.GetFieldRequest.verify|verify} messages.
+ * @param message GetFieldRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IGetFieldRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFieldRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFieldRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.GetFieldRequest;
+
+ /**
+ * Decodes a GetFieldRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFieldRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.GetFieldRequest;
+
+ /**
+ * Verifies a GetFieldRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFieldRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFieldRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.GetFieldRequest;
+
+ /**
+ * Creates a plain object from a GetFieldRequest message. Also converts values to other types if specified.
+ * @param message GetFieldRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.GetFieldRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFieldRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFieldRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFieldsRequest. */
+ interface IListFieldsRequest {
+
+ /** ListFieldsRequest parent */
+ parent?: (string|null);
+
+ /** ListFieldsRequest filter */
+ filter?: (string|null);
+
+ /** ListFieldsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListFieldsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListFieldsRequest. */
+ class ListFieldsRequest implements IListFieldsRequest {
+
+ /**
+ * Constructs a new ListFieldsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListFieldsRequest);
+
+ /** ListFieldsRequest parent. */
+ public parent: string;
+
+ /** ListFieldsRequest filter. */
+ public filter: string;
+
+ /** ListFieldsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListFieldsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListFieldsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFieldsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListFieldsRequest): google.firestore.admin.v1.ListFieldsRequest;
+
+ /**
+ * Encodes the specified ListFieldsRequest message. Does not implicitly {@link google.firestore.admin.v1.ListFieldsRequest.verify|verify} messages.
+ * @param message ListFieldsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListFieldsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFieldsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListFieldsRequest.verify|verify} messages.
+ * @param message ListFieldsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListFieldsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFieldsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFieldsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListFieldsRequest;
+
+ /**
+ * Decodes a ListFieldsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFieldsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListFieldsRequest;
+
+ /**
+ * Verifies a ListFieldsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFieldsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFieldsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListFieldsRequest;
+
+ /**
+ * Creates a plain object from a ListFieldsRequest message. Also converts values to other types if specified.
+ * @param message ListFieldsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListFieldsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFieldsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFieldsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFieldsResponse. */
+ interface IListFieldsResponse {
+
+ /** ListFieldsResponse fields */
+ fields?: (google.firestore.admin.v1.IField[]|null);
+
+ /** ListFieldsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListFieldsResponse. */
+ class ListFieldsResponse implements IListFieldsResponse {
+
+ /**
+ * Constructs a new ListFieldsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListFieldsResponse);
+
+ /** ListFieldsResponse fields. */
+ public fields: google.firestore.admin.v1.IField[];
+
+ /** ListFieldsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListFieldsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFieldsResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListFieldsResponse): google.firestore.admin.v1.ListFieldsResponse;
+
+ /**
+ * Encodes the specified ListFieldsResponse message. Does not implicitly {@link google.firestore.admin.v1.ListFieldsResponse.verify|verify} messages.
+ * @param message ListFieldsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListFieldsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFieldsResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListFieldsResponse.verify|verify} messages.
+ * @param message ListFieldsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListFieldsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFieldsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFieldsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListFieldsResponse;
+
+ /**
+ * Decodes a ListFieldsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFieldsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListFieldsResponse;
+
+ /**
+ * Verifies a ListFieldsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFieldsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFieldsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListFieldsResponse;
+
+ /**
+ * Creates a plain object from a ListFieldsResponse message. Also converts values to other types if specified.
+ * @param message ListFieldsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListFieldsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFieldsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFieldsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDocumentsRequest. */
+ interface IExportDocumentsRequest {
+
+ /** ExportDocumentsRequest name */
+ name?: (string|null);
+
+ /** ExportDocumentsRequest collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** ExportDocumentsRequest outputUriPrefix */
+ outputUriPrefix?: (string|null);
+
+ /** ExportDocumentsRequest namespaceIds */
+ namespaceIds?: (string[]|null);
+
+ /** ExportDocumentsRequest snapshotTime */
+ snapshotTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an ExportDocumentsRequest. */
+ class ExportDocumentsRequest implements IExportDocumentsRequest {
+
+ /**
+ * Constructs a new ExportDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IExportDocumentsRequest);
+
+ /** ExportDocumentsRequest name. */
+ public name: string;
+
+ /** ExportDocumentsRequest collectionIds. */
+ public collectionIds: string[];
+
+ /** ExportDocumentsRequest outputUriPrefix. */
+ public outputUriPrefix: string;
+
+ /** ExportDocumentsRequest namespaceIds. */
+ public namespaceIds: string[];
+
+ /** ExportDocumentsRequest snapshotTime. */
+ public snapshotTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ExportDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDocumentsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IExportDocumentsRequest): google.firestore.admin.v1.ExportDocumentsRequest;
+
+ /**
+ * Encodes the specified ExportDocumentsRequest message. Does not implicitly {@link google.firestore.admin.v1.ExportDocumentsRequest.verify|verify} messages.
+ * @param message ExportDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IExportDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDocumentsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ExportDocumentsRequest.verify|verify} messages.
+ * @param message ExportDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IExportDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ExportDocumentsRequest;
+
+ /**
+ * Decodes an ExportDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ExportDocumentsRequest;
+
+ /**
+ * Verifies an ExportDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ExportDocumentsRequest;
+
+ /**
+ * Creates a plain object from an ExportDocumentsRequest message. Also converts values to other types if specified.
+ * @param message ExportDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ExportDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDocumentsRequest. */
+ interface IImportDocumentsRequest {
+
+ /** ImportDocumentsRequest name */
+ name?: (string|null);
+
+ /** ImportDocumentsRequest collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** ImportDocumentsRequest inputUriPrefix */
+ inputUriPrefix?: (string|null);
+
+ /** ImportDocumentsRequest namespaceIds */
+ namespaceIds?: (string[]|null);
+ }
+
+ /** Represents an ImportDocumentsRequest. */
+ class ImportDocumentsRequest implements IImportDocumentsRequest {
+
+ /**
+ * Constructs a new ImportDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IImportDocumentsRequest);
+
+ /** ImportDocumentsRequest name. */
+ public name: string;
+
+ /** ImportDocumentsRequest collectionIds. */
+ public collectionIds: string[];
+
+ /** ImportDocumentsRequest inputUriPrefix. */
+ public inputUriPrefix: string;
+
+ /** ImportDocumentsRequest namespaceIds. */
+ public namespaceIds: string[];
+
+ /**
+ * Creates a new ImportDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDocumentsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IImportDocumentsRequest): google.firestore.admin.v1.ImportDocumentsRequest;
+
+ /**
+ * Encodes the specified ImportDocumentsRequest message. Does not implicitly {@link google.firestore.admin.v1.ImportDocumentsRequest.verify|verify} messages.
+ * @param message ImportDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IImportDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDocumentsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ImportDocumentsRequest.verify|verify} messages.
+ * @param message ImportDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IImportDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ImportDocumentsRequest;
+
+ /**
+ * Decodes an ImportDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ImportDocumentsRequest;
+
+ /**
+ * Verifies an ImportDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImportDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ImportDocumentsRequest;
+
+ /**
+ * Creates a plain object from an ImportDocumentsRequest message. Also converts values to other types if specified.
+ * @param message ImportDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ImportDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BulkDeleteDocumentsRequest. */
+ interface IBulkDeleteDocumentsRequest {
+
+ /** BulkDeleteDocumentsRequest name */
+ name?: (string|null);
+
+ /** BulkDeleteDocumentsRequest collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** BulkDeleteDocumentsRequest namespaceIds */
+ namespaceIds?: (string[]|null);
+ }
+
+ /** Represents a BulkDeleteDocumentsRequest. */
+ class BulkDeleteDocumentsRequest implements IBulkDeleteDocumentsRequest {
+
+ /**
+ * Constructs a new BulkDeleteDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IBulkDeleteDocumentsRequest);
+
+ /** BulkDeleteDocumentsRequest name. */
+ public name: string;
+
+ /** BulkDeleteDocumentsRequest collectionIds. */
+ public collectionIds: string[];
+
+ /** BulkDeleteDocumentsRequest namespaceIds. */
+ public namespaceIds: string[];
+
+ /**
+ * Creates a new BulkDeleteDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BulkDeleteDocumentsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IBulkDeleteDocumentsRequest): google.firestore.admin.v1.BulkDeleteDocumentsRequest;
+
+ /**
+ * Encodes the specified BulkDeleteDocumentsRequest message. Does not implicitly {@link google.firestore.admin.v1.BulkDeleteDocumentsRequest.verify|verify} messages.
+ * @param message BulkDeleteDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IBulkDeleteDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BulkDeleteDocumentsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.BulkDeleteDocumentsRequest.verify|verify} messages.
+ * @param message BulkDeleteDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IBulkDeleteDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BulkDeleteDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BulkDeleteDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.BulkDeleteDocumentsRequest;
+
+ /**
+ * Decodes a BulkDeleteDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BulkDeleteDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.BulkDeleteDocumentsRequest;
+
+ /**
+ * Verifies a BulkDeleteDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BulkDeleteDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BulkDeleteDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.BulkDeleteDocumentsRequest;
+
+ /**
+ * Creates a plain object from a BulkDeleteDocumentsRequest message. Also converts values to other types if specified.
+ * @param message BulkDeleteDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.BulkDeleteDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BulkDeleteDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BulkDeleteDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BulkDeleteDocumentsResponse. */
+ interface IBulkDeleteDocumentsResponse {
+ }
+
+ /** Represents a BulkDeleteDocumentsResponse. */
+ class BulkDeleteDocumentsResponse implements IBulkDeleteDocumentsResponse {
+
+ /**
+ * Constructs a new BulkDeleteDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IBulkDeleteDocumentsResponse);
+
+ /**
+ * Creates a new BulkDeleteDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BulkDeleteDocumentsResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IBulkDeleteDocumentsResponse): google.firestore.admin.v1.BulkDeleteDocumentsResponse;
+
+ /**
+ * Encodes the specified BulkDeleteDocumentsResponse message. Does not implicitly {@link google.firestore.admin.v1.BulkDeleteDocumentsResponse.verify|verify} messages.
+ * @param message BulkDeleteDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IBulkDeleteDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BulkDeleteDocumentsResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.BulkDeleteDocumentsResponse.verify|verify} messages.
+ * @param message BulkDeleteDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IBulkDeleteDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BulkDeleteDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BulkDeleteDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.BulkDeleteDocumentsResponse;
+
+ /**
+ * Decodes a BulkDeleteDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BulkDeleteDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.BulkDeleteDocumentsResponse;
+
+ /**
+ * Verifies a BulkDeleteDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BulkDeleteDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BulkDeleteDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.BulkDeleteDocumentsResponse;
+
+ /**
+ * Creates a plain object from a BulkDeleteDocumentsResponse message. Also converts values to other types if specified.
+ * @param message BulkDeleteDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.BulkDeleteDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BulkDeleteDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BulkDeleteDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBackupRequest. */
+ interface IGetBackupRequest {
+
+ /** GetBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBackupRequest. */
+ class GetBackupRequest implements IGetBackupRequest {
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IGetBackupRequest);
+
+ /** GetBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBackupRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IGetBackupRequest): google.firestore.admin.v1.GetBackupRequest;
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.firestore.admin.v1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBackupRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.GetBackupRequest;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.GetBackupRequest;
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.GetBackupRequest;
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @param message GetBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.GetBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsRequest. */
+ interface IListBackupsRequest {
+
+ /** ListBackupsRequest parent */
+ parent?: (string|null);
+
+ /** ListBackupsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListBackupsRequest. */
+ class ListBackupsRequest implements IListBackupsRequest {
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListBackupsRequest);
+
+ /** ListBackupsRequest parent. */
+ public parent: string;
+
+ /** ListBackupsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListBackupsRequest): google.firestore.admin.v1.ListBackupsRequest;
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.firestore.admin.v1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListBackupsRequest;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListBackupsRequest;
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListBackupsRequest;
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @param message ListBackupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsResponse. */
+ interface IListBackupsResponse {
+
+ /** ListBackupsResponse backups */
+ backups?: (google.firestore.admin.v1.IBackup[]|null);
+
+ /** ListBackupsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListBackupsResponse. */
+ class ListBackupsResponse implements IListBackupsResponse {
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IListBackupsResponse);
+
+ /** ListBackupsResponse backups. */
+ public backups: google.firestore.admin.v1.IBackup[];
+
+ /** ListBackupsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IListBackupsResponse): google.firestore.admin.v1.ListBackupsResponse;
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.firestore.admin.v1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ListBackupsResponse;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ListBackupsResponse;
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ListBackupsResponse;
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @param message ListBackupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ListBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBackupRequest. */
+ interface IDeleteBackupRequest {
+
+ /** DeleteBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteBackupRequest. */
+ class DeleteBackupRequest implements IDeleteBackupRequest {
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDeleteBackupRequest);
+
+ /** DeleteBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBackupRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDeleteBackupRequest): google.firestore.admin.v1.DeleteBackupRequest;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.firestore.admin.v1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DeleteBackupRequest;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DeleteBackupRequest;
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DeleteBackupRequest;
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @param message DeleteBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DeleteBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreDatabaseRequest. */
+ interface IRestoreDatabaseRequest {
+
+ /** RestoreDatabaseRequest parent */
+ parent?: (string|null);
+
+ /** RestoreDatabaseRequest databaseId */
+ databaseId?: (string|null);
+
+ /** RestoreDatabaseRequest backup */
+ backup?: (string|null);
+
+ /** RestoreDatabaseRequest encryptionConfig */
+ encryptionConfig?: (google.firestore.admin.v1.Database.IEncryptionConfig|null);
+
+ /** RestoreDatabaseRequest tags */
+ tags?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a RestoreDatabaseRequest. */
+ class RestoreDatabaseRequest implements IRestoreDatabaseRequest {
+
+ /**
+ * Constructs a new RestoreDatabaseRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IRestoreDatabaseRequest);
+
+ /** RestoreDatabaseRequest parent. */
+ public parent: string;
+
+ /** RestoreDatabaseRequest databaseId. */
+ public databaseId: string;
+
+ /** RestoreDatabaseRequest backup. */
+ public backup: string;
+
+ /** RestoreDatabaseRequest encryptionConfig. */
+ public encryptionConfig?: (google.firestore.admin.v1.Database.IEncryptionConfig|null);
+
+ /** RestoreDatabaseRequest tags. */
+ public tags: { [k: string]: string };
+
+ /**
+ * Creates a new RestoreDatabaseRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreDatabaseRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IRestoreDatabaseRequest): google.firestore.admin.v1.RestoreDatabaseRequest;
+
+ /**
+ * Encodes the specified RestoreDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.RestoreDatabaseRequest.verify|verify} messages.
+ * @param message RestoreDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IRestoreDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.RestoreDatabaseRequest.verify|verify} messages.
+ * @param message RestoreDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IRestoreDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreDatabaseRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.RestoreDatabaseRequest;
+
+ /**
+ * Decodes a RestoreDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.RestoreDatabaseRequest;
+
+ /**
+ * Verifies a RestoreDatabaseRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreDatabaseRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.RestoreDatabaseRequest;
+
+ /**
+ * Creates a plain object from a RestoreDatabaseRequest message. Also converts values to other types if specified.
+ * @param message RestoreDatabaseRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.RestoreDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreDatabaseRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreDatabaseRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CloneDatabaseRequest. */
+ interface ICloneDatabaseRequest {
+
+ /** CloneDatabaseRequest parent */
+ parent?: (string|null);
+
+ /** CloneDatabaseRequest databaseId */
+ databaseId?: (string|null);
+
+ /** CloneDatabaseRequest pitrSnapshot */
+ pitrSnapshot?: (google.firestore.admin.v1.IPitrSnapshot|null);
+
+ /** CloneDatabaseRequest encryptionConfig */
+ encryptionConfig?: (google.firestore.admin.v1.Database.IEncryptionConfig|null);
+
+ /** CloneDatabaseRequest tags */
+ tags?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a CloneDatabaseRequest. */
+ class CloneDatabaseRequest implements ICloneDatabaseRequest {
+
+ /**
+ * Constructs a new CloneDatabaseRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ICloneDatabaseRequest);
+
+ /** CloneDatabaseRequest parent. */
+ public parent: string;
+
+ /** CloneDatabaseRequest databaseId. */
+ public databaseId: string;
+
+ /** CloneDatabaseRequest pitrSnapshot. */
+ public pitrSnapshot?: (google.firestore.admin.v1.IPitrSnapshot|null);
+
+ /** CloneDatabaseRequest encryptionConfig. */
+ public encryptionConfig?: (google.firestore.admin.v1.Database.IEncryptionConfig|null);
+
+ /** CloneDatabaseRequest tags. */
+ public tags: { [k: string]: string };
+
+ /**
+ * Creates a new CloneDatabaseRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloneDatabaseRequest instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ICloneDatabaseRequest): google.firestore.admin.v1.CloneDatabaseRequest;
+
+ /**
+ * Encodes the specified CloneDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.CloneDatabaseRequest.verify|verify} messages.
+ * @param message CloneDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ICloneDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloneDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CloneDatabaseRequest.verify|verify} messages.
+ * @param message CloneDatabaseRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ICloneDatabaseRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloneDatabaseRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloneDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.CloneDatabaseRequest;
+
+ /**
+ * Decodes a CloneDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloneDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.CloneDatabaseRequest;
+
+ /**
+ * Verifies a CloneDatabaseRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CloneDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloneDatabaseRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CloneDatabaseRequest;
+
+ /**
+ * Creates a plain object from a CloneDatabaseRequest message. Also converts values to other types if specified.
+ * @param message CloneDatabaseRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.CloneDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloneDatabaseRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloneDatabaseRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IndexOperationMetadata. */
+ interface IIndexOperationMetadata {
+
+ /** IndexOperationMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** IndexOperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** IndexOperationMetadata index */
+ index?: (string|null);
+
+ /** IndexOperationMetadata state */
+ state?: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState|null);
+
+ /** IndexOperationMetadata progressDocuments */
+ progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** IndexOperationMetadata progressBytes */
+ progressBytes?: (google.firestore.admin.v1.IProgress|null);
+ }
+
+ /** Represents an IndexOperationMetadata. */
+ class IndexOperationMetadata implements IIndexOperationMetadata {
+
+ /**
+ * Constructs a new IndexOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IIndexOperationMetadata);
+
+ /** IndexOperationMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** IndexOperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** IndexOperationMetadata index. */
+ public index: string;
+
+ /** IndexOperationMetadata state. */
+ public state: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState);
+
+ /** IndexOperationMetadata progressDocuments. */
+ public progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** IndexOperationMetadata progressBytes. */
+ public progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /**
+ * Creates a new IndexOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndexOperationMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IIndexOperationMetadata): google.firestore.admin.v1.IndexOperationMetadata;
+
+ /**
+ * Encodes the specified IndexOperationMetadata message. Does not implicitly {@link google.firestore.admin.v1.IndexOperationMetadata.verify|verify} messages.
+ * @param message IndexOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndexOperationMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.IndexOperationMetadata.verify|verify} messages.
+ * @param message IndexOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndexOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndexOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.IndexOperationMetadata;
+
+ /**
+ * Decodes an IndexOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndexOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.IndexOperationMetadata;
+
+ /**
+ * Verifies an IndexOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an IndexOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndexOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.IndexOperationMetadata;
+
+ /**
+ * Creates a plain object from an IndexOperationMetadata message. Also converts values to other types if specified.
+ * @param message IndexOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.IndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndexOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndexOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOperationMetadata. */
+ interface IFieldOperationMetadata {
+
+ /** FieldOperationMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** FieldOperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** FieldOperationMetadata field */
+ field?: (string|null);
+
+ /** FieldOperationMetadata indexConfigDeltas */
+ indexConfigDeltas?: (google.firestore.admin.v1.FieldOperationMetadata.IIndexConfigDelta[]|null);
+
+ /** FieldOperationMetadata state */
+ state?: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState|null);
+
+ /** FieldOperationMetadata progressDocuments */
+ progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** FieldOperationMetadata progressBytes */
+ progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** FieldOperationMetadata ttlConfigDelta */
+ ttlConfigDelta?: (google.firestore.admin.v1.FieldOperationMetadata.ITtlConfigDelta|null);
+ }
+
+ /** Represents a FieldOperationMetadata. */
+ class FieldOperationMetadata implements IFieldOperationMetadata {
+
+ /**
+ * Constructs a new FieldOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IFieldOperationMetadata);
+
+ /** FieldOperationMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** FieldOperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** FieldOperationMetadata field. */
+ public field: string;
+
+ /** FieldOperationMetadata indexConfigDeltas. */
+ public indexConfigDeltas: google.firestore.admin.v1.FieldOperationMetadata.IIndexConfigDelta[];
+
+ /** FieldOperationMetadata state. */
+ public state: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState);
+
+ /** FieldOperationMetadata progressDocuments. */
+ public progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** FieldOperationMetadata progressBytes. */
+ public progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** FieldOperationMetadata ttlConfigDelta. */
+ public ttlConfigDelta?: (google.firestore.admin.v1.FieldOperationMetadata.ITtlConfigDelta|null);
+
+ /**
+ * Creates a new FieldOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOperationMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IFieldOperationMetadata): google.firestore.admin.v1.FieldOperationMetadata;
+
+ /**
+ * Encodes the specified FieldOperationMetadata message. Does not implicitly {@link google.firestore.admin.v1.FieldOperationMetadata.verify|verify} messages.
+ * @param message FieldOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IFieldOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOperationMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.FieldOperationMetadata.verify|verify} messages.
+ * @param message FieldOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IFieldOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.FieldOperationMetadata;
+
+ /**
+ * Decodes a FieldOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.FieldOperationMetadata;
+
+ /**
+ * Verifies a FieldOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.FieldOperationMetadata;
+
+ /**
+ * Creates a plain object from a FieldOperationMetadata message. Also converts values to other types if specified.
+ * @param message FieldOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.FieldOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOperationMetadata {
+
+ /** Properties of an IndexConfigDelta. */
+ interface IIndexConfigDelta {
+
+ /** IndexConfigDelta changeType */
+ changeType?: (google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType|keyof typeof google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType|null);
+
+ /** IndexConfigDelta index */
+ index?: (google.firestore.admin.v1.IIndex|null);
+ }
+
+ /** Represents an IndexConfigDelta. */
+ class IndexConfigDelta implements IIndexConfigDelta {
+
+ /**
+ * Constructs a new IndexConfigDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.FieldOperationMetadata.IIndexConfigDelta);
+
+ /** IndexConfigDelta changeType. */
+ public changeType: (google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType|keyof typeof google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType);
+
+ /** IndexConfigDelta index. */
+ public index?: (google.firestore.admin.v1.IIndex|null);
+
+ /**
+ * Creates a new IndexConfigDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndexConfigDelta instance
+ */
+ public static create(properties?: google.firestore.admin.v1.FieldOperationMetadata.IIndexConfigDelta): google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta;
+
+ /**
+ * Encodes the specified IndexConfigDelta message. Does not implicitly {@link google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.verify|verify} messages.
+ * @param message IndexConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.FieldOperationMetadata.IIndexConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndexConfigDelta message, length delimited. Does not implicitly {@link google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.verify|verify} messages.
+ * @param message IndexConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.FieldOperationMetadata.IIndexConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndexConfigDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndexConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta;
+
+ /**
+ * Decodes an IndexConfigDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndexConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta;
+
+ /**
+ * Verifies an IndexConfigDelta message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an IndexConfigDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndexConfigDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta;
+
+ /**
+ * Creates a plain object from an IndexConfigDelta message. Also converts values to other types if specified.
+ * @param message IndexConfigDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndexConfigDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndexConfigDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IndexConfigDelta {
+
+ /** ChangeType enum. */
+ enum ChangeType {
+ CHANGE_TYPE_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+
+ /** Properties of a TtlConfigDelta. */
+ interface ITtlConfigDelta {
+
+ /** TtlConfigDelta changeType */
+ changeType?: (google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType|keyof typeof google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType|null);
+
+ /** TtlConfigDelta expirationOffset */
+ expirationOffset?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a TtlConfigDelta. */
+ class TtlConfigDelta implements ITtlConfigDelta {
+
+ /**
+ * Constructs a new TtlConfigDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.FieldOperationMetadata.ITtlConfigDelta);
+
+ /** TtlConfigDelta changeType. */
+ public changeType: (google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType|keyof typeof google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType);
+
+ /** TtlConfigDelta expirationOffset. */
+ public expirationOffset?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new TtlConfigDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TtlConfigDelta instance
+ */
+ public static create(properties?: google.firestore.admin.v1.FieldOperationMetadata.ITtlConfigDelta): google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta;
+
+ /**
+ * Encodes the specified TtlConfigDelta message. Does not implicitly {@link google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.verify|verify} messages.
+ * @param message TtlConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.FieldOperationMetadata.ITtlConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TtlConfigDelta message, length delimited. Does not implicitly {@link google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.verify|verify} messages.
+ * @param message TtlConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.FieldOperationMetadata.ITtlConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TtlConfigDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TtlConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta;
+
+ /**
+ * Decodes a TtlConfigDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TtlConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta;
+
+ /**
+ * Verifies a TtlConfigDelta message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TtlConfigDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TtlConfigDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta;
+
+ /**
+ * Creates a plain object from a TtlConfigDelta message. Also converts values to other types if specified.
+ * @param message TtlConfigDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TtlConfigDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TtlConfigDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TtlConfigDelta {
+
+ /** ChangeType enum. */
+ enum ChangeType {
+ CHANGE_TYPE_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+ }
+
+ /** Properties of an ExportDocumentsMetadata. */
+ interface IExportDocumentsMetadata {
+
+ /** ExportDocumentsMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExportDocumentsMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExportDocumentsMetadata operationState */
+ operationState?: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState|null);
+
+ /** ExportDocumentsMetadata progressDocuments */
+ progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ExportDocumentsMetadata progressBytes */
+ progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ExportDocumentsMetadata collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** ExportDocumentsMetadata outputUriPrefix */
+ outputUriPrefix?: (string|null);
+
+ /** ExportDocumentsMetadata namespaceIds */
+ namespaceIds?: (string[]|null);
+
+ /** ExportDocumentsMetadata snapshotTime */
+ snapshotTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an ExportDocumentsMetadata. */
+ class ExportDocumentsMetadata implements IExportDocumentsMetadata {
+
+ /**
+ * Constructs a new ExportDocumentsMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IExportDocumentsMetadata);
+
+ /** ExportDocumentsMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExportDocumentsMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExportDocumentsMetadata operationState. */
+ public operationState: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState);
+
+ /** ExportDocumentsMetadata progressDocuments. */
+ public progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ExportDocumentsMetadata progressBytes. */
+ public progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ExportDocumentsMetadata collectionIds. */
+ public collectionIds: string[];
+
+ /** ExportDocumentsMetadata outputUriPrefix. */
+ public outputUriPrefix: string;
+
+ /** ExportDocumentsMetadata namespaceIds. */
+ public namespaceIds: string[];
+
+ /** ExportDocumentsMetadata snapshotTime. */
+ public snapshotTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ExportDocumentsMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDocumentsMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IExportDocumentsMetadata): google.firestore.admin.v1.ExportDocumentsMetadata;
+
+ /**
+ * Encodes the specified ExportDocumentsMetadata message. Does not implicitly {@link google.firestore.admin.v1.ExportDocumentsMetadata.verify|verify} messages.
+ * @param message ExportDocumentsMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IExportDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDocumentsMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ExportDocumentsMetadata.verify|verify} messages.
+ * @param message ExportDocumentsMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IExportDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDocumentsMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDocumentsMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ExportDocumentsMetadata;
+
+ /**
+ * Decodes an ExportDocumentsMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDocumentsMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ExportDocumentsMetadata;
+
+ /**
+ * Verifies an ExportDocumentsMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDocumentsMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ExportDocumentsMetadata;
+
+ /**
+ * Creates a plain object from an ExportDocumentsMetadata message. Also converts values to other types if specified.
+ * @param message ExportDocumentsMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ExportDocumentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDocumentsMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDocumentsMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImportDocumentsMetadata. */
+ interface IImportDocumentsMetadata {
+
+ /** ImportDocumentsMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ImportDocumentsMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ImportDocumentsMetadata operationState */
+ operationState?: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState|null);
+
+ /** ImportDocumentsMetadata progressDocuments */
+ progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ImportDocumentsMetadata progressBytes */
+ progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ImportDocumentsMetadata collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** ImportDocumentsMetadata inputUriPrefix */
+ inputUriPrefix?: (string|null);
+
+ /** ImportDocumentsMetadata namespaceIds */
+ namespaceIds?: (string[]|null);
+ }
+
+ /** Represents an ImportDocumentsMetadata. */
+ class ImportDocumentsMetadata implements IImportDocumentsMetadata {
+
+ /**
+ * Constructs a new ImportDocumentsMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IImportDocumentsMetadata);
+
+ /** ImportDocumentsMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ImportDocumentsMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ImportDocumentsMetadata operationState. */
+ public operationState: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState);
+
+ /** ImportDocumentsMetadata progressDocuments. */
+ public progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ImportDocumentsMetadata progressBytes. */
+ public progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** ImportDocumentsMetadata collectionIds. */
+ public collectionIds: string[];
+
+ /** ImportDocumentsMetadata inputUriPrefix. */
+ public inputUriPrefix: string;
+
+ /** ImportDocumentsMetadata namespaceIds. */
+ public namespaceIds: string[];
+
+ /**
+ * Creates a new ImportDocumentsMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImportDocumentsMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IImportDocumentsMetadata): google.firestore.admin.v1.ImportDocumentsMetadata;
+
+ /**
+ * Encodes the specified ImportDocumentsMetadata message. Does not implicitly {@link google.firestore.admin.v1.ImportDocumentsMetadata.verify|verify} messages.
+ * @param message ImportDocumentsMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IImportDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImportDocumentsMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ImportDocumentsMetadata.verify|verify} messages.
+ * @param message ImportDocumentsMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IImportDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImportDocumentsMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImportDocumentsMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ImportDocumentsMetadata;
+
+ /**
+ * Decodes an ImportDocumentsMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImportDocumentsMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ImportDocumentsMetadata;
+
+ /**
+ * Verifies an ImportDocumentsMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ImportDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImportDocumentsMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ImportDocumentsMetadata;
+
+ /**
+ * Creates a plain object from an ImportDocumentsMetadata message. Also converts values to other types if specified.
+ * @param message ImportDocumentsMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ImportDocumentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImportDocumentsMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImportDocumentsMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BulkDeleteDocumentsMetadata. */
+ interface IBulkDeleteDocumentsMetadata {
+
+ /** BulkDeleteDocumentsMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** BulkDeleteDocumentsMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** BulkDeleteDocumentsMetadata operationState */
+ operationState?: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState|null);
+
+ /** BulkDeleteDocumentsMetadata progressDocuments */
+ progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** BulkDeleteDocumentsMetadata progressBytes */
+ progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** BulkDeleteDocumentsMetadata collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** BulkDeleteDocumentsMetadata namespaceIds */
+ namespaceIds?: (string[]|null);
+
+ /** BulkDeleteDocumentsMetadata snapshotTime */
+ snapshotTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a BulkDeleteDocumentsMetadata. */
+ class BulkDeleteDocumentsMetadata implements IBulkDeleteDocumentsMetadata {
+
+ /**
+ * Constructs a new BulkDeleteDocumentsMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IBulkDeleteDocumentsMetadata);
+
+ /** BulkDeleteDocumentsMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** BulkDeleteDocumentsMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** BulkDeleteDocumentsMetadata operationState. */
+ public operationState: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState);
+
+ /** BulkDeleteDocumentsMetadata progressDocuments. */
+ public progressDocuments?: (google.firestore.admin.v1.IProgress|null);
+
+ /** BulkDeleteDocumentsMetadata progressBytes. */
+ public progressBytes?: (google.firestore.admin.v1.IProgress|null);
+
+ /** BulkDeleteDocumentsMetadata collectionIds. */
+ public collectionIds: string[];
+
+ /** BulkDeleteDocumentsMetadata namespaceIds. */
+ public namespaceIds: string[];
+
+ /** BulkDeleteDocumentsMetadata snapshotTime. */
+ public snapshotTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new BulkDeleteDocumentsMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BulkDeleteDocumentsMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IBulkDeleteDocumentsMetadata): google.firestore.admin.v1.BulkDeleteDocumentsMetadata;
+
+ /**
+ * Encodes the specified BulkDeleteDocumentsMetadata message. Does not implicitly {@link google.firestore.admin.v1.BulkDeleteDocumentsMetadata.verify|verify} messages.
+ * @param message BulkDeleteDocumentsMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IBulkDeleteDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BulkDeleteDocumentsMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.BulkDeleteDocumentsMetadata.verify|verify} messages.
+ * @param message BulkDeleteDocumentsMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IBulkDeleteDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BulkDeleteDocumentsMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BulkDeleteDocumentsMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.BulkDeleteDocumentsMetadata;
+
+ /**
+ * Decodes a BulkDeleteDocumentsMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BulkDeleteDocumentsMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.BulkDeleteDocumentsMetadata;
+
+ /**
+ * Verifies a BulkDeleteDocumentsMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BulkDeleteDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BulkDeleteDocumentsMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.BulkDeleteDocumentsMetadata;
+
+ /**
+ * Creates a plain object from a BulkDeleteDocumentsMetadata message. Also converts values to other types if specified.
+ * @param message BulkDeleteDocumentsMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.BulkDeleteDocumentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BulkDeleteDocumentsMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BulkDeleteDocumentsMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDocumentsResponse. */
+ interface IExportDocumentsResponse {
+
+ /** ExportDocumentsResponse outputUriPrefix */
+ outputUriPrefix?: (string|null);
+ }
+
+ /** Represents an ExportDocumentsResponse. */
+ class ExportDocumentsResponse implements IExportDocumentsResponse {
+
+ /**
+ * Constructs a new ExportDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IExportDocumentsResponse);
+
+ /** ExportDocumentsResponse outputUriPrefix. */
+ public outputUriPrefix: string;
+
+ /**
+ * Creates a new ExportDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDocumentsResponse instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IExportDocumentsResponse): google.firestore.admin.v1.ExportDocumentsResponse;
+
+ /**
+ * Encodes the specified ExportDocumentsResponse message. Does not implicitly {@link google.firestore.admin.v1.ExportDocumentsResponse.verify|verify} messages.
+ * @param message ExportDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IExportDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDocumentsResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ExportDocumentsResponse.verify|verify} messages.
+ * @param message ExportDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IExportDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.ExportDocumentsResponse;
+
+ /**
+ * Decodes an ExportDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.ExportDocumentsResponse;
+
+ /**
+ * Verifies an ExportDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExportDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.ExportDocumentsResponse;
+
+ /**
+ * Creates a plain object from an ExportDocumentsResponse message. Also converts values to other types if specified.
+ * @param message ExportDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.ExportDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreDatabaseMetadata. */
+ interface IRestoreDatabaseMetadata {
+
+ /** RestoreDatabaseMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** RestoreDatabaseMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** RestoreDatabaseMetadata operationState */
+ operationState?: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState|null);
+
+ /** RestoreDatabaseMetadata database */
+ database?: (string|null);
+
+ /** RestoreDatabaseMetadata backup */
+ backup?: (string|null);
+
+ /** RestoreDatabaseMetadata progressPercentage */
+ progressPercentage?: (google.firestore.admin.v1.IProgress|null);
+ }
+
+ /** Represents a RestoreDatabaseMetadata. */
+ class RestoreDatabaseMetadata implements IRestoreDatabaseMetadata {
+
+ /**
+ * Constructs a new RestoreDatabaseMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IRestoreDatabaseMetadata);
+
+ /** RestoreDatabaseMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** RestoreDatabaseMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** RestoreDatabaseMetadata operationState. */
+ public operationState: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState);
+
+ /** RestoreDatabaseMetadata database. */
+ public database: string;
+
+ /** RestoreDatabaseMetadata backup. */
+ public backup: string;
+
+ /** RestoreDatabaseMetadata progressPercentage. */
+ public progressPercentage?: (google.firestore.admin.v1.IProgress|null);
+
+ /**
+ * Creates a new RestoreDatabaseMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreDatabaseMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IRestoreDatabaseMetadata): google.firestore.admin.v1.RestoreDatabaseMetadata;
+
+ /**
+ * Encodes the specified RestoreDatabaseMetadata message. Does not implicitly {@link google.firestore.admin.v1.RestoreDatabaseMetadata.verify|verify} messages.
+ * @param message RestoreDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IRestoreDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreDatabaseMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.RestoreDatabaseMetadata.verify|verify} messages.
+ * @param message RestoreDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IRestoreDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreDatabaseMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.RestoreDatabaseMetadata;
+
+ /**
+ * Decodes a RestoreDatabaseMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.RestoreDatabaseMetadata;
+
+ /**
+ * Verifies a RestoreDatabaseMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreDatabaseMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.RestoreDatabaseMetadata;
+
+ /**
+ * Creates a plain object from a RestoreDatabaseMetadata message. Also converts values to other types if specified.
+ * @param message RestoreDatabaseMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.RestoreDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreDatabaseMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreDatabaseMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CloneDatabaseMetadata. */
+ interface ICloneDatabaseMetadata {
+
+ /** CloneDatabaseMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneDatabaseMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneDatabaseMetadata operationState */
+ operationState?: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState|null);
+
+ /** CloneDatabaseMetadata database */
+ database?: (string|null);
+
+ /** CloneDatabaseMetadata pitrSnapshot */
+ pitrSnapshot?: (google.firestore.admin.v1.IPitrSnapshot|null);
+
+ /** CloneDatabaseMetadata progressPercentage */
+ progressPercentage?: (google.firestore.admin.v1.IProgress|null);
+ }
+
+ /** Represents a CloneDatabaseMetadata. */
+ class CloneDatabaseMetadata implements ICloneDatabaseMetadata {
+
+ /**
+ * Constructs a new CloneDatabaseMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ICloneDatabaseMetadata);
+
+ /** CloneDatabaseMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneDatabaseMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneDatabaseMetadata operationState. */
+ public operationState: (google.firestore.admin.v1.OperationState|keyof typeof google.firestore.admin.v1.OperationState);
+
+ /** CloneDatabaseMetadata database. */
+ public database: string;
+
+ /** CloneDatabaseMetadata pitrSnapshot. */
+ public pitrSnapshot?: (google.firestore.admin.v1.IPitrSnapshot|null);
+
+ /** CloneDatabaseMetadata progressPercentage. */
+ public progressPercentage?: (google.firestore.admin.v1.IProgress|null);
+
+ /**
+ * Creates a new CloneDatabaseMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloneDatabaseMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ICloneDatabaseMetadata): google.firestore.admin.v1.CloneDatabaseMetadata;
+
+ /**
+ * Encodes the specified CloneDatabaseMetadata message. Does not implicitly {@link google.firestore.admin.v1.CloneDatabaseMetadata.verify|verify} messages.
+ * @param message CloneDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ICloneDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloneDatabaseMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CloneDatabaseMetadata.verify|verify} messages.
+ * @param message CloneDatabaseMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ICloneDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloneDatabaseMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloneDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.CloneDatabaseMetadata;
+
+ /**
+ * Decodes a CloneDatabaseMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloneDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.CloneDatabaseMetadata;
+
+ /**
+ * Verifies a CloneDatabaseMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CloneDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloneDatabaseMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CloneDatabaseMetadata;
+
+ /**
+ * Creates a plain object from a CloneDatabaseMetadata message. Also converts values to other types if specified.
+ * @param message CloneDatabaseMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.CloneDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloneDatabaseMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloneDatabaseMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Progress. */
+ interface IProgress {
+
+ /** Progress estimatedWork */
+ estimatedWork?: (number|Long|string|null);
+
+ /** Progress completedWork */
+ completedWork?: (number|Long|string|null);
+ }
+
+ /** Represents a Progress. */
+ class Progress implements IProgress {
+
+ /**
+ * Constructs a new Progress.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IProgress);
+
+ /** Progress estimatedWork. */
+ public estimatedWork: (number|Long|string);
+
+ /** Progress completedWork. */
+ public completedWork: (number|Long|string);
+
+ /**
+ * Creates a new Progress instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Progress instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IProgress): google.firestore.admin.v1.Progress;
+
+ /**
+ * Encodes the specified Progress message. Does not implicitly {@link google.firestore.admin.v1.Progress.verify|verify} messages.
+ * @param message Progress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IProgress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Progress message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Progress.verify|verify} messages.
+ * @param message Progress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IProgress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Progress message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Progress
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.Progress;
+
+ /**
+ * Decodes a Progress message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Progress
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.Progress;
+
+ /**
+ * Verifies a Progress message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Progress message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Progress
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.Progress;
+
+ /**
+ * Creates a plain object from a Progress message. Also converts values to other types if specified.
+ * @param message Progress
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.Progress, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Progress to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Progress
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** OperationState enum. */
+ enum OperationState {
+ OPERATION_STATE_UNSPECIFIED = 0,
+ INITIALIZING = 1,
+ PROCESSING = 2,
+ CANCELLING = 3,
+ FINALIZING = 4,
+ SUCCESSFUL = 5,
+ FAILED = 6,
+ CANCELLED = 7
+ }
+
+ /** Properties of a PitrSnapshot. */
+ interface IPitrSnapshot {
+
+ /** PitrSnapshot database */
+ database?: (string|null);
+
+ /** PitrSnapshot databaseUid */
+ databaseUid?: (Uint8Array|Buffer|string|null);
+
+ /** PitrSnapshot snapshotTime */
+ snapshotTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a PitrSnapshot. */
+ class PitrSnapshot implements IPitrSnapshot {
+
+ /**
+ * Constructs a new PitrSnapshot.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IPitrSnapshot);
+
+ /** PitrSnapshot database. */
+ public database: string;
+
+ /** PitrSnapshot databaseUid. */
+ public databaseUid: (Uint8Array|Buffer|string);
+
+ /** PitrSnapshot snapshotTime. */
+ public snapshotTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new PitrSnapshot instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PitrSnapshot instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IPitrSnapshot): google.firestore.admin.v1.PitrSnapshot;
+
+ /**
+ * Encodes the specified PitrSnapshot message. Does not implicitly {@link google.firestore.admin.v1.PitrSnapshot.verify|verify} messages.
+ * @param message PitrSnapshot message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IPitrSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PitrSnapshot message, length delimited. Does not implicitly {@link google.firestore.admin.v1.PitrSnapshot.verify|verify} messages.
+ * @param message PitrSnapshot message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IPitrSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PitrSnapshot message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PitrSnapshot
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.PitrSnapshot;
+
+ /**
+ * Decodes a PitrSnapshot message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PitrSnapshot
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.PitrSnapshot;
+
+ /**
+ * Verifies a PitrSnapshot message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PitrSnapshot message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PitrSnapshot
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.PitrSnapshot;
+
+ /**
+ * Creates a plain object from a PitrSnapshot message. Also converts values to other types if specified.
+ * @param message PitrSnapshot
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.PitrSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PitrSnapshot to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PitrSnapshot
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BackupSchedule. */
+ interface IBackupSchedule {
+
+ /** BackupSchedule name */
+ name?: (string|null);
+
+ /** BackupSchedule createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** BackupSchedule updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BackupSchedule retention */
+ retention?: (google.protobuf.IDuration|null);
+
+ /** BackupSchedule dailyRecurrence */
+ dailyRecurrence?: (google.firestore.admin.v1.IDailyRecurrence|null);
+
+ /** BackupSchedule weeklyRecurrence */
+ weeklyRecurrence?: (google.firestore.admin.v1.IWeeklyRecurrence|null);
+ }
+
+ /** Represents a BackupSchedule. */
+ class BackupSchedule implements IBackupSchedule {
+
+ /**
+ * Constructs a new BackupSchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IBackupSchedule);
+
+ /** BackupSchedule name. */
+ public name: string;
+
+ /** BackupSchedule createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** BackupSchedule updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** BackupSchedule retention. */
+ public retention?: (google.protobuf.IDuration|null);
+
+ /** BackupSchedule dailyRecurrence. */
+ public dailyRecurrence?: (google.firestore.admin.v1.IDailyRecurrence|null);
+
+ /** BackupSchedule weeklyRecurrence. */
+ public weeklyRecurrence?: (google.firestore.admin.v1.IWeeklyRecurrence|null);
+
+ /** BackupSchedule recurrence. */
+ public recurrence?: ("dailyRecurrence"|"weeklyRecurrence");
+
+ /**
+ * Creates a new BackupSchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BackupSchedule instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IBackupSchedule): google.firestore.admin.v1.BackupSchedule;
+
+ /**
+ * Encodes the specified BackupSchedule message. Does not implicitly {@link google.firestore.admin.v1.BackupSchedule.verify|verify} messages.
+ * @param message BackupSchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IBackupSchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BackupSchedule message, length delimited. Does not implicitly {@link google.firestore.admin.v1.BackupSchedule.verify|verify} messages.
+ * @param message BackupSchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IBackupSchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BackupSchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BackupSchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.BackupSchedule;
+
+ /**
+ * Decodes a BackupSchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BackupSchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.BackupSchedule;
+
+ /**
+ * Verifies a BackupSchedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BackupSchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BackupSchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.BackupSchedule;
+
+ /**
+ * Creates a plain object from a BackupSchedule message. Also converts values to other types if specified.
+ * @param message BackupSchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.BackupSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BackupSchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BackupSchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DailyRecurrence. */
+ interface IDailyRecurrence {
+ }
+
+ /** Represents a DailyRecurrence. */
+ class DailyRecurrence implements IDailyRecurrence {
+
+ /**
+ * Constructs a new DailyRecurrence.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IDailyRecurrence);
+
+ /**
+ * Creates a new DailyRecurrence instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DailyRecurrence instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IDailyRecurrence): google.firestore.admin.v1.DailyRecurrence;
+
+ /**
+ * Encodes the specified DailyRecurrence message. Does not implicitly {@link google.firestore.admin.v1.DailyRecurrence.verify|verify} messages.
+ * @param message DailyRecurrence message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IDailyRecurrence, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DailyRecurrence message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DailyRecurrence.verify|verify} messages.
+ * @param message DailyRecurrence message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IDailyRecurrence, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DailyRecurrence message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DailyRecurrence
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.DailyRecurrence;
+
+ /**
+ * Decodes a DailyRecurrence message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DailyRecurrence
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.DailyRecurrence;
+
+ /**
+ * Verifies a DailyRecurrence message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DailyRecurrence message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DailyRecurrence
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.DailyRecurrence;
+
+ /**
+ * Creates a plain object from a DailyRecurrence message. Also converts values to other types if specified.
+ * @param message DailyRecurrence
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.DailyRecurrence, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DailyRecurrence to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DailyRecurrence
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WeeklyRecurrence. */
+ interface IWeeklyRecurrence {
+
+ /** WeeklyRecurrence day */
+ day?: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek|null);
+ }
+
+ /** Represents a WeeklyRecurrence. */
+ class WeeklyRecurrence implements IWeeklyRecurrence {
+
+ /**
+ * Constructs a new WeeklyRecurrence.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IWeeklyRecurrence);
+
+ /** WeeklyRecurrence day. */
+ public day: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek);
+
+ /**
+ * Creates a new WeeklyRecurrence instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WeeklyRecurrence instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IWeeklyRecurrence): google.firestore.admin.v1.WeeklyRecurrence;
+
+ /**
+ * Encodes the specified WeeklyRecurrence message. Does not implicitly {@link google.firestore.admin.v1.WeeklyRecurrence.verify|verify} messages.
+ * @param message WeeklyRecurrence message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IWeeklyRecurrence, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WeeklyRecurrence message, length delimited. Does not implicitly {@link google.firestore.admin.v1.WeeklyRecurrence.verify|verify} messages.
+ * @param message WeeklyRecurrence message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IWeeklyRecurrence, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WeeklyRecurrence message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WeeklyRecurrence
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.WeeklyRecurrence;
+
+ /**
+ * Decodes a WeeklyRecurrence message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WeeklyRecurrence
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.WeeklyRecurrence;
+
+ /**
+ * Verifies a WeeklyRecurrence message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WeeklyRecurrence message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WeeklyRecurrence
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.WeeklyRecurrence;
+
+ /**
+ * Creates a plain object from a WeeklyRecurrence message. Also converts values to other types if specified.
+ * @param message WeeklyRecurrence
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.WeeklyRecurrence, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WeeklyRecurrence to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WeeklyRecurrence
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UserCreds. */
+ interface IUserCreds {
+
+ /** UserCreds name */
+ name?: (string|null);
+
+ /** UserCreds createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** UserCreds updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** UserCreds state */
+ state?: (google.firestore.admin.v1.UserCreds.State|keyof typeof google.firestore.admin.v1.UserCreds.State|null);
+
+ /** UserCreds securePassword */
+ securePassword?: (string|null);
+
+ /** UserCreds resourceIdentity */
+ resourceIdentity?: (google.firestore.admin.v1.UserCreds.IResourceIdentity|null);
+ }
+
+ /** Represents a UserCreds. */
+ class UserCreds implements IUserCreds {
+
+ /**
+ * Constructs a new UserCreds.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.IUserCreds);
+
+ /** UserCreds name. */
+ public name: string;
+
+ /** UserCreds createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** UserCreds updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** UserCreds state. */
+ public state: (google.firestore.admin.v1.UserCreds.State|keyof typeof google.firestore.admin.v1.UserCreds.State);
+
+ /** UserCreds securePassword. */
+ public securePassword: string;
+
+ /** UserCreds resourceIdentity. */
+ public resourceIdentity?: (google.firestore.admin.v1.UserCreds.IResourceIdentity|null);
+
+ /** UserCreds UserCredsIdentity. */
+ public UserCredsIdentity?: "resourceIdentity";
+
+ /**
+ * Creates a new UserCreds instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UserCreds instance
+ */
+ public static create(properties?: google.firestore.admin.v1.IUserCreds): google.firestore.admin.v1.UserCreds;
+
+ /**
+ * Encodes the specified UserCreds message. Does not implicitly {@link google.firestore.admin.v1.UserCreds.verify|verify} messages.
+ * @param message UserCreds message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.IUserCreds, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UserCreds message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UserCreds.verify|verify} messages.
+ * @param message UserCreds message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.IUserCreds, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UserCreds message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UserCreds
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.UserCreds;
+
+ /**
+ * Decodes a UserCreds message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UserCreds
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.UserCreds;
+
+ /**
+ * Verifies a UserCreds message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UserCreds message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UserCreds
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.UserCreds;
+
+ /**
+ * Creates a plain object from a UserCreds message. Also converts values to other types if specified.
+ * @param message UserCreds
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.UserCreds, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UserCreds to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UserCreds
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UserCreds {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ENABLED = 1,
+ DISABLED = 2
+ }
+
+ /** Properties of a ResourceIdentity. */
+ interface IResourceIdentity {
+
+ /** ResourceIdentity principal */
+ principal?: (string|null);
+ }
+
+ /** Represents a ResourceIdentity. */
+ class ResourceIdentity implements IResourceIdentity {
+
+ /**
+ * Constructs a new ResourceIdentity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.UserCreds.IResourceIdentity);
+
+ /** ResourceIdentity principal. */
+ public principal: string;
+
+ /**
+ * Creates a new ResourceIdentity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceIdentity instance
+ */
+ public static create(properties?: google.firestore.admin.v1.UserCreds.IResourceIdentity): google.firestore.admin.v1.UserCreds.ResourceIdentity;
+
+ /**
+ * Encodes the specified ResourceIdentity message. Does not implicitly {@link google.firestore.admin.v1.UserCreds.ResourceIdentity.verify|verify} messages.
+ * @param message ResourceIdentity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.UserCreds.IResourceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceIdentity message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UserCreds.ResourceIdentity.verify|verify} messages.
+ * @param message ResourceIdentity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.UserCreds.IResourceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceIdentity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceIdentity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.UserCreds.ResourceIdentity;
+
+ /**
+ * Decodes a ResourceIdentity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceIdentity
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.UserCreds.ResourceIdentity;
+
+ /**
+ * Verifies a ResourceIdentity message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceIdentity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceIdentity
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.UserCreds.ResourceIdentity;
+
+ /**
+ * Creates a plain object from a ResourceIdentity message. Also converts values to other types if specified.
+ * @param message ResourceIdentity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.UserCreds.ResourceIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceIdentity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceIdentity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a LocationMetadata. */
+ interface ILocationMetadata {
+ }
+
+ /** Represents a LocationMetadata. */
+ class LocationMetadata implements ILocationMetadata {
+
+ /**
+ * Constructs a new LocationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.admin.v1.ILocationMetadata);
+
+ /**
+ * Creates a new LocationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationMetadata instance
+ */
+ public static create(properties?: google.firestore.admin.v1.ILocationMetadata): google.firestore.admin.v1.LocationMetadata;
+
+ /**
+ * Encodes the specified LocationMetadata message. Does not implicitly {@link google.firestore.admin.v1.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.admin.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.admin.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.admin.v1.LocationMetadata;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.admin.v1.LocationMetadata;
+
+ /**
+ * Verifies a LocationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.LocationMetadata;
+
+ /**
+ * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified.
+ * @param message LocationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.admin.v1.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of an AggregationResult. */
+ interface IAggregationResult {
+
+ /** AggregationResult aggregateFields */
+ aggregateFields?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
+
+ /** Represents an AggregationResult. */
+ class AggregationResult implements IAggregationResult {
+
+ /**
+ * Constructs a new AggregationResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IAggregationResult);
+
+ /** AggregationResult aggregateFields. */
+ public aggregateFields: { [k: string]: google.firestore.v1.IValue };
+
+ /**
+ * Creates a new AggregationResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AggregationResult instance
+ */
+ public static create(properties?: google.firestore.v1.IAggregationResult): google.firestore.v1.AggregationResult;
+
+ /**
+ * Encodes the specified AggregationResult message. Does not implicitly {@link google.firestore.v1.AggregationResult.verify|verify} messages.
+ * @param message AggregationResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IAggregationResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AggregationResult message, length delimited. Does not implicitly {@link google.firestore.v1.AggregationResult.verify|verify} messages.
+ * @param message AggregationResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IAggregationResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AggregationResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AggregationResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.AggregationResult;
+
+ /**
+ * Decodes an AggregationResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AggregationResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.AggregationResult;
+
+ /**
+ * Verifies an AggregationResult message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an AggregationResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AggregationResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.AggregationResult;
+
+ /**
+ * Creates a plain object from an AggregationResult message. Also converts values to other types if specified.
+ * @param message AggregationResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.AggregationResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AggregationResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AggregationResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document name */
+ name?: (string|null);
+
+ /** Document fields */
+ fields?: ({ [k: string]: google.firestore.v1.IValue }|null);
+
+ /** Document createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocument);
+
+ /** Document name. */
+ public name: string;
+
+ /** Document fields. */
+ public fields: { [k: string]: google.firestore.v1.IValue };
+
+ /** Document createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.firestore.v1.IDocument): google.firestore.v1.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.firestore.v1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.firestore.v1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Document;
+
+ /**
+ * Verifies a Document message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value booleanValue */
+ booleanValue?: (boolean|null);
+
+ /** Value integerValue */
+ integerValue?: (number|Long|string|null);
+
+ /** Value doubleValue */
+ doubleValue?: (number|null);
+
+ /** Value timestampValue */
+ timestampValue?: (google.protobuf.ITimestamp|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value bytesValue */
+ bytesValue?: (Uint8Array|Buffer|string|null);
+
+ /** Value referenceValue */
+ referenceValue?: (string|null);
+
+ /** Value geoPointValue */
+ geoPointValue?: (google.type.ILatLng|null);
+
+ /** Value arrayValue */
+ arrayValue?: (google.firestore.v1.IArrayValue|null);
+
+ /** Value mapValue */
+ mapValue?: (google.firestore.v1.IMapValue|null);
+
+ /** Value fieldReferenceValue */
+ fieldReferenceValue?: (string|null);
+
+ /** Value variableReferenceValue */
+ variableReferenceValue?: (string|null);
+
+ /** Value functionValue */
+ functionValue?: (google.firestore.v1.IFunction|null);
+
+ /** Value pipelineValue */
+ pipelineValue?: (google.firestore.v1.IPipeline|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value booleanValue. */
+ public booleanValue?: (boolean|null);
+
+ /** Value integerValue. */
+ public integerValue?: (number|Long|string|null);
+
+ /** Value doubleValue. */
+ public doubleValue?: (number|null);
+
+ /** Value timestampValue. */
+ public timestampValue?: (google.protobuf.ITimestamp|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value bytesValue. */
+ public bytesValue?: (Uint8Array|Buffer|string|null);
+
+ /** Value referenceValue. */
+ public referenceValue?: (string|null);
+
+ /** Value geoPointValue. */
+ public geoPointValue?: (google.type.ILatLng|null);
+
+ /** Value arrayValue. */
+ public arrayValue?: (google.firestore.v1.IArrayValue|null);
+
+ /** Value mapValue. */
+ public mapValue?: (google.firestore.v1.IMapValue|null);
+
+ /** Value fieldReferenceValue. */
+ public fieldReferenceValue?: (string|null);
+
+ /** Value variableReferenceValue. */
+ public variableReferenceValue?: (string|null);
+
+ /** Value functionValue. */
+ public functionValue?: (google.firestore.v1.IFunction|null);
+
+ /** Value pipelineValue. */
+ public pipelineValue?: (google.firestore.v1.IPipeline|null);
+
+ /** Value valueType. */
+ public valueType?: ("nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"stringValue"|"bytesValue"|"referenceValue"|"geoPointValue"|"arrayValue"|"mapValue"|"fieldReferenceValue"|"variableReferenceValue"|"functionValue"|"pipelineValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.firestore.v1.IValue): google.firestore.v1.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.firestore.v1.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.firestore.v1.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ArrayValue. */
+ interface IArrayValue {
+
+ /** ArrayValue values */
+ values?: (google.firestore.v1.IValue[]|null);
+ }
+
+ /** Represents an ArrayValue. */
+ class ArrayValue implements IArrayValue {
+
+ /**
+ * Constructs a new ArrayValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IArrayValue);
+
+ /** ArrayValue values. */
+ public values: google.firestore.v1.IValue[];
+
+ /**
+ * Creates a new ArrayValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArrayValue instance
+ */
+ public static create(properties?: google.firestore.v1.IArrayValue): google.firestore.v1.ArrayValue;
+
+ /**
+ * Encodes the specified ArrayValue message. Does not implicitly {@link google.firestore.v1.ArrayValue.verify|verify} messages.
+ * @param message ArrayValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.firestore.v1.ArrayValue.verify|verify} messages.
+ * @param message ArrayValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArrayValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArrayValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ArrayValue;
+
+ /**
+ * Decodes an ArrayValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArrayValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ArrayValue;
+
+ /**
+ * Verifies an ArrayValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ArrayValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArrayValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ArrayValue;
+
+ /**
+ * Creates a plain object from an ArrayValue message. Also converts values to other types if specified.
+ * @param message ArrayValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ArrayValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArrayValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArrayValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MapValue. */
+ interface IMapValue {
+
+ /** MapValue fields */
+ fields?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
+
+ /** Represents a MapValue. */
+ class MapValue implements IMapValue {
+
+ /**
+ * Constructs a new MapValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IMapValue);
+
+ /** MapValue fields. */
+ public fields: { [k: string]: google.firestore.v1.IValue };
+
+ /**
+ * Creates a new MapValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MapValue instance
+ */
+ public static create(properties?: google.firestore.v1.IMapValue): google.firestore.v1.MapValue;
+
+ /**
+ * Encodes the specified MapValue message. Does not implicitly {@link google.firestore.v1.MapValue.verify|verify} messages.
+ * @param message MapValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IMapValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MapValue message, length delimited. Does not implicitly {@link google.firestore.v1.MapValue.verify|verify} messages.
+ * @param message MapValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IMapValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MapValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MapValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.MapValue;
+
+ /**
+ * Decodes a MapValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MapValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.MapValue;
+
+ /**
+ * Verifies a MapValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MapValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MapValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.MapValue;
+
+ /**
+ * Creates a plain object from a MapValue message. Also converts values to other types if specified.
+ * @param message MapValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.MapValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MapValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MapValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Function. */
+ interface IFunction {
+
+ /** Function name */
+ name?: (string|null);
+
+ /** Function args */
+ args?: (google.firestore.v1.IValue[]|null);
+
+ /** Function options */
+ options?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
+
+ /** Represents a Function. */
+ class Function implements IFunction {
+
+ /**
+ * Constructs a new Function.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IFunction);
+
+ /** Function name. */
+ public name: string;
+
+ /** Function args. */
+ public args: google.firestore.v1.IValue[];
+
+ /** Function options. */
+ public options: { [k: string]: google.firestore.v1.IValue };
+
+ /**
+ * Creates a new Function instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Function instance
+ */
+ public static create(properties?: google.firestore.v1.IFunction): google.firestore.v1.Function;
+
+ /**
+ * Encodes the specified Function message. Does not implicitly {@link google.firestore.v1.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Function message, length delimited. Does not implicitly {@link google.firestore.v1.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Function
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Function;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Function
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Function;
+
+ /**
+ * Verifies a Function message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Function message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Function
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Function;
+
+ /**
+ * Creates a plain object from a Function message. Also converts values to other types if specified.
+ * @param message Function
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Function, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Function to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Function
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Pipeline. */
+ interface IPipeline {
+
+ /** Pipeline stages */
+ stages?: (google.firestore.v1.Pipeline.IStage[]|null);
+ }
+
+ /** Represents a Pipeline. */
+ class Pipeline implements IPipeline {
+
+ /**
+ * Constructs a new Pipeline.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPipeline);
+
+ /** Pipeline stages. */
+ public stages: google.firestore.v1.Pipeline.IStage[];
+
+ /**
+ * Creates a new Pipeline instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Pipeline instance
+ */
+ public static create(properties?: google.firestore.v1.IPipeline): google.firestore.v1.Pipeline;
+
+ /**
+ * Encodes the specified Pipeline message. Does not implicitly {@link google.firestore.v1.Pipeline.verify|verify} messages.
+ * @param message Pipeline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IPipeline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Pipeline message, length delimited. Does not implicitly {@link google.firestore.v1.Pipeline.verify|verify} messages.
+ * @param message Pipeline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IPipeline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Pipeline message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Pipeline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Pipeline;
+
+ /**
+ * Decodes a Pipeline message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Pipeline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Pipeline;
+
+ /**
+ * Verifies a Pipeline message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Pipeline message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Pipeline
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Pipeline;
+
+ /**
+ * Creates a plain object from a Pipeline message. Also converts values to other types if specified.
+ * @param message Pipeline
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Pipeline, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Pipeline to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Pipeline
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Pipeline {
+
+ /** Properties of a Stage. */
+ interface IStage {
+
+ /** Stage name */
+ name?: (string|null);
+
+ /** Stage args */
+ args?: (google.firestore.v1.IValue[]|null);
+
+ /** Stage options */
+ options?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
+
+ /** Represents a Stage. */
+ class Stage implements IStage {
+
+ /**
+ * Constructs a new Stage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.Pipeline.IStage);
+
+ /** Stage name. */
+ public name: string;
+
+ /** Stage args. */
+ public args: google.firestore.v1.IValue[];
+
+ /** Stage options. */
+ public options: { [k: string]: google.firestore.v1.IValue };
+
+ /**
+ * Creates a new Stage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Stage instance
+ */
+ public static create(properties?: google.firestore.v1.Pipeline.IStage): google.firestore.v1.Pipeline.Stage;
+
+ /**
+ * Encodes the specified Stage message. Does not implicitly {@link google.firestore.v1.Pipeline.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.Pipeline.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Stage message, length delimited. Does not implicitly {@link google.firestore.v1.Pipeline.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.Pipeline.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Stage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Pipeline.Stage;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Stage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Pipeline.Stage;
+
+ /**
+ * Verifies a Stage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Stage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Stage
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Pipeline.Stage;
+
+ /**
+ * Creates a plain object from a Stage message. Also converts values to other types if specified.
+ * @param message Stage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Pipeline.Stage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Stage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Stage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a BitSequence. */
+ interface IBitSequence {
+
+ /** BitSequence bitmap */
+ bitmap?: (Uint8Array|Buffer|string|null);
+
+ /** BitSequence padding */
+ padding?: (number|null);
+ }
+
+ /** Represents a BitSequence. */
+ class BitSequence implements IBitSequence {
+
+ /**
+ * Constructs a new BitSequence.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBitSequence);
+
+ /** BitSequence bitmap. */
+ public bitmap: (Uint8Array|Buffer|string);
+
+ /** BitSequence padding. */
+ public padding: number;
+
+ /**
+ * Creates a new BitSequence instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BitSequence instance
+ */
+ public static create(properties?: google.firestore.v1.IBitSequence): google.firestore.v1.BitSequence;
+
+ /**
+ * Encodes the specified BitSequence message. Does not implicitly {@link google.firestore.v1.BitSequence.verify|verify} messages.
+ * @param message BitSequence message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBitSequence, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BitSequence message, length delimited. Does not implicitly {@link google.firestore.v1.BitSequence.verify|verify} messages.
+ * @param message BitSequence message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBitSequence, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BitSequence message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BitSequence
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BitSequence;
+
+ /**
+ * Decodes a BitSequence message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BitSequence
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BitSequence;
+
+ /**
+ * Verifies a BitSequence message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BitSequence message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BitSequence
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BitSequence;
+
+ /**
+ * Creates a plain object from a BitSequence message. Also converts values to other types if specified.
+ * @param message BitSequence
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BitSequence, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BitSequence to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BitSequence
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BloomFilter. */
+ interface IBloomFilter {
+
+ /** BloomFilter bits */
+ bits?: (google.firestore.v1.IBitSequence|null);
+
+ /** BloomFilter hashCount */
+ hashCount?: (number|null);
+ }
+
+ /** Represents a BloomFilter. */
+ class BloomFilter implements IBloomFilter {
+
+ /**
+ * Constructs a new BloomFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBloomFilter);
+
+ /** BloomFilter bits. */
+ public bits?: (google.firestore.v1.IBitSequence|null);
+
+ /** BloomFilter hashCount. */
+ public hashCount: number;
+
+ /**
+ * Creates a new BloomFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BloomFilter instance
+ */
+ public static create(properties?: google.firestore.v1.IBloomFilter): google.firestore.v1.BloomFilter;
+
+ /**
+ * Encodes the specified BloomFilter message. Does not implicitly {@link google.firestore.v1.BloomFilter.verify|verify} messages.
+ * @param message BloomFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBloomFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BloomFilter message, length delimited. Does not implicitly {@link google.firestore.v1.BloomFilter.verify|verify} messages.
+ * @param message BloomFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBloomFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BloomFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BloomFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BloomFilter;
+
+ /**
+ * Decodes a BloomFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BloomFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BloomFilter;
+
+ /**
+ * Verifies a BloomFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BloomFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BloomFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BloomFilter;
+
+ /**
+ * Creates a plain object from a BloomFilter message. Also converts values to other types if specified.
+ * @param message BloomFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BloomFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BloomFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BloomFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentMask. */
+ interface IDocumentMask {
+
+ /** DocumentMask fieldPaths */
+ fieldPaths?: (string[]|null);
+ }
+
+ /** Represents a DocumentMask. */
+ class DocumentMask implements IDocumentMask {
+
+ /**
+ * Constructs a new DocumentMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocumentMask);
+
+ /** DocumentMask fieldPaths. */
+ public fieldPaths: string[];
+
+ /**
+ * Creates a new DocumentMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentMask instance
+ */
+ public static create(properties?: google.firestore.v1.IDocumentMask): google.firestore.v1.DocumentMask;
+
+ /**
+ * Encodes the specified DocumentMask message. Does not implicitly {@link google.firestore.v1.DocumentMask.verify|verify} messages.
+ * @param message DocumentMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IDocumentMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentMask message, length delimited. Does not implicitly {@link google.firestore.v1.DocumentMask.verify|verify} messages.
+ * @param message DocumentMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IDocumentMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.DocumentMask;
+
+ /**
+ * Decodes a DocumentMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.DocumentMask;
+
+ /**
+ * Verifies a DocumentMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentMask;
+
+ /**
+ * Creates a plain object from a DocumentMask message. Also converts values to other types if specified.
+ * @param message DocumentMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.DocumentMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Precondition. */
+ interface IPrecondition {
+
+ /** Precondition exists */
+ exists?: (boolean|null);
+
+ /** Precondition updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a Precondition. */
+ class Precondition implements IPrecondition {
+
+ /**
+ * Constructs a new Precondition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPrecondition);
+
+ /** Precondition exists. */
+ public exists?: (boolean|null);
+
+ /** Precondition updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Precondition conditionType. */
+ public conditionType?: ("exists"|"updateTime");
+
+ /**
+ * Creates a new Precondition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Precondition instance
+ */
+ public static create(properties?: google.firestore.v1.IPrecondition): google.firestore.v1.Precondition;
+
+ /**
+ * Encodes the specified Precondition message. Does not implicitly {@link google.firestore.v1.Precondition.verify|verify} messages.
+ * @param message Precondition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IPrecondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Precondition message, length delimited. Does not implicitly {@link google.firestore.v1.Precondition.verify|verify} messages.
+ * @param message Precondition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IPrecondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Precondition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Precondition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Precondition;
+
+ /**
+ * Decodes a Precondition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Precondition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Precondition;
+
+ /**
+ * Verifies a Precondition message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Precondition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Precondition
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Precondition;
+
+ /**
+ * Creates a plain object from a Precondition message. Also converts values to other types if specified.
+ * @param message Precondition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Precondition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Precondition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Precondition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TransactionOptions. */
+ interface ITransactionOptions {
+
+ /** TransactionOptions readOnly */
+ readOnly?: (google.firestore.v1.TransactionOptions.IReadOnly|null);
+
+ /** TransactionOptions readWrite */
+ readWrite?: (google.firestore.v1.TransactionOptions.IReadWrite|null);
+ }
+
+ /** Represents a TransactionOptions. */
+ class TransactionOptions implements ITransactionOptions {
+
+ /**
+ * Constructs a new TransactionOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ITransactionOptions);
+
+ /** TransactionOptions readOnly. */
+ public readOnly?: (google.firestore.v1.TransactionOptions.IReadOnly|null);
+
+ /** TransactionOptions readWrite. */
+ public readWrite?: (google.firestore.v1.TransactionOptions.IReadWrite|null);
+
+ /** TransactionOptions mode. */
+ public mode?: ("readOnly"|"readWrite");
+
+ /**
+ * Creates a new TransactionOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransactionOptions instance
+ */
+ public static create(properties?: google.firestore.v1.ITransactionOptions): google.firestore.v1.TransactionOptions;
+
+ /**
+ * Encodes the specified TransactionOptions message. Does not implicitly {@link google.firestore.v1.TransactionOptions.verify|verify} messages.
+ * @param message TransactionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransactionOptions message, length delimited. Does not implicitly {@link google.firestore.v1.TransactionOptions.verify|verify} messages.
+ * @param message TransactionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransactionOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransactionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.TransactionOptions;
+
+ /**
+ * Decodes a TransactionOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransactionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.TransactionOptions;
+
+ /**
+ * Verifies a TransactionOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransactionOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.TransactionOptions;
+
+ /**
+ * Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.
+ * @param message TransactionOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.TransactionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransactionOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransactionOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TransactionOptions {
+
+ /** ConcurrencyMode enum. */
+ enum ConcurrencyMode {
+ CONCURRENCY_MODE_UNSPECIFIED = 0,
+ OPTIMISTIC = 1,
+ PESSIMISTIC = 2
+ }
+
+ /** Properties of a ReadWrite. */
+ interface IReadWrite {
+
+ /** ReadWrite retryTransaction */
+ retryTransaction?: (Uint8Array|Buffer|string|null);
+
+ /** ReadWrite concurrencyMode */
+ concurrencyMode?: (google.firestore.v1.TransactionOptions.ConcurrencyMode|keyof typeof google.firestore.v1.TransactionOptions.ConcurrencyMode|null);
+ }
+
+ /** Represents a ReadWrite. */
+ class ReadWrite implements IReadWrite {
+
+ /**
+ * Constructs a new ReadWrite.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.TransactionOptions.IReadWrite);
+
+ /** ReadWrite retryTransaction. */
+ public retryTransaction: (Uint8Array|Buffer|string);
+
+ /** ReadWrite concurrencyMode. */
+ public concurrencyMode: (google.firestore.v1.TransactionOptions.ConcurrencyMode|keyof typeof google.firestore.v1.TransactionOptions.ConcurrencyMode);
+
+ /**
+ * Creates a new ReadWrite instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadWrite instance
+ */
+ public static create(properties?: google.firestore.v1.TransactionOptions.IReadWrite): google.firestore.v1.TransactionOptions.ReadWrite;
+
+ /**
+ * Encodes the specified ReadWrite message. Does not implicitly {@link google.firestore.v1.TransactionOptions.ReadWrite.verify|verify} messages.
+ * @param message ReadWrite message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadWrite message, length delimited. Does not implicitly {@link google.firestore.v1.TransactionOptions.ReadWrite.verify|verify} messages.
+ * @param message ReadWrite message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadWrite message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadWrite
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.TransactionOptions.ReadWrite;
+
+ /**
+ * Decodes a ReadWrite message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadWrite
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.TransactionOptions.ReadWrite;
+
+ /**
+ * Verifies a ReadWrite message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReadWrite message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadWrite
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.TransactionOptions.ReadWrite;
+
+ /**
+ * Creates a plain object from a ReadWrite message. Also converts values to other types if specified.
+ * @param message ReadWrite
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.TransactionOptions.ReadWrite, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadWrite to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadWrite
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReadOnly. */
+ interface IReadOnly {
+
+ /** ReadOnly readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a ReadOnly. */
+ class ReadOnly implements IReadOnly {
+
+ /**
+ * Constructs a new ReadOnly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.TransactionOptions.IReadOnly);
+
+ /** ReadOnly readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReadOnly consistencySelector. */
+ public consistencySelector?: "readTime";
+
+ /**
+ * Creates a new ReadOnly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadOnly instance
+ */
+ public static create(properties?: google.firestore.v1.TransactionOptions.IReadOnly): google.firestore.v1.TransactionOptions.ReadOnly;
+
+ /**
+ * Encodes the specified ReadOnly message. Does not implicitly {@link google.firestore.v1.TransactionOptions.ReadOnly.verify|verify} messages.
+ * @param message ReadOnly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadOnly message, length delimited. Does not implicitly {@link google.firestore.v1.TransactionOptions.ReadOnly.verify|verify} messages.
+ * @param message ReadOnly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadOnly message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadOnly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.TransactionOptions.ReadOnly;
+
+ /**
+ * Decodes a ReadOnly message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadOnly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.TransactionOptions.ReadOnly;
+
+ /**
+ * Verifies a ReadOnly message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReadOnly message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadOnly
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.TransactionOptions.ReadOnly;
+
+ /**
+ * Creates a plain object from a ReadOnly message. Also converts values to other types if specified.
+ * @param message ReadOnly
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.TransactionOptions.ReadOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadOnly to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadOnly
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExplainStats. */
+ interface IExplainStats {
+
+ /** ExplainStats data */
+ data?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an ExplainStats. */
+ class ExplainStats implements IExplainStats {
+
+ /**
+ * Constructs a new ExplainStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExplainStats);
+
+ /** ExplainStats data. */
+ public data?: (google.protobuf.IAny|null);
+
+ /**
+ * Creates a new ExplainStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExplainStats instance
+ */
+ public static create(properties?: google.firestore.v1.IExplainStats): google.firestore.v1.ExplainStats;
+
+ /**
+ * Encodes the specified ExplainStats message. Does not implicitly {@link google.firestore.v1.ExplainStats.verify|verify} messages.
+ * @param message ExplainStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IExplainStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExplainStats message, length delimited. Does not implicitly {@link google.firestore.v1.ExplainStats.verify|verify} messages.
+ * @param message ExplainStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IExplainStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExplainStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExplainStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ExplainStats;
+
+ /**
+ * Decodes an ExplainStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExplainStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ExplainStats;
+
+ /**
+ * Verifies an ExplainStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExplainStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExplainStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExplainStats;
+
+ /**
+ * Creates a plain object from an ExplainStats message. Also converts values to other types if specified.
+ * @param message ExplainStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ExplainStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExplainStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExplainStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a Firestore */
+ class Firestore extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Firestore service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Firestore service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Firestore;
+
+ /**
+ * Calls GetDocument.
+ * @param request GetDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public getDocument(request: google.firestore.v1.IGetDocumentRequest, callback: google.firestore.v1.Firestore.GetDocumentCallback): void;
+
+ /**
+ * Calls GetDocument.
+ * @param request GetDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public getDocument(request: google.firestore.v1.IGetDocumentRequest): Promise;
+
+ /**
+ * Calls ListDocuments.
+ * @param request ListDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDocumentsResponse
+ */
+ public listDocuments(request: google.firestore.v1.IListDocumentsRequest, callback: google.firestore.v1.Firestore.ListDocumentsCallback): void;
+
+ /**
+ * Calls ListDocuments.
+ * @param request ListDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public listDocuments(request: google.firestore.v1.IListDocumentsRequest): Promise;
+
+ /**
+ * Calls UpdateDocument.
+ * @param request UpdateDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public updateDocument(request: google.firestore.v1.IUpdateDocumentRequest, callback: google.firestore.v1.Firestore.UpdateDocumentCallback): void;
+
+ /**
+ * Calls UpdateDocument.
+ * @param request UpdateDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public updateDocument(request: google.firestore.v1.IUpdateDocumentRequest): Promise;
+
+ /**
+ * Calls DeleteDocument.
+ * @param request DeleteDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteDocument(request: google.firestore.v1.IDeleteDocumentRequest, callback: google.firestore.v1.Firestore.DeleteDocumentCallback): void;
+
+ /**
+ * Calls DeleteDocument.
+ * @param request DeleteDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDocument(request: google.firestore.v1.IDeleteDocumentRequest): Promise;
+
+ /**
+ * Calls BatchGetDocuments.
+ * @param request BatchGetDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BatchGetDocumentsResponse
+ */
+ public batchGetDocuments(request: google.firestore.v1.IBatchGetDocumentsRequest, callback: google.firestore.v1.Firestore.BatchGetDocumentsCallback): void;
+
+ /**
+ * Calls BatchGetDocuments.
+ * @param request BatchGetDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public batchGetDocuments(request: google.firestore.v1.IBatchGetDocumentsRequest): Promise;
+
+ /**
+ * Calls BeginTransaction.
+ * @param request BeginTransactionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BeginTransactionResponse
+ */
+ public beginTransaction(request: google.firestore.v1.IBeginTransactionRequest, callback: google.firestore.v1.Firestore.BeginTransactionCallback): void;
+
+ /**
+ * Calls BeginTransaction.
+ * @param request BeginTransactionRequest message or plain object
+ * @returns Promise
+ */
+ public beginTransaction(request: google.firestore.v1.IBeginTransactionRequest): Promise;
+
+ /**
+ * Calls Commit.
+ * @param request CommitRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CommitResponse
+ */
+ public commit(request: google.firestore.v1.ICommitRequest, callback: google.firestore.v1.Firestore.CommitCallback): void;
+
+ /**
+ * Calls Commit.
+ * @param request CommitRequest message or plain object
+ * @returns Promise
+ */
+ public commit(request: google.firestore.v1.ICommitRequest): Promise;
+
+ /**
+ * Calls Rollback.
+ * @param request RollbackRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public rollback(request: google.firestore.v1.IRollbackRequest, callback: google.firestore.v1.Firestore.RollbackCallback): void;
+
+ /**
+ * Calls Rollback.
+ * @param request RollbackRequest message or plain object
+ * @returns Promise
+ */
+ public rollback(request: google.firestore.v1.IRollbackRequest): Promise;
+
+ /**
+ * Calls RunQuery.
+ * @param request RunQueryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RunQueryResponse
+ */
+ public runQuery(request: google.firestore.v1.IRunQueryRequest, callback: google.firestore.v1.Firestore.RunQueryCallback): void;
+
+ /**
+ * Calls RunQuery.
+ * @param request RunQueryRequest message or plain object
+ * @returns Promise
+ */
+ public runQuery(request: google.firestore.v1.IRunQueryRequest): Promise;
+
+ /**
+ * Calls ExecutePipeline.
+ * @param request ExecutePipelineRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ExecutePipelineResponse
+ */
+ public executePipeline(request: google.firestore.v1.IExecutePipelineRequest, callback: google.firestore.v1.Firestore.ExecutePipelineCallback): void;
+
+ /**
+ * Calls ExecutePipeline.
+ * @param request ExecutePipelineRequest message or plain object
+ * @returns Promise
+ */
+ public executePipeline(request: google.firestore.v1.IExecutePipelineRequest): Promise;
+
+ /**
+ * Calls RunAggregationQuery.
+ * @param request RunAggregationQueryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RunAggregationQueryResponse
+ */
+ public runAggregationQuery(request: google.firestore.v1.IRunAggregationQueryRequest, callback: google.firestore.v1.Firestore.RunAggregationQueryCallback): void;
+
+ /**
+ * Calls RunAggregationQuery.
+ * @param request RunAggregationQueryRequest message or plain object
+ * @returns Promise
+ */
+ public runAggregationQuery(request: google.firestore.v1.IRunAggregationQueryRequest): Promise;
+
+ /**
+ * Calls PartitionQuery.
+ * @param request PartitionQueryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PartitionQueryResponse
+ */
+ public partitionQuery(request: google.firestore.v1.IPartitionQueryRequest, callback: google.firestore.v1.Firestore.PartitionQueryCallback): void;
+
+ /**
+ * Calls PartitionQuery.
+ * @param request PartitionQueryRequest message or plain object
+ * @returns Promise
+ */
+ public partitionQuery(request: google.firestore.v1.IPartitionQueryRequest): Promise;
+
+ /**
+ * Calls Write.
+ * @param request WriteRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and WriteResponse
+ */
+ public write(request: google.firestore.v1.IWriteRequest, callback: google.firestore.v1.Firestore.WriteCallback): void;
+
+ /**
+ * Calls Write.
+ * @param request WriteRequest message or plain object
+ * @returns Promise
+ */
+ public write(request: google.firestore.v1.IWriteRequest): Promise;
+
+ /**
+ * Calls Listen.
+ * @param request ListenRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListenResponse
+ */
+ public listen(request: google.firestore.v1.IListenRequest, callback: google.firestore.v1.Firestore.ListenCallback): void;
+
+ /**
+ * Calls Listen.
+ * @param request ListenRequest message or plain object
+ * @returns Promise
+ */
+ public listen(request: google.firestore.v1.IListenRequest): Promise;
+
+ /**
+ * Calls ListCollectionIds.
+ * @param request ListCollectionIdsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCollectionIdsResponse
+ */
+ public listCollectionIds(request: google.firestore.v1.IListCollectionIdsRequest, callback: google.firestore.v1.Firestore.ListCollectionIdsCallback): void;
+
+ /**
+ * Calls ListCollectionIds.
+ * @param request ListCollectionIdsRequest message or plain object
+ * @returns Promise
+ */
+ public listCollectionIds(request: google.firestore.v1.IListCollectionIdsRequest): Promise;
+
+ /**
+ * Calls BatchWrite.
+ * @param request BatchWriteRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BatchWriteResponse
+ */
+ public batchWrite(request: google.firestore.v1.IBatchWriteRequest, callback: google.firestore.v1.Firestore.BatchWriteCallback): void;
+
+ /**
+ * Calls BatchWrite.
+ * @param request BatchWriteRequest message or plain object
+ * @returns Promise
+ */
+ public batchWrite(request: google.firestore.v1.IBatchWriteRequest): Promise;
+
+ /**
+ * Calls CreateDocument.
+ * @param request CreateDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public createDocument(request: google.firestore.v1.ICreateDocumentRequest, callback: google.firestore.v1.Firestore.CreateDocumentCallback): void;
+
+ /**
+ * Calls CreateDocument.
+ * @param request CreateDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public createDocument(request: google.firestore.v1.ICreateDocumentRequest): Promise;
+ }
+
+ namespace Firestore {
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|getDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type GetDocumentCallback = (error: (Error|null), response?: google.firestore.v1.Document) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|listDocuments}.
+ * @param error Error, if any
+ * @param [response] ListDocumentsResponse
+ */
+ type ListDocumentsCallback = (error: (Error|null), response?: google.firestore.v1.ListDocumentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|updateDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type UpdateDocumentCallback = (error: (Error|null), response?: google.firestore.v1.Document) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|deleteDocument}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteDocumentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|batchGetDocuments}.
+ * @param error Error, if any
+ * @param [response] BatchGetDocumentsResponse
+ */
+ type BatchGetDocumentsCallback = (error: (Error|null), response?: google.firestore.v1.BatchGetDocumentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|beginTransaction}.
+ * @param error Error, if any
+ * @param [response] BeginTransactionResponse
+ */
+ type BeginTransactionCallback = (error: (Error|null), response?: google.firestore.v1.BeginTransactionResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|commit}.
+ * @param error Error, if any
+ * @param [response] CommitResponse
+ */
+ type CommitCallback = (error: (Error|null), response?: google.firestore.v1.CommitResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|rollback}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type RollbackCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|runQuery}.
+ * @param error Error, if any
+ * @param [response] RunQueryResponse
+ */
+ type RunQueryCallback = (error: (Error|null), response?: google.firestore.v1.RunQueryResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|executePipeline}.
+ * @param error Error, if any
+ * @param [response] ExecutePipelineResponse
+ */
+ type ExecutePipelineCallback = (error: (Error|null), response?: google.firestore.v1.ExecutePipelineResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|runAggregationQuery}.
+ * @param error Error, if any
+ * @param [response] RunAggregationQueryResponse
+ */
+ type RunAggregationQueryCallback = (error: (Error|null), response?: google.firestore.v1.RunAggregationQueryResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|partitionQuery}.
+ * @param error Error, if any
+ * @param [response] PartitionQueryResponse
+ */
+ type PartitionQueryCallback = (error: (Error|null), response?: google.firestore.v1.PartitionQueryResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|write}.
+ * @param error Error, if any
+ * @param [response] WriteResponse
+ */
+ type WriteCallback = (error: (Error|null), response?: google.firestore.v1.WriteResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|listen}.
+ * @param error Error, if any
+ * @param [response] ListenResponse
+ */
+ type ListenCallback = (error: (Error|null), response?: google.firestore.v1.ListenResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|listCollectionIds}.
+ * @param error Error, if any
+ * @param [response] ListCollectionIdsResponse
+ */
+ type ListCollectionIdsCallback = (error: (Error|null), response?: google.firestore.v1.ListCollectionIdsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|batchWrite}.
+ * @param error Error, if any
+ * @param [response] BatchWriteResponse
+ */
+ type BatchWriteCallback = (error: (Error|null), response?: google.firestore.v1.BatchWriteResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore|createDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type CreateDocumentCallback = (error: (Error|null), response?: google.firestore.v1.Document) => void;
+ }
+
+ /** Properties of a GetDocumentRequest. */
+ interface IGetDocumentRequest {
+
+ /** GetDocumentRequest name */
+ name?: (string|null);
+
+ /** GetDocumentRequest mask */
+ mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** GetDocumentRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** GetDocumentRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a GetDocumentRequest. */
+ class GetDocumentRequest implements IGetDocumentRequest {
+
+ /**
+ * Constructs a new GetDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IGetDocumentRequest);
+
+ /** GetDocumentRequest name. */
+ public name: string;
+
+ /** GetDocumentRequest mask. */
+ public mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** GetDocumentRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** GetDocumentRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** GetDocumentRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"readTime");
+
+ /**
+ * Creates a new GetDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IGetDocumentRequest): google.firestore.v1.GetDocumentRequest;
+
+ /**
+ * Encodes the specified GetDocumentRequest message. Does not implicitly {@link google.firestore.v1.GetDocumentRequest.verify|verify} messages.
+ * @param message GetDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IGetDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1.GetDocumentRequest.verify|verify} messages.
+ * @param message GetDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IGetDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.GetDocumentRequest;
+
+ /**
+ * Decodes a GetDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.GetDocumentRequest;
+
+ /**
+ * Verifies a GetDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.GetDocumentRequest;
+
+ /**
+ * Creates a plain object from a GetDocumentRequest message. Also converts values to other types if specified.
+ * @param message GetDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.GetDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDocumentsRequest. */
+ interface IListDocumentsRequest {
+
+ /** ListDocumentsRequest parent */
+ parent?: (string|null);
+
+ /** ListDocumentsRequest collectionId */
+ collectionId?: (string|null);
+
+ /** ListDocumentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDocumentsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListDocumentsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListDocumentsRequest mask */
+ mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** ListDocumentsRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** ListDocumentsRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListDocumentsRequest showMissing */
+ showMissing?: (boolean|null);
+ }
+
+ /** Represents a ListDocumentsRequest. */
+ class ListDocumentsRequest implements IListDocumentsRequest {
+
+ /**
+ * Constructs a new ListDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListDocumentsRequest);
+
+ /** ListDocumentsRequest parent. */
+ public parent: string;
+
+ /** ListDocumentsRequest collectionId. */
+ public collectionId: string;
+
+ /** ListDocumentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDocumentsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListDocumentsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListDocumentsRequest mask. */
+ public mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** ListDocumentsRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** ListDocumentsRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListDocumentsRequest showMissing. */
+ public showMissing: boolean;
+
+ /** ListDocumentsRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"readTime");
+
+ /**
+ * Creates a new ListDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDocumentsRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IListDocumentsRequest): google.firestore.v1.ListDocumentsRequest;
+
+ /**
+ * Encodes the specified ListDocumentsRequest message. Does not implicitly {@link google.firestore.v1.ListDocumentsRequest.verify|verify} messages.
+ * @param message ListDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IListDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDocumentsRequest message, length delimited. Does not implicitly {@link google.firestore.v1.ListDocumentsRequest.verify|verify} messages.
+ * @param message ListDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IListDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ListDocumentsRequest;
+
+ /**
+ * Decodes a ListDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ListDocumentsRequest;
+
+ /**
+ * Verifies a ListDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListDocumentsRequest;
+
+ /**
+ * Creates a plain object from a ListDocumentsRequest message. Also converts values to other types if specified.
+ * @param message ListDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ListDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDocumentsResponse. */
+ interface IListDocumentsResponse {
+
+ /** ListDocumentsResponse documents */
+ documents?: (google.firestore.v1.IDocument[]|null);
+
+ /** ListDocumentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListDocumentsResponse. */
+ class ListDocumentsResponse implements IListDocumentsResponse {
+
+ /**
+ * Constructs a new ListDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListDocumentsResponse);
+
+ /** ListDocumentsResponse documents. */
+ public documents: google.firestore.v1.IDocument[];
+
+ /** ListDocumentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDocumentsResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IListDocumentsResponse): google.firestore.v1.ListDocumentsResponse;
+
+ /**
+ * Encodes the specified ListDocumentsResponse message. Does not implicitly {@link google.firestore.v1.ListDocumentsResponse.verify|verify} messages.
+ * @param message ListDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IListDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDocumentsResponse message, length delimited. Does not implicitly {@link google.firestore.v1.ListDocumentsResponse.verify|verify} messages.
+ * @param message ListDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IListDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ListDocumentsResponse;
+
+ /**
+ * Decodes a ListDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ListDocumentsResponse;
+
+ /**
+ * Verifies a ListDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListDocumentsResponse;
+
+ /**
+ * Creates a plain object from a ListDocumentsResponse message. Also converts values to other types if specified.
+ * @param message ListDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ListDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateDocumentRequest. */
+ interface ICreateDocumentRequest {
+
+ /** CreateDocumentRequest parent */
+ parent?: (string|null);
+
+ /** CreateDocumentRequest collectionId */
+ collectionId?: (string|null);
+
+ /** CreateDocumentRequest documentId */
+ documentId?: (string|null);
+
+ /** CreateDocumentRequest document */
+ document?: (google.firestore.v1.IDocument|null);
+
+ /** CreateDocumentRequest mask */
+ mask?: (google.firestore.v1.IDocumentMask|null);
+ }
+
+ /** Represents a CreateDocumentRequest. */
+ class CreateDocumentRequest implements ICreateDocumentRequest {
+
+ /**
+ * Constructs a new CreateDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ICreateDocumentRequest);
+
+ /** CreateDocumentRequest parent. */
+ public parent: string;
+
+ /** CreateDocumentRequest collectionId. */
+ public collectionId: string;
+
+ /** CreateDocumentRequest documentId. */
+ public documentId: string;
+
+ /** CreateDocumentRequest document. */
+ public document?: (google.firestore.v1.IDocument|null);
+
+ /** CreateDocumentRequest mask. */
+ public mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /**
+ * Creates a new CreateDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1.ICreateDocumentRequest): google.firestore.v1.CreateDocumentRequest;
+
+ /**
+ * Encodes the specified CreateDocumentRequest message. Does not implicitly {@link google.firestore.v1.CreateDocumentRequest.verify|verify} messages.
+ * @param message CreateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.ICreateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1.CreateDocumentRequest.verify|verify} messages.
+ * @param message CreateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.ICreateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.CreateDocumentRequest;
+
+ /**
+ * Decodes a CreateDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.CreateDocumentRequest;
+
+ /**
+ * Verifies a CreateDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.CreateDocumentRequest;
+
+ /**
+ * Creates a plain object from a CreateDocumentRequest message. Also converts values to other types if specified.
+ * @param message CreateDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.CreateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDocumentRequest. */
+ interface IUpdateDocumentRequest {
+
+ /** UpdateDocumentRequest document */
+ document?: (google.firestore.v1.IDocument|null);
+
+ /** UpdateDocumentRequest updateMask */
+ updateMask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest mask */
+ mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest currentDocument */
+ currentDocument?: (google.firestore.v1.IPrecondition|null);
+ }
+
+ /** Represents an UpdateDocumentRequest. */
+ class UpdateDocumentRequest implements IUpdateDocumentRequest {
+
+ /**
+ * Constructs a new UpdateDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IUpdateDocumentRequest);
+
+ /** UpdateDocumentRequest document. */
+ public document?: (google.firestore.v1.IDocument|null);
+
+ /** UpdateDocumentRequest updateMask. */
+ public updateMask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest mask. */
+ public mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest currentDocument. */
+ public currentDocument?: (google.firestore.v1.IPrecondition|null);
+
+ /**
+ * Creates a new UpdateDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IUpdateDocumentRequest): google.firestore.v1.UpdateDocumentRequest;
+
+ /**
+ * Encodes the specified UpdateDocumentRequest message. Does not implicitly {@link google.firestore.v1.UpdateDocumentRequest.verify|verify} messages.
+ * @param message UpdateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IUpdateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1.UpdateDocumentRequest.verify|verify} messages.
+ * @param message UpdateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IUpdateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.UpdateDocumentRequest;
+
+ /**
+ * Decodes an UpdateDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.UpdateDocumentRequest;
+
+ /**
+ * Verifies an UpdateDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.UpdateDocumentRequest;
+
+ /**
+ * Creates a plain object from an UpdateDocumentRequest message. Also converts values to other types if specified.
+ * @param message UpdateDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.UpdateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDocumentRequest. */
+ interface IDeleteDocumentRequest {
+
+ /** DeleteDocumentRequest name */
+ name?: (string|null);
+
+ /** DeleteDocumentRequest currentDocument */
+ currentDocument?: (google.firestore.v1.IPrecondition|null);
+ }
+
+ /** Represents a DeleteDocumentRequest. */
+ class DeleteDocumentRequest implements IDeleteDocumentRequest {
+
+ /**
+ * Constructs a new DeleteDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDeleteDocumentRequest);
+
+ /** DeleteDocumentRequest name. */
+ public name: string;
+
+ /** DeleteDocumentRequest currentDocument. */
+ public currentDocument?: (google.firestore.v1.IPrecondition|null);
+
+ /**
+ * Creates a new DeleteDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IDeleteDocumentRequest): google.firestore.v1.DeleteDocumentRequest;
+
+ /**
+ * Encodes the specified DeleteDocumentRequest message. Does not implicitly {@link google.firestore.v1.DeleteDocumentRequest.verify|verify} messages.
+ * @param message DeleteDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IDeleteDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1.DeleteDocumentRequest.verify|verify} messages.
+ * @param message DeleteDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IDeleteDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.DeleteDocumentRequest;
+
+ /**
+ * Decodes a DeleteDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.DeleteDocumentRequest;
+
+ /**
+ * Verifies a DeleteDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DeleteDocumentRequest;
+
+ /**
+ * Creates a plain object from a DeleteDocumentRequest message. Also converts values to other types if specified.
+ * @param message DeleteDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.DeleteDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchGetDocumentsRequest. */
+ interface IBatchGetDocumentsRequest {
+
+ /** BatchGetDocumentsRequest database */
+ database?: (string|null);
+
+ /** BatchGetDocumentsRequest documents */
+ documents?: (string[]|null);
+
+ /** BatchGetDocumentsRequest mask */
+ mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** BatchGetDocumentsRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** BatchGetDocumentsRequest newTransaction */
+ newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** BatchGetDocumentsRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a BatchGetDocumentsRequest. */
+ class BatchGetDocumentsRequest implements IBatchGetDocumentsRequest {
+
+ /**
+ * Constructs a new BatchGetDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBatchGetDocumentsRequest);
+
+ /** BatchGetDocumentsRequest database. */
+ public database: string;
+
+ /** BatchGetDocumentsRequest documents. */
+ public documents: string[];
+
+ /** BatchGetDocumentsRequest mask. */
+ public mask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** BatchGetDocumentsRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** BatchGetDocumentsRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** BatchGetDocumentsRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchGetDocumentsRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+
+ /**
+ * Creates a new BatchGetDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchGetDocumentsRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IBatchGetDocumentsRequest): google.firestore.v1.BatchGetDocumentsRequest;
+
+ /**
+ * Encodes the specified BatchGetDocumentsRequest message. Does not implicitly {@link google.firestore.v1.BatchGetDocumentsRequest.verify|verify} messages.
+ * @param message BatchGetDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBatchGetDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchGetDocumentsRequest message, length delimited. Does not implicitly {@link google.firestore.v1.BatchGetDocumentsRequest.verify|verify} messages.
+ * @param message BatchGetDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBatchGetDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchGetDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchGetDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BatchGetDocumentsRequest;
+
+ /**
+ * Decodes a BatchGetDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchGetDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BatchGetDocumentsRequest;
+
+ /**
+ * Verifies a BatchGetDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchGetDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchGetDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BatchGetDocumentsRequest;
+
+ /**
+ * Creates a plain object from a BatchGetDocumentsRequest message. Also converts values to other types if specified.
+ * @param message BatchGetDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BatchGetDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchGetDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchGetDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchGetDocumentsResponse. */
+ interface IBatchGetDocumentsResponse {
+
+ /** BatchGetDocumentsResponse found */
+ found?: (google.firestore.v1.IDocument|null);
+
+ /** BatchGetDocumentsResponse missing */
+ missing?: (string|null);
+
+ /** BatchGetDocumentsResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** BatchGetDocumentsResponse readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a BatchGetDocumentsResponse. */
+ class BatchGetDocumentsResponse implements IBatchGetDocumentsResponse {
+
+ /**
+ * Constructs a new BatchGetDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBatchGetDocumentsResponse);
+
+ /** BatchGetDocumentsResponse found. */
+ public found?: (google.firestore.v1.IDocument|null);
+
+ /** BatchGetDocumentsResponse missing. */
+ public missing?: (string|null);
+
+ /** BatchGetDocumentsResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /** BatchGetDocumentsResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchGetDocumentsResponse result. */
+ public result?: ("found"|"missing");
+
+ /**
+ * Creates a new BatchGetDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchGetDocumentsResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IBatchGetDocumentsResponse): google.firestore.v1.BatchGetDocumentsResponse;
+
+ /**
+ * Encodes the specified BatchGetDocumentsResponse message. Does not implicitly {@link google.firestore.v1.BatchGetDocumentsResponse.verify|verify} messages.
+ * @param message BatchGetDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBatchGetDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchGetDocumentsResponse message, length delimited. Does not implicitly {@link google.firestore.v1.BatchGetDocumentsResponse.verify|verify} messages.
+ * @param message BatchGetDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBatchGetDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchGetDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchGetDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BatchGetDocumentsResponse;
+
+ /**
+ * Decodes a BatchGetDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchGetDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BatchGetDocumentsResponse;
+
+ /**
+ * Verifies a BatchGetDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchGetDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchGetDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BatchGetDocumentsResponse;
+
+ /**
+ * Creates a plain object from a BatchGetDocumentsResponse message. Also converts values to other types if specified.
+ * @param message BatchGetDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BatchGetDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchGetDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchGetDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BeginTransactionRequest. */
+ interface IBeginTransactionRequest {
+
+ /** BeginTransactionRequest database */
+ database?: (string|null);
+
+ /** BeginTransactionRequest options */
+ options?: (google.firestore.v1.ITransactionOptions|null);
+ }
+
+ /** Represents a BeginTransactionRequest. */
+ class BeginTransactionRequest implements IBeginTransactionRequest {
+
+ /**
+ * Constructs a new BeginTransactionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBeginTransactionRequest);
+
+ /** BeginTransactionRequest database. */
+ public database: string;
+
+ /** BeginTransactionRequest options. */
+ public options?: (google.firestore.v1.ITransactionOptions|null);
+
+ /**
+ * Creates a new BeginTransactionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BeginTransactionRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IBeginTransactionRequest): google.firestore.v1.BeginTransactionRequest;
+
+ /**
+ * Encodes the specified BeginTransactionRequest message. Does not implicitly {@link google.firestore.v1.BeginTransactionRequest.verify|verify} messages.
+ * @param message BeginTransactionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBeginTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BeginTransactionRequest message, length delimited. Does not implicitly {@link google.firestore.v1.BeginTransactionRequest.verify|verify} messages.
+ * @param message BeginTransactionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBeginTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BeginTransactionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BeginTransactionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BeginTransactionRequest;
+
+ /**
+ * Decodes a BeginTransactionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BeginTransactionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BeginTransactionRequest;
+
+ /**
+ * Verifies a BeginTransactionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BeginTransactionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BeginTransactionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BeginTransactionRequest;
+
+ /**
+ * Creates a plain object from a BeginTransactionRequest message. Also converts values to other types if specified.
+ * @param message BeginTransactionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BeginTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BeginTransactionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BeginTransactionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BeginTransactionResponse. */
+ interface IBeginTransactionResponse {
+
+ /** BeginTransactionResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a BeginTransactionResponse. */
+ class BeginTransactionResponse implements IBeginTransactionResponse {
+
+ /**
+ * Constructs a new BeginTransactionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBeginTransactionResponse);
+
+ /** BeginTransactionResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new BeginTransactionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BeginTransactionResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IBeginTransactionResponse): google.firestore.v1.BeginTransactionResponse;
+
+ /**
+ * Encodes the specified BeginTransactionResponse message. Does not implicitly {@link google.firestore.v1.BeginTransactionResponse.verify|verify} messages.
+ * @param message BeginTransactionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBeginTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BeginTransactionResponse message, length delimited. Does not implicitly {@link google.firestore.v1.BeginTransactionResponse.verify|verify} messages.
+ * @param message BeginTransactionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBeginTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BeginTransactionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BeginTransactionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BeginTransactionResponse;
+
+ /**
+ * Decodes a BeginTransactionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BeginTransactionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BeginTransactionResponse;
+
+ /**
+ * Verifies a BeginTransactionResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BeginTransactionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BeginTransactionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BeginTransactionResponse;
+
+ /**
+ * Creates a plain object from a BeginTransactionResponse message. Also converts values to other types if specified.
+ * @param message BeginTransactionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BeginTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BeginTransactionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BeginTransactionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommitRequest. */
+ interface ICommitRequest {
+
+ /** CommitRequest database */
+ database?: (string|null);
+
+ /** CommitRequest writes */
+ writes?: (google.firestore.v1.IWrite[]|null);
+
+ /** CommitRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a CommitRequest. */
+ class CommitRequest implements ICommitRequest {
+
+ /**
+ * Constructs a new CommitRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ICommitRequest);
+
+ /** CommitRequest database. */
+ public database: string;
+
+ /** CommitRequest writes. */
+ public writes: google.firestore.v1.IWrite[];
+
+ /** CommitRequest transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new CommitRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommitRequest instance
+ */
+ public static create(properties?: google.firestore.v1.ICommitRequest): google.firestore.v1.CommitRequest;
+
+ /**
+ * Encodes the specified CommitRequest message. Does not implicitly {@link google.firestore.v1.CommitRequest.verify|verify} messages.
+ * @param message CommitRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link google.firestore.v1.CommitRequest.verify|verify} messages.
+ * @param message CommitRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommitRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommitRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.CommitRequest;
+
+ /**
+ * Decodes a CommitRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommitRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.CommitRequest;
+
+ /**
+ * Verifies a CommitRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommitRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.CommitRequest;
+
+ /**
+ * Creates a plain object from a CommitRequest message. Also converts values to other types if specified.
+ * @param message CommitRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.CommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommitRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommitRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommitResponse. */
+ interface ICommitResponse {
+
+ /** CommitResponse writeResults */
+ writeResults?: (google.firestore.v1.IWriteResult[]|null);
+
+ /** CommitResponse commitTime */
+ commitTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CommitResponse. */
+ class CommitResponse implements ICommitResponse {
+
+ /**
+ * Constructs a new CommitResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ICommitResponse);
+
+ /** CommitResponse writeResults. */
+ public writeResults: google.firestore.v1.IWriteResult[];
+
+ /** CommitResponse commitTime. */
+ public commitTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CommitResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommitResponse instance
+ */
+ public static create(properties?: google.firestore.v1.ICommitResponse): google.firestore.v1.CommitResponse;
+
+ /**
+ * Encodes the specified CommitResponse message. Does not implicitly {@link google.firestore.v1.CommitResponse.verify|verify} messages.
+ * @param message CommitResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link google.firestore.v1.CommitResponse.verify|verify} messages.
+ * @param message CommitResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommitResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommitResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.CommitResponse;
+
+ /**
+ * Decodes a CommitResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommitResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.CommitResponse;
+
+ /**
+ * Verifies a CommitResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommitResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.CommitResponse;
+
+ /**
+ * Creates a plain object from a CommitResponse message. Also converts values to other types if specified.
+ * @param message CommitResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.CommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommitResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommitResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RollbackRequest. */
+ interface IRollbackRequest {
+
+ /** RollbackRequest database */
+ database?: (string|null);
+
+ /** RollbackRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a RollbackRequest. */
+ class RollbackRequest implements IRollbackRequest {
+
+ /**
+ * Constructs a new RollbackRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRollbackRequest);
+
+ /** RollbackRequest database. */
+ public database: string;
+
+ /** RollbackRequest transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new RollbackRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RollbackRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IRollbackRequest): google.firestore.v1.RollbackRequest;
+
+ /**
+ * Encodes the specified RollbackRequest message. Does not implicitly {@link google.firestore.v1.RollbackRequest.verify|verify} messages.
+ * @param message RollbackRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link google.firestore.v1.RollbackRequest.verify|verify} messages.
+ * @param message RollbackRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RollbackRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RollbackRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.RollbackRequest;
+
+ /**
+ * Decodes a RollbackRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RollbackRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.RollbackRequest;
+
+ /**
+ * Verifies a RollbackRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RollbackRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.RollbackRequest;
+
+ /**
+ * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified.
+ * @param message RollbackRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.RollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RollbackRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RollbackRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RunQueryRequest. */
+ interface IRunQueryRequest {
+
+ /** RunQueryRequest parent */
+ parent?: (string|null);
+
+ /** RunQueryRequest structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+
+ /** RunQueryRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunQueryRequest newTransaction */
+ newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** RunQueryRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunQueryRequest explainOptions */
+ explainOptions?: (google.firestore.v1.IExplainOptions|null);
+ }
+
+ /** Represents a RunQueryRequest. */
+ class RunQueryRequest implements IRunQueryRequest {
+
+ /**
+ * Constructs a new RunQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRunQueryRequest);
+
+ /** RunQueryRequest parent. */
+ public parent: string;
+
+ /** RunQueryRequest structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+
+ /** RunQueryRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunQueryRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** RunQueryRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunQueryRequest explainOptions. */
+ public explainOptions?: (google.firestore.v1.IExplainOptions|null);
+
+ /** RunQueryRequest queryType. */
+ public queryType?: "structuredQuery";
+
+ /** RunQueryRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+
+ /**
+ * Creates a new RunQueryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RunQueryRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IRunQueryRequest): google.firestore.v1.RunQueryRequest;
+
+ /**
+ * Encodes the specified RunQueryRequest message. Does not implicitly {@link google.firestore.v1.RunQueryRequest.verify|verify} messages.
+ * @param message RunQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IRunQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RunQueryRequest message, length delimited. Does not implicitly {@link google.firestore.v1.RunQueryRequest.verify|verify} messages.
+ * @param message RunQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IRunQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RunQueryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RunQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.RunQueryRequest;
+
+ /**
+ * Decodes a RunQueryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RunQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.RunQueryRequest;
+
+ /**
+ * Verifies a RunQueryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RunQueryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RunQueryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.RunQueryRequest;
+
+ /**
+ * Creates a plain object from a RunQueryRequest message. Also converts values to other types if specified.
+ * @param message RunQueryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.RunQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RunQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RunQueryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RunQueryResponse. */
+ interface IRunQueryResponse {
+
+ /** RunQueryResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunQueryResponse document */
+ document?: (google.firestore.v1.IDocument|null);
+
+ /** RunQueryResponse readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunQueryResponse skippedResults */
+ skippedResults?: (number|null);
+
+ /** RunQueryResponse done */
+ done?: (boolean|null);
+
+ /** RunQueryResponse explainMetrics */
+ explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
+ }
+
+ /** Represents a RunQueryResponse. */
+ class RunQueryResponse implements IRunQueryResponse {
+
+ /**
+ * Constructs a new RunQueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRunQueryResponse);
+
+ /** RunQueryResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /** RunQueryResponse document. */
+ public document?: (google.firestore.v1.IDocument|null);
+
+ /** RunQueryResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunQueryResponse skippedResults. */
+ public skippedResults: number;
+
+ /** RunQueryResponse done. */
+ public done?: (boolean|null);
+
+ /** RunQueryResponse explainMetrics. */
+ public explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
+
+ /** RunQueryResponse continuationSelector. */
+ public continuationSelector?: "done";
+
+ /**
+ * Creates a new RunQueryResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RunQueryResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IRunQueryResponse): google.firestore.v1.RunQueryResponse;
+
+ /**
+ * Encodes the specified RunQueryResponse message. Does not implicitly {@link google.firestore.v1.RunQueryResponse.verify|verify} messages.
+ * @param message RunQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IRunQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RunQueryResponse message, length delimited. Does not implicitly {@link google.firestore.v1.RunQueryResponse.verify|verify} messages.
+ * @param message RunQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IRunQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RunQueryResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RunQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.RunQueryResponse;
+
+ /**
+ * Decodes a RunQueryResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RunQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.RunQueryResponse;
+
+ /**
+ * Verifies a RunQueryResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RunQueryResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RunQueryResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.RunQueryResponse;
+
+ /**
+ * Creates a plain object from a RunQueryResponse message. Also converts values to other types if specified.
+ * @param message RunQueryResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.RunQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RunQueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RunQueryResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExecutePipelineRequest. */
+ interface IExecutePipelineRequest {
+
+ /** ExecutePipelineRequest database */
+ database?: (string|null);
+
+ /** ExecutePipelineRequest structuredPipeline */
+ structuredPipeline?: (google.firestore.v1.IStructuredPipeline|null);
+
+ /** ExecutePipelineRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** ExecutePipelineRequest newTransaction */
+ newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** ExecutePipelineRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExecutePipelineRequest autoCommitTransaction */
+ autoCommitTransaction?: (boolean|null);
+ }
+
+ /** Represents an ExecutePipelineRequest. */
+ class ExecutePipelineRequest implements IExecutePipelineRequest {
+
+ /**
+ * Constructs a new ExecutePipelineRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExecutePipelineRequest);
+
+ /** ExecutePipelineRequest database. */
+ public database: string;
+
+ /** ExecutePipelineRequest structuredPipeline. */
+ public structuredPipeline?: (google.firestore.v1.IStructuredPipeline|null);
+
+ /** ExecutePipelineRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** ExecutePipelineRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** ExecutePipelineRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExecutePipelineRequest autoCommitTransaction. */
+ public autoCommitTransaction: boolean;
+
+ /** ExecutePipelineRequest pipelineType. */
+ public pipelineType?: "structuredPipeline";
+
+ /** ExecutePipelineRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+
+ /**
+ * Creates a new ExecutePipelineRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecutePipelineRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IExecutePipelineRequest): google.firestore.v1.ExecutePipelineRequest;
+
+ /**
+ * Encodes the specified ExecutePipelineRequest message. Does not implicitly {@link google.firestore.v1.ExecutePipelineRequest.verify|verify} messages.
+ * @param message ExecutePipelineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IExecutePipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecutePipelineRequest message, length delimited. Does not implicitly {@link google.firestore.v1.ExecutePipelineRequest.verify|verify} messages.
+ * @param message ExecutePipelineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IExecutePipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecutePipelineRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecutePipelineRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ExecutePipelineRequest;
+
+ /**
+ * Decodes an ExecutePipelineRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecutePipelineRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ExecutePipelineRequest;
+
+ /**
+ * Verifies an ExecutePipelineRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExecutePipelineRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecutePipelineRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExecutePipelineRequest;
+
+ /**
+ * Creates a plain object from an ExecutePipelineRequest message. Also converts values to other types if specified.
+ * @param message ExecutePipelineRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ExecutePipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecutePipelineRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecutePipelineRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExecutePipelineResponse. */
+ interface IExecutePipelineResponse {
+
+ /** ExecutePipelineResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** ExecutePipelineResponse results */
+ results?: (google.firestore.v1.IDocument[]|null);
+
+ /** ExecutePipelineResponse executionTime */
+ executionTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExecutePipelineResponse explainStats */
+ explainStats?: (google.firestore.v1.IExplainStats|null);
+ }
+
+ /** Represents an ExecutePipelineResponse. */
+ class ExecutePipelineResponse implements IExecutePipelineResponse {
+
+ /**
+ * Constructs a new ExecutePipelineResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExecutePipelineResponse);
+
+ /** ExecutePipelineResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /** ExecutePipelineResponse results. */
+ public results: google.firestore.v1.IDocument[];
+
+ /** ExecutePipelineResponse executionTime. */
+ public executionTime?: (google.protobuf.ITimestamp|null);
+
+ /** ExecutePipelineResponse explainStats. */
+ public explainStats?: (google.firestore.v1.IExplainStats|null);
+
+ /**
+ * Creates a new ExecutePipelineResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecutePipelineResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IExecutePipelineResponse): google.firestore.v1.ExecutePipelineResponse;
+
+ /**
+ * Encodes the specified ExecutePipelineResponse message. Does not implicitly {@link google.firestore.v1.ExecutePipelineResponse.verify|verify} messages.
+ * @param message ExecutePipelineResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IExecutePipelineResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecutePipelineResponse message, length delimited. Does not implicitly {@link google.firestore.v1.ExecutePipelineResponse.verify|verify} messages.
+ * @param message ExecutePipelineResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IExecutePipelineResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecutePipelineResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecutePipelineResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ExecutePipelineResponse;
+
+ /**
+ * Decodes an ExecutePipelineResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecutePipelineResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ExecutePipelineResponse;
+
+ /**
+ * Verifies an ExecutePipelineResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExecutePipelineResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecutePipelineResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExecutePipelineResponse;
+
+ /**
+ * Creates a plain object from an ExecutePipelineResponse message. Also converts values to other types if specified.
+ * @param message ExecutePipelineResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ExecutePipelineResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecutePipelineResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecutePipelineResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RunAggregationQueryRequest. */
+ interface IRunAggregationQueryRequest {
+
+ /** RunAggregationQueryRequest parent */
+ parent?: (string|null);
+
+ /** RunAggregationQueryRequest structuredAggregationQuery */
+ structuredAggregationQuery?: (google.firestore.v1.IStructuredAggregationQuery|null);
+
+ /** RunAggregationQueryRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunAggregationQueryRequest newTransaction */
+ newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** RunAggregationQueryRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunAggregationQueryRequest explainOptions */
+ explainOptions?: (google.firestore.v1.IExplainOptions|null);
+ }
+
+ /** Represents a RunAggregationQueryRequest. */
+ class RunAggregationQueryRequest implements IRunAggregationQueryRequest {
+
+ /**
+ * Constructs a new RunAggregationQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRunAggregationQueryRequest);
+
+ /** RunAggregationQueryRequest parent. */
+ public parent: string;
+
+ /** RunAggregationQueryRequest structuredAggregationQuery. */
+ public structuredAggregationQuery?: (google.firestore.v1.IStructuredAggregationQuery|null);
+
+ /** RunAggregationQueryRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunAggregationQueryRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+
+ /** RunAggregationQueryRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunAggregationQueryRequest explainOptions. */
+ public explainOptions?: (google.firestore.v1.IExplainOptions|null);
+
+ /** RunAggregationQueryRequest queryType. */
+ public queryType?: "structuredAggregationQuery";
+
+ /** RunAggregationQueryRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+
+ /**
+ * Creates a new RunAggregationQueryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RunAggregationQueryRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IRunAggregationQueryRequest): google.firestore.v1.RunAggregationQueryRequest;
+
+ /**
+ * Encodes the specified RunAggregationQueryRequest message. Does not implicitly {@link google.firestore.v1.RunAggregationQueryRequest.verify|verify} messages.
+ * @param message RunAggregationQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IRunAggregationQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RunAggregationQueryRequest message, length delimited. Does not implicitly {@link google.firestore.v1.RunAggregationQueryRequest.verify|verify} messages.
+ * @param message RunAggregationQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IRunAggregationQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RunAggregationQueryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RunAggregationQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.RunAggregationQueryRequest;
+
+ /**
+ * Decodes a RunAggregationQueryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RunAggregationQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.RunAggregationQueryRequest;
+
+ /**
+ * Verifies a RunAggregationQueryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RunAggregationQueryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RunAggregationQueryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.RunAggregationQueryRequest;
+
+ /**
+ * Creates a plain object from a RunAggregationQueryRequest message. Also converts values to other types if specified.
+ * @param message RunAggregationQueryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.RunAggregationQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RunAggregationQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RunAggregationQueryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RunAggregationQueryResponse. */
+ interface IRunAggregationQueryResponse {
+
+ /** RunAggregationQueryResponse result */
+ result?: (google.firestore.v1.IAggregationResult|null);
+
+ /** RunAggregationQueryResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunAggregationQueryResponse readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunAggregationQueryResponse explainMetrics */
+ explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
+ }
+
+ /** Represents a RunAggregationQueryResponse. */
+ class RunAggregationQueryResponse implements IRunAggregationQueryResponse {
+
+ /**
+ * Constructs a new RunAggregationQueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRunAggregationQueryResponse);
+
+ /** RunAggregationQueryResponse result. */
+ public result?: (google.firestore.v1.IAggregationResult|null);
+
+ /** RunAggregationQueryResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /** RunAggregationQueryResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunAggregationQueryResponse explainMetrics. */
+ public explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
+
+ /**
+ * Creates a new RunAggregationQueryResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RunAggregationQueryResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IRunAggregationQueryResponse): google.firestore.v1.RunAggregationQueryResponse;
+
+ /**
+ * Encodes the specified RunAggregationQueryResponse message. Does not implicitly {@link google.firestore.v1.RunAggregationQueryResponse.verify|verify} messages.
+ * @param message RunAggregationQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IRunAggregationQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RunAggregationQueryResponse message, length delimited. Does not implicitly {@link google.firestore.v1.RunAggregationQueryResponse.verify|verify} messages.
+ * @param message RunAggregationQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IRunAggregationQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RunAggregationQueryResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RunAggregationQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.RunAggregationQueryResponse;
+
+ /**
+ * Decodes a RunAggregationQueryResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RunAggregationQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.RunAggregationQueryResponse;
+
+ /**
+ * Verifies a RunAggregationQueryResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RunAggregationQueryResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RunAggregationQueryResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.RunAggregationQueryResponse;
+
+ /**
+ * Creates a plain object from a RunAggregationQueryResponse message. Also converts values to other types if specified.
+ * @param message RunAggregationQueryResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.RunAggregationQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RunAggregationQueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RunAggregationQueryResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PartitionQueryRequest. */
+ interface IPartitionQueryRequest {
+
+ /** PartitionQueryRequest parent */
+ parent?: (string|null);
+
+ /** PartitionQueryRequest structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+
+ /** PartitionQueryRequest partitionCount */
+ partitionCount?: (number|Long|string|null);
+
+ /** PartitionQueryRequest pageToken */
+ pageToken?: (string|null);
+
+ /** PartitionQueryRequest pageSize */
+ pageSize?: (number|null);
+
+ /** PartitionQueryRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a PartitionQueryRequest. */
+ class PartitionQueryRequest implements IPartitionQueryRequest {
+
+ /**
+ * Constructs a new PartitionQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPartitionQueryRequest);
+
+ /** PartitionQueryRequest parent. */
+ public parent: string;
+
+ /** PartitionQueryRequest structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+
+ /** PartitionQueryRequest partitionCount. */
+ public partitionCount: (number|Long|string);
+
+ /** PartitionQueryRequest pageToken. */
+ public pageToken: string;
+
+ /** PartitionQueryRequest pageSize. */
+ public pageSize: number;
+
+ /** PartitionQueryRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** PartitionQueryRequest queryType. */
+ public queryType?: "structuredQuery";
+
+ /** PartitionQueryRequest consistencySelector. */
+ public consistencySelector?: "readTime";
+
+ /**
+ * Creates a new PartitionQueryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PartitionQueryRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IPartitionQueryRequest): google.firestore.v1.PartitionQueryRequest;
+
+ /**
+ * Encodes the specified PartitionQueryRequest message. Does not implicitly {@link google.firestore.v1.PartitionQueryRequest.verify|verify} messages.
+ * @param message PartitionQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IPartitionQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PartitionQueryRequest message, length delimited. Does not implicitly {@link google.firestore.v1.PartitionQueryRequest.verify|verify} messages.
+ * @param message PartitionQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IPartitionQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PartitionQueryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PartitionQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.PartitionQueryRequest;
+
+ /**
+ * Decodes a PartitionQueryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PartitionQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.PartitionQueryRequest;
+
+ /**
+ * Verifies a PartitionQueryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PartitionQueryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PartitionQueryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.PartitionQueryRequest;
+
+ /**
+ * Creates a plain object from a PartitionQueryRequest message. Also converts values to other types if specified.
+ * @param message PartitionQueryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.PartitionQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PartitionQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PartitionQueryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PartitionQueryResponse. */
+ interface IPartitionQueryResponse {
+
+ /** PartitionQueryResponse partitions */
+ partitions?: (google.firestore.v1.ICursor[]|null);
+
+ /** PartitionQueryResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a PartitionQueryResponse. */
+ class PartitionQueryResponse implements IPartitionQueryResponse {
+
+ /**
+ * Constructs a new PartitionQueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPartitionQueryResponse);
+
+ /** PartitionQueryResponse partitions. */
+ public partitions: google.firestore.v1.ICursor[];
+
+ /** PartitionQueryResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new PartitionQueryResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PartitionQueryResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IPartitionQueryResponse): google.firestore.v1.PartitionQueryResponse;
+
+ /**
+ * Encodes the specified PartitionQueryResponse message. Does not implicitly {@link google.firestore.v1.PartitionQueryResponse.verify|verify} messages.
+ * @param message PartitionQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IPartitionQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PartitionQueryResponse message, length delimited. Does not implicitly {@link google.firestore.v1.PartitionQueryResponse.verify|verify} messages.
+ * @param message PartitionQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IPartitionQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PartitionQueryResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PartitionQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.PartitionQueryResponse;
+
+ /**
+ * Decodes a PartitionQueryResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PartitionQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.PartitionQueryResponse;
+
+ /**
+ * Verifies a PartitionQueryResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PartitionQueryResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PartitionQueryResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.PartitionQueryResponse;
+
+ /**
+ * Creates a plain object from a PartitionQueryResponse message. Also converts values to other types if specified.
+ * @param message PartitionQueryResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.PartitionQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PartitionQueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PartitionQueryResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WriteRequest. */
+ interface IWriteRequest {
+
+ /** WriteRequest database */
+ database?: (string|null);
+
+ /** WriteRequest streamId */
+ streamId?: (string|null);
+
+ /** WriteRequest writes */
+ writes?: (google.firestore.v1.IWrite[]|null);
+
+ /** WriteRequest streamToken */
+ streamToken?: (Uint8Array|Buffer|string|null);
+
+ /** WriteRequest labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a WriteRequest. */
+ class WriteRequest implements IWriteRequest {
+
+ /**
+ * Constructs a new WriteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IWriteRequest);
+
+ /** WriteRequest database. */
+ public database: string;
+
+ /** WriteRequest streamId. */
+ public streamId: string;
+
+ /** WriteRequest writes. */
+ public writes: google.firestore.v1.IWrite[];
+
+ /** WriteRequest streamToken. */
+ public streamToken: (Uint8Array|Buffer|string);
+
+ /** WriteRequest labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new WriteRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IWriteRequest): google.firestore.v1.WriteRequest;
+
+ /**
+ * Encodes the specified WriteRequest message. Does not implicitly {@link google.firestore.v1.WriteRequest.verify|verify} messages.
+ * @param message WriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteRequest message, length delimited. Does not implicitly {@link google.firestore.v1.WriteRequest.verify|verify} messages.
+ * @param message WriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.WriteRequest;
+
+ /**
+ * Decodes a WriteRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.WriteRequest;
+
+ /**
+ * Verifies a WriteRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WriteRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.WriteRequest;
+
+ /**
+ * Creates a plain object from a WriteRequest message. Also converts values to other types if specified.
+ * @param message WriteRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.WriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WriteResponse. */
+ interface IWriteResponse {
+
+ /** WriteResponse streamId */
+ streamId?: (string|null);
+
+ /** WriteResponse streamToken */
+ streamToken?: (Uint8Array|Buffer|string|null);
+
+ /** WriteResponse writeResults */
+ writeResults?: (google.firestore.v1.IWriteResult[]|null);
+
+ /** WriteResponse commitTime */
+ commitTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a WriteResponse. */
+ class WriteResponse implements IWriteResponse {
+
+ /**
+ * Constructs a new WriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IWriteResponse);
+
+ /** WriteResponse streamId. */
+ public streamId: string;
+
+ /** WriteResponse streamToken. */
+ public streamToken: (Uint8Array|Buffer|string);
+
+ /** WriteResponse writeResults. */
+ public writeResults: google.firestore.v1.IWriteResult[];
+
+ /** WriteResponse commitTime. */
+ public commitTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new WriteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IWriteResponse): google.firestore.v1.WriteResponse;
+
+ /**
+ * Encodes the specified WriteResponse message. Does not implicitly {@link google.firestore.v1.WriteResponse.verify|verify} messages.
+ * @param message WriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteResponse message, length delimited. Does not implicitly {@link google.firestore.v1.WriteResponse.verify|verify} messages.
+ * @param message WriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.WriteResponse;
+
+ /**
+ * Decodes a WriteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.WriteResponse;
+
+ /**
+ * Verifies a WriteResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WriteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.WriteResponse;
+
+ /**
+ * Creates a plain object from a WriteResponse message. Also converts values to other types if specified.
+ * @param message WriteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.WriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListenRequest. */
+ interface IListenRequest {
+
+ /** ListenRequest database */
+ database?: (string|null);
+
+ /** ListenRequest addTarget */
+ addTarget?: (google.firestore.v1.ITarget|null);
+
+ /** ListenRequest removeTarget */
+ removeTarget?: (number|null);
+
+ /** ListenRequest labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a ListenRequest. */
+ class ListenRequest implements IListenRequest {
+
+ /**
+ * Constructs a new ListenRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListenRequest);
+
+ /** ListenRequest database. */
+ public database: string;
+
+ /** ListenRequest addTarget. */
+ public addTarget?: (google.firestore.v1.ITarget|null);
+
+ /** ListenRequest removeTarget. */
+ public removeTarget?: (number|null);
+
+ /** ListenRequest labels. */
+ public labels: { [k: string]: string };
+
+ /** ListenRequest targetChange. */
+ public targetChange?: ("addTarget"|"removeTarget");
+
+ /**
+ * Creates a new ListenRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListenRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IListenRequest): google.firestore.v1.ListenRequest;
+
+ /**
+ * Encodes the specified ListenRequest message. Does not implicitly {@link google.firestore.v1.ListenRequest.verify|verify} messages.
+ * @param message ListenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IListenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListenRequest message, length delimited. Does not implicitly {@link google.firestore.v1.ListenRequest.verify|verify} messages.
+ * @param message ListenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IListenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListenRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ListenRequest;
+
+ /**
+ * Decodes a ListenRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ListenRequest;
+
+ /**
+ * Verifies a ListenRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListenRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListenRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListenRequest;
+
+ /**
+ * Creates a plain object from a ListenRequest message. Also converts values to other types if specified.
+ * @param message ListenRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ListenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListenRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListenRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListenResponse. */
+ interface IListenResponse {
+
+ /** ListenResponse targetChange */
+ targetChange?: (google.firestore.v1.ITargetChange|null);
+
+ /** ListenResponse documentChange */
+ documentChange?: (google.firestore.v1.IDocumentChange|null);
+
+ /** ListenResponse documentDelete */
+ documentDelete?: (google.firestore.v1.IDocumentDelete|null);
+
+ /** ListenResponse documentRemove */
+ documentRemove?: (google.firestore.v1.IDocumentRemove|null);
+
+ /** ListenResponse filter */
+ filter?: (google.firestore.v1.IExistenceFilter|null);
+ }
+
+ /** Represents a ListenResponse. */
+ class ListenResponse implements IListenResponse {
+
+ /**
+ * Constructs a new ListenResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListenResponse);
+
+ /** ListenResponse targetChange. */
+ public targetChange?: (google.firestore.v1.ITargetChange|null);
+
+ /** ListenResponse documentChange. */
+ public documentChange?: (google.firestore.v1.IDocumentChange|null);
+
+ /** ListenResponse documentDelete. */
+ public documentDelete?: (google.firestore.v1.IDocumentDelete|null);
+
+ /** ListenResponse documentRemove. */
+ public documentRemove?: (google.firestore.v1.IDocumentRemove|null);
+
+ /** ListenResponse filter. */
+ public filter?: (google.firestore.v1.IExistenceFilter|null);
+
+ /** ListenResponse responseType. */
+ public responseType?: ("targetChange"|"documentChange"|"documentDelete"|"documentRemove"|"filter");
+
+ /**
+ * Creates a new ListenResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListenResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IListenResponse): google.firestore.v1.ListenResponse;
+
+ /**
+ * Encodes the specified ListenResponse message. Does not implicitly {@link google.firestore.v1.ListenResponse.verify|verify} messages.
+ * @param message ListenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IListenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListenResponse message, length delimited. Does not implicitly {@link google.firestore.v1.ListenResponse.verify|verify} messages.
+ * @param message ListenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IListenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListenResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ListenResponse;
+
+ /**
+ * Decodes a ListenResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ListenResponse;
+
+ /**
+ * Verifies a ListenResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListenResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListenResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListenResponse;
+
+ /**
+ * Creates a plain object from a ListenResponse message. Also converts values to other types if specified.
+ * @param message ListenResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ListenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListenResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListenResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Target. */
+ interface ITarget {
+
+ /** Target query */
+ query?: (google.firestore.v1.Target.IQueryTarget|null);
+
+ /** Target documents */
+ documents?: (google.firestore.v1.Target.IDocumentsTarget|null);
+
+ /** Target resumeToken */
+ resumeToken?: (Uint8Array|Buffer|string|null);
+
+ /** Target readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** Target targetId */
+ targetId?: (number|null);
+
+ /** Target once */
+ once?: (boolean|null);
+
+ /** Target expectedCount */
+ expectedCount?: (google.protobuf.IInt32Value|null);
+ }
+
+ /** Represents a Target. */
+ class Target implements ITarget {
+
+ /**
+ * Constructs a new Target.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ITarget);
+
+ /** Target query. */
+ public query?: (google.firestore.v1.Target.IQueryTarget|null);
+
+ /** Target documents. */
+ public documents?: (google.firestore.v1.Target.IDocumentsTarget|null);
+
+ /** Target resumeToken. */
+ public resumeToken?: (Uint8Array|Buffer|string|null);
+
+ /** Target readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** Target targetId. */
+ public targetId: number;
+
+ /** Target once. */
+ public once: boolean;
+
+ /** Target expectedCount. */
+ public expectedCount?: (google.protobuf.IInt32Value|null);
+
+ /** Target targetType. */
+ public targetType?: ("query"|"documents");
+
+ /** Target resumeType. */
+ public resumeType?: ("resumeToken"|"readTime");
+
+ /**
+ * Creates a new Target instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Target instance
+ */
+ public static create(properties?: google.firestore.v1.ITarget): google.firestore.v1.Target;
+
+ /**
+ * Encodes the specified Target message. Does not implicitly {@link google.firestore.v1.Target.verify|verify} messages.
+ * @param message Target message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Target message, length delimited. Does not implicitly {@link google.firestore.v1.Target.verify|verify} messages.
+ * @param message Target message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Target message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Target
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Target;
+
+ /**
+ * Decodes a Target message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Target
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Target;
+
+ /**
+ * Verifies a Target message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Target message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Target
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Target;
+
+ /**
+ * Creates a plain object from a Target message. Also converts values to other types if specified.
+ * @param message Target
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Target, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Target to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Target
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Target {
+
+ /** Properties of a DocumentsTarget. */
+ interface IDocumentsTarget {
+
+ /** DocumentsTarget documents */
+ documents?: (string[]|null);
+ }
+
+ /** Represents a DocumentsTarget. */
+ class DocumentsTarget implements IDocumentsTarget {
+
+ /**
+ * Constructs a new DocumentsTarget.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.Target.IDocumentsTarget);
+
+ /** DocumentsTarget documents. */
+ public documents: string[];
+
+ /**
+ * Creates a new DocumentsTarget instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentsTarget instance
+ */
+ public static create(properties?: google.firestore.v1.Target.IDocumentsTarget): google.firestore.v1.Target.DocumentsTarget;
+
+ /**
+ * Encodes the specified DocumentsTarget message. Does not implicitly {@link google.firestore.v1.Target.DocumentsTarget.verify|verify} messages.
+ * @param message DocumentsTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.Target.IDocumentsTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentsTarget message, length delimited. Does not implicitly {@link google.firestore.v1.Target.DocumentsTarget.verify|verify} messages.
+ * @param message DocumentsTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.Target.IDocumentsTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentsTarget message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentsTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Target.DocumentsTarget;
+
+ /**
+ * Decodes a DocumentsTarget message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentsTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Target.DocumentsTarget;
+
+ /**
+ * Verifies a DocumentsTarget message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentsTarget message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentsTarget
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Target.DocumentsTarget;
+
+ /**
+ * Creates a plain object from a DocumentsTarget message. Also converts values to other types if specified.
+ * @param message DocumentsTarget
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Target.DocumentsTarget, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentsTarget to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentsTarget
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryTarget. */
+ interface IQueryTarget {
+
+ /** QueryTarget parent */
+ parent?: (string|null);
+
+ /** QueryTarget structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ }
+
+ /** Represents a QueryTarget. */
+ class QueryTarget implements IQueryTarget {
+
+ /**
+ * Constructs a new QueryTarget.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.Target.IQueryTarget);
+
+ /** QueryTarget parent. */
+ public parent: string;
+
+ /** QueryTarget structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+
+ /** QueryTarget queryType. */
+ public queryType?: "structuredQuery";
+
+ /**
+ * Creates a new QueryTarget instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryTarget instance
+ */
+ public static create(properties?: google.firestore.v1.Target.IQueryTarget): google.firestore.v1.Target.QueryTarget;
+
+ /**
+ * Encodes the specified QueryTarget message. Does not implicitly {@link google.firestore.v1.Target.QueryTarget.verify|verify} messages.
+ * @param message QueryTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.Target.IQueryTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryTarget message, length delimited. Does not implicitly {@link google.firestore.v1.Target.QueryTarget.verify|verify} messages.
+ * @param message QueryTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.Target.IQueryTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryTarget message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Target.QueryTarget;
+
+ /**
+ * Decodes a QueryTarget message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Target.QueryTarget;
+
+ /**
+ * Verifies a QueryTarget message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a QueryTarget message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryTarget
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Target.QueryTarget;
+
+ /**
+ * Creates a plain object from a QueryTarget message. Also converts values to other types if specified.
+ * @param message QueryTarget
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Target.QueryTarget, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryTarget to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryTarget
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TargetChange. */
+ interface ITargetChange {
+
+ /** TargetChange targetChangeType */
+ targetChangeType?: (google.firestore.v1.TargetChange.TargetChangeType|keyof typeof google.firestore.v1.TargetChange.TargetChangeType|null);
+
+ /** TargetChange targetIds */
+ targetIds?: (number[]|null);
+
+ /** TargetChange cause */
+ cause?: (google.rpc.IStatus|null);
+
+ /** TargetChange resumeToken */
+ resumeToken?: (Uint8Array|Buffer|string|null);
+
+ /** TargetChange readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a TargetChange. */
+ class TargetChange implements ITargetChange {
+
+ /**
+ * Constructs a new TargetChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ITargetChange);
+
+ /** TargetChange targetChangeType. */
+ public targetChangeType: (google.firestore.v1.TargetChange.TargetChangeType|keyof typeof google.firestore.v1.TargetChange.TargetChangeType);
+
+ /** TargetChange targetIds. */
+ public targetIds: number[];
+
+ /** TargetChange cause. */
+ public cause?: (google.rpc.IStatus|null);
+
+ /** TargetChange resumeToken. */
+ public resumeToken: (Uint8Array|Buffer|string);
+
+ /** TargetChange readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new TargetChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TargetChange instance
+ */
+ public static create(properties?: google.firestore.v1.ITargetChange): google.firestore.v1.TargetChange;
+
+ /**
+ * Encodes the specified TargetChange message. Does not implicitly {@link google.firestore.v1.TargetChange.verify|verify} messages.
+ * @param message TargetChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.ITargetChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TargetChange message, length delimited. Does not implicitly {@link google.firestore.v1.TargetChange.verify|verify} messages.
+ * @param message TargetChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.ITargetChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TargetChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TargetChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.TargetChange;
+
+ /**
+ * Decodes a TargetChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TargetChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.TargetChange;
+
+ /**
+ * Verifies a TargetChange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TargetChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TargetChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.TargetChange;
+
+ /**
+ * Creates a plain object from a TargetChange message. Also converts values to other types if specified.
+ * @param message TargetChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.TargetChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TargetChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TargetChange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TargetChange {
+
+ /** TargetChangeType enum. */
+ enum TargetChangeType {
+ NO_CHANGE = 0,
+ ADD = 1,
+ REMOVE = 2,
+ CURRENT = 3,
+ RESET = 4
+ }
+ }
+
+ /** Properties of a ListCollectionIdsRequest. */
+ interface IListCollectionIdsRequest {
+
+ /** ListCollectionIdsRequest parent */
+ parent?: (string|null);
+
+ /** ListCollectionIdsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListCollectionIdsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListCollectionIdsRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a ListCollectionIdsRequest. */
+ class ListCollectionIdsRequest implements IListCollectionIdsRequest {
+
+ /**
+ * Constructs a new ListCollectionIdsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListCollectionIdsRequest);
+
+ /** ListCollectionIdsRequest parent. */
+ public parent: string;
+
+ /** ListCollectionIdsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListCollectionIdsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListCollectionIdsRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListCollectionIdsRequest consistencySelector. */
+ public consistencySelector?: "readTime";
+
+ /**
+ * Creates a new ListCollectionIdsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCollectionIdsRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IListCollectionIdsRequest): google.firestore.v1.ListCollectionIdsRequest;
+
+ /**
+ * Encodes the specified ListCollectionIdsRequest message. Does not implicitly {@link google.firestore.v1.ListCollectionIdsRequest.verify|verify} messages.
+ * @param message ListCollectionIdsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IListCollectionIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCollectionIdsRequest message, length delimited. Does not implicitly {@link google.firestore.v1.ListCollectionIdsRequest.verify|verify} messages.
+ * @param message ListCollectionIdsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IListCollectionIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCollectionIdsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCollectionIdsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ListCollectionIdsRequest;
+
+ /**
+ * Decodes a ListCollectionIdsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCollectionIdsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ListCollectionIdsRequest;
+
+ /**
+ * Verifies a ListCollectionIdsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCollectionIdsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCollectionIdsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListCollectionIdsRequest;
+
+ /**
+ * Creates a plain object from a ListCollectionIdsRequest message. Also converts values to other types if specified.
+ * @param message ListCollectionIdsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ListCollectionIdsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCollectionIdsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCollectionIdsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCollectionIdsResponse. */
+ interface IListCollectionIdsResponse {
+
+ /** ListCollectionIdsResponse collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** ListCollectionIdsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListCollectionIdsResponse. */
+ class ListCollectionIdsResponse implements IListCollectionIdsResponse {
+
+ /**
+ * Constructs a new ListCollectionIdsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListCollectionIdsResponse);
+
+ /** ListCollectionIdsResponse collectionIds. */
+ public collectionIds: string[];
+
+ /** ListCollectionIdsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListCollectionIdsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCollectionIdsResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IListCollectionIdsResponse): google.firestore.v1.ListCollectionIdsResponse;
+
+ /**
+ * Encodes the specified ListCollectionIdsResponse message. Does not implicitly {@link google.firestore.v1.ListCollectionIdsResponse.verify|verify} messages.
+ * @param message ListCollectionIdsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IListCollectionIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCollectionIdsResponse message, length delimited. Does not implicitly {@link google.firestore.v1.ListCollectionIdsResponse.verify|verify} messages.
+ * @param message ListCollectionIdsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IListCollectionIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCollectionIdsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCollectionIdsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ListCollectionIdsResponse;
+
+ /**
+ * Decodes a ListCollectionIdsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCollectionIdsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ListCollectionIdsResponse;
+
+ /**
+ * Verifies a ListCollectionIdsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCollectionIdsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCollectionIdsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListCollectionIdsResponse;
+
+ /**
+ * Creates a plain object from a ListCollectionIdsResponse message. Also converts values to other types if specified.
+ * @param message ListCollectionIdsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ListCollectionIdsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCollectionIdsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCollectionIdsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchWriteRequest. */
+ interface IBatchWriteRequest {
+
+ /** BatchWriteRequest database */
+ database?: (string|null);
+
+ /** BatchWriteRequest writes */
+ writes?: (google.firestore.v1.IWrite[]|null);
+
+ /** BatchWriteRequest labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a BatchWriteRequest. */
+ class BatchWriteRequest implements IBatchWriteRequest {
+
+ /**
+ * Constructs a new BatchWriteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBatchWriteRequest);
+
+ /** BatchWriteRequest database. */
+ public database: string;
+
+ /** BatchWriteRequest writes. */
+ public writes: google.firestore.v1.IWrite[];
+
+ /** BatchWriteRequest labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new BatchWriteRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchWriteRequest instance
+ */
+ public static create(properties?: google.firestore.v1.IBatchWriteRequest): google.firestore.v1.BatchWriteRequest;
+
+ /**
+ * Encodes the specified BatchWriteRequest message. Does not implicitly {@link google.firestore.v1.BatchWriteRequest.verify|verify} messages.
+ * @param message BatchWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBatchWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchWriteRequest message, length delimited. Does not implicitly {@link google.firestore.v1.BatchWriteRequest.verify|verify} messages.
+ * @param message BatchWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBatchWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchWriteRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchWriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BatchWriteRequest;
+
+ /**
+ * Decodes a BatchWriteRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchWriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BatchWriteRequest;
+
+ /**
+ * Verifies a BatchWriteRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchWriteRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchWriteRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BatchWriteRequest;
+
+ /**
+ * Creates a plain object from a BatchWriteRequest message. Also converts values to other types if specified.
+ * @param message BatchWriteRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BatchWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchWriteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchWriteRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchWriteResponse. */
+ interface IBatchWriteResponse {
+
+ /** BatchWriteResponse writeResults */
+ writeResults?: (google.firestore.v1.IWriteResult[]|null);
+
+ /** BatchWriteResponse status */
+ status?: (google.rpc.IStatus[]|null);
+ }
+
+ /** Represents a BatchWriteResponse. */
+ class BatchWriteResponse implements IBatchWriteResponse {
+
+ /**
+ * Constructs a new BatchWriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBatchWriteResponse);
+
+ /** BatchWriteResponse writeResults. */
+ public writeResults: google.firestore.v1.IWriteResult[];
+
+ /** BatchWriteResponse status. */
+ public status: google.rpc.IStatus[];
+
+ /**
+ * Creates a new BatchWriteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchWriteResponse instance
+ */
+ public static create(properties?: google.firestore.v1.IBatchWriteResponse): google.firestore.v1.BatchWriteResponse;
+
+ /**
+ * Encodes the specified BatchWriteResponse message. Does not implicitly {@link google.firestore.v1.BatchWriteResponse.verify|verify} messages.
+ * @param message BatchWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IBatchWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchWriteResponse message, length delimited. Does not implicitly {@link google.firestore.v1.BatchWriteResponse.verify|verify} messages.
+ * @param message BatchWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IBatchWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchWriteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchWriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.BatchWriteResponse;
+
+ /**
+ * Decodes a BatchWriteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchWriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.BatchWriteResponse;
+
+ /**
+ * Verifies a BatchWriteResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchWriteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchWriteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BatchWriteResponse;
+
+ /**
+ * Creates a plain object from a BatchWriteResponse message. Also converts values to other types if specified.
+ * @param message BatchWriteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.BatchWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchWriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchWriteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StructuredPipeline. */
+ interface IStructuredPipeline {
+
+ /** StructuredPipeline pipeline */
+ pipeline?: (google.firestore.v1.IPipeline|null);
+
+ /** StructuredPipeline options */
+ options?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
+
+ /** Represents a StructuredPipeline. */
+ class StructuredPipeline implements IStructuredPipeline {
+
+ /**
+ * Constructs a new StructuredPipeline.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IStructuredPipeline);
+
+ /** StructuredPipeline pipeline. */
+ public pipeline?: (google.firestore.v1.IPipeline|null);
+
+ /** StructuredPipeline options. */
+ public options: { [k: string]: google.firestore.v1.IValue };
+
+ /**
+ * Creates a new StructuredPipeline instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StructuredPipeline instance
+ */
+ public static create(properties?: google.firestore.v1.IStructuredPipeline): google.firestore.v1.StructuredPipeline;
+
+ /**
+ * Encodes the specified StructuredPipeline message. Does not implicitly {@link google.firestore.v1.StructuredPipeline.verify|verify} messages.
+ * @param message StructuredPipeline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IStructuredPipeline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StructuredPipeline message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredPipeline.verify|verify} messages.
+ * @param message StructuredPipeline message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IStructuredPipeline, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StructuredPipeline message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StructuredPipeline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredPipeline;
+
+ /**
+ * Decodes a StructuredPipeline message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StructuredPipeline
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredPipeline;
+
+ /**
+ * Verifies a StructuredPipeline message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StructuredPipeline message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StructuredPipeline
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredPipeline;
+
+ /**
+ * Creates a plain object from a StructuredPipeline message. Also converts values to other types if specified.
+ * @param message StructuredPipeline
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StructuredPipeline to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StructuredPipeline
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StructuredQuery. */
+ interface IStructuredQuery {
+
+ /** StructuredQuery select */
+ select?: (google.firestore.v1.StructuredQuery.IProjection|null);
+
+ /** StructuredQuery from */
+ from?: (google.firestore.v1.StructuredQuery.ICollectionSelector[]|null);
+
+ /** StructuredQuery where */
+ where?: (google.firestore.v1.StructuredQuery.IFilter|null);
+
+ /** StructuredQuery orderBy */
+ orderBy?: (google.firestore.v1.StructuredQuery.IOrder[]|null);
+
+ /** StructuredQuery startAt */
+ startAt?: (google.firestore.v1.ICursor|null);
+
+ /** StructuredQuery endAt */
+ endAt?: (google.firestore.v1.ICursor|null);
+
+ /** StructuredQuery offset */
+ offset?: (number|null);
+
+ /** StructuredQuery limit */
+ limit?: (google.protobuf.IInt32Value|null);
+
+ /** StructuredQuery findNearest */
+ findNearest?: (google.firestore.v1.StructuredQuery.IFindNearest|null);
+ }
+
+ /** Represents a StructuredQuery. */
+ class StructuredQuery implements IStructuredQuery {
+
+ /**
+ * Constructs a new StructuredQuery.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IStructuredQuery);
+
+ /** StructuredQuery select. */
+ public select?: (google.firestore.v1.StructuredQuery.IProjection|null);
+
+ /** StructuredQuery from. */
+ public from: google.firestore.v1.StructuredQuery.ICollectionSelector[];
+
+ /** StructuredQuery where. */
+ public where?: (google.firestore.v1.StructuredQuery.IFilter|null);
+
+ /** StructuredQuery orderBy. */
+ public orderBy: google.firestore.v1.StructuredQuery.IOrder[];
+
+ /** StructuredQuery startAt. */
+ public startAt?: (google.firestore.v1.ICursor|null);
+
+ /** StructuredQuery endAt. */
+ public endAt?: (google.firestore.v1.ICursor|null);
+
+ /** StructuredQuery offset. */
+ public offset: number;
+
+ /** StructuredQuery limit. */
+ public limit?: (google.protobuf.IInt32Value|null);
+
+ /** StructuredQuery findNearest. */
+ public findNearest?: (google.firestore.v1.StructuredQuery.IFindNearest|null);
+
+ /**
+ * Creates a new StructuredQuery instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StructuredQuery instance
+ */
+ public static create(properties?: google.firestore.v1.IStructuredQuery): google.firestore.v1.StructuredQuery;
+
+ /**
+ * Encodes the specified StructuredQuery message. Does not implicitly {@link google.firestore.v1.StructuredQuery.verify|verify} messages.
+ * @param message StructuredQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IStructuredQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StructuredQuery message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.verify|verify} messages.
+ * @param message StructuredQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IStructuredQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StructuredQuery message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StructuredQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery;
+
+ /**
+ * Decodes a StructuredQuery message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StructuredQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery;
+
+ /**
+ * Verifies a StructuredQuery message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StructuredQuery message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StructuredQuery
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery;
+
+ /**
+ * Creates a plain object from a StructuredQuery message. Also converts values to other types if specified.
+ * @param message StructuredQuery
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StructuredQuery to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StructuredQuery
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StructuredQuery {
+
+ /** Properties of a CollectionSelector. */
+ interface ICollectionSelector {
+
+ /** CollectionSelector collectionId */
+ collectionId?: (string|null);
+
+ /** CollectionSelector allDescendants */
+ allDescendants?: (boolean|null);
+ }
+
+ /** Represents a CollectionSelector. */
+ class CollectionSelector implements ICollectionSelector {
+
+ /**
+ * Constructs a new CollectionSelector.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.ICollectionSelector);
+
+ /** CollectionSelector collectionId. */
+ public collectionId: string;
+
+ /** CollectionSelector allDescendants. */
+ public allDescendants: boolean;
+
+ /**
+ * Creates a new CollectionSelector instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CollectionSelector instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.ICollectionSelector): google.firestore.v1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Encodes the specified CollectionSelector message. Does not implicitly {@link google.firestore.v1.StructuredQuery.CollectionSelector.verify|verify} messages.
+ * @param message CollectionSelector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.ICollectionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CollectionSelector message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.CollectionSelector.verify|verify} messages.
+ * @param message CollectionSelector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.ICollectionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CollectionSelector message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CollectionSelector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Decodes a CollectionSelector message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CollectionSelector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Verifies a CollectionSelector message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CollectionSelector message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CollectionSelector
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Creates a plain object from a CollectionSelector message. Also converts values to other types if specified.
+ * @param message CollectionSelector
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.CollectionSelector, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CollectionSelector to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CollectionSelector
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Filter. */
+ interface IFilter {
+
+ /** Filter compositeFilter */
+ compositeFilter?: (google.firestore.v1.StructuredQuery.ICompositeFilter|null);
+
+ /** Filter fieldFilter */
+ fieldFilter?: (google.firestore.v1.StructuredQuery.IFieldFilter|null);
+
+ /** Filter unaryFilter */
+ unaryFilter?: (google.firestore.v1.StructuredQuery.IUnaryFilter|null);
+ }
+
+ /** Represents a Filter. */
+ class Filter implements IFilter {
+
+ /**
+ * Constructs a new Filter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFilter);
+
+ /** Filter compositeFilter. */
+ public compositeFilter?: (google.firestore.v1.StructuredQuery.ICompositeFilter|null);
+
+ /** Filter fieldFilter. */
+ public fieldFilter?: (google.firestore.v1.StructuredQuery.IFieldFilter|null);
+
+ /** Filter unaryFilter. */
+ public unaryFilter?: (google.firestore.v1.StructuredQuery.IUnaryFilter|null);
+
+ /** Filter filterType. */
+ public filterType?: ("compositeFilter"|"fieldFilter"|"unaryFilter");
+
+ /**
+ * Creates a new Filter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Filter instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.IFilter): google.firestore.v1.StructuredQuery.Filter;
+
+ /**
+ * Encodes the specified Filter message. Does not implicitly {@link google.firestore.v1.StructuredQuery.Filter.verify|verify} messages.
+ * @param message Filter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Filter message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.Filter.verify|verify} messages.
+ * @param message Filter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Filter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.Filter;
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Filter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.Filter;
+
+ /**
+ * Verifies a Filter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Filter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Filter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.Filter;
+
+ /**
+ * Creates a plain object from a Filter message. Also converts values to other types if specified.
+ * @param message Filter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Filter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Filter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CompositeFilter. */
+ interface ICompositeFilter {
+
+ /** CompositeFilter op */
+ op?: (google.firestore.v1.StructuredQuery.CompositeFilter.Operator|keyof typeof google.firestore.v1.StructuredQuery.CompositeFilter.Operator|null);
+
+ /** CompositeFilter filters */
+ filters?: (google.firestore.v1.StructuredQuery.IFilter[]|null);
+ }
+
+ /** Represents a CompositeFilter. */
+ class CompositeFilter implements ICompositeFilter {
+
+ /**
+ * Constructs a new CompositeFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.ICompositeFilter);
+
+ /** CompositeFilter op. */
+ public op: (google.firestore.v1.StructuredQuery.CompositeFilter.Operator|keyof typeof google.firestore.v1.StructuredQuery.CompositeFilter.Operator);
+
+ /** CompositeFilter filters. */
+ public filters: google.firestore.v1.StructuredQuery.IFilter[];
+
+ /**
+ * Creates a new CompositeFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CompositeFilter instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.ICompositeFilter): google.firestore.v1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Encodes the specified CompositeFilter message. Does not implicitly {@link google.firestore.v1.StructuredQuery.CompositeFilter.verify|verify} messages.
+ * @param message CompositeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.ICompositeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CompositeFilter message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.CompositeFilter.verify|verify} messages.
+ * @param message CompositeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.ICompositeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CompositeFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CompositeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Decodes a CompositeFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CompositeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Verifies a CompositeFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CompositeFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CompositeFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Creates a plain object from a CompositeFilter message. Also converts values to other types if specified.
+ * @param message CompositeFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.CompositeFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CompositeFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CompositeFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CompositeFilter {
+
+ /** Operator enum. */
+ enum Operator {
+ OPERATOR_UNSPECIFIED = 0,
+ AND = 1,
+ OR = 2
+ }
+ }
+
+ /** Properties of a FieldFilter. */
+ interface IFieldFilter {
+
+ /** FieldFilter field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /** FieldFilter op */
+ op?: (google.firestore.v1.StructuredQuery.FieldFilter.Operator|keyof typeof google.firestore.v1.StructuredQuery.FieldFilter.Operator|null);
+
+ /** FieldFilter value */
+ value?: (google.firestore.v1.IValue|null);
+ }
+
+ /** Represents a FieldFilter. */
+ class FieldFilter implements IFieldFilter {
+
+ /**
+ * Constructs a new FieldFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFieldFilter);
+
+ /** FieldFilter field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /** FieldFilter op. */
+ public op: (google.firestore.v1.StructuredQuery.FieldFilter.Operator|keyof typeof google.firestore.v1.StructuredQuery.FieldFilter.Operator);
+
+ /** FieldFilter value. */
+ public value?: (google.firestore.v1.IValue|null);
+
+ /**
+ * Creates a new FieldFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldFilter instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.IFieldFilter): google.firestore.v1.StructuredQuery.FieldFilter;
+
+ /**
+ * Encodes the specified FieldFilter message. Does not implicitly {@link google.firestore.v1.StructuredQuery.FieldFilter.verify|verify} messages.
+ * @param message FieldFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.IFieldFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldFilter message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.FieldFilter.verify|verify} messages.
+ * @param message FieldFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.IFieldFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.FieldFilter;
+
+ /**
+ * Decodes a FieldFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.FieldFilter;
+
+ /**
+ * Verifies a FieldFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.FieldFilter;
+
+ /**
+ * Creates a plain object from a FieldFilter message. Also converts values to other types if specified.
+ * @param message FieldFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.FieldFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldFilter {
+
+ /** Operator enum. */
+ enum Operator {
+ OPERATOR_UNSPECIFIED = 0,
+ LESS_THAN = 1,
+ LESS_THAN_OR_EQUAL = 2,
+ GREATER_THAN = 3,
+ GREATER_THAN_OR_EQUAL = 4,
+ EQUAL = 5,
+ NOT_EQUAL = 6,
+ ARRAY_CONTAINS = 7,
+ IN = 8,
+ ARRAY_CONTAINS_ANY = 9,
+ NOT_IN = 10
+ }
+ }
+
+ /** Properties of an UnaryFilter. */
+ interface IUnaryFilter {
+
+ /** UnaryFilter op */
+ op?: (google.firestore.v1.StructuredQuery.UnaryFilter.Operator|keyof typeof google.firestore.v1.StructuredQuery.UnaryFilter.Operator|null);
+
+ /** UnaryFilter field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ }
+
+ /** Represents an UnaryFilter. */
+ class UnaryFilter implements IUnaryFilter {
+
+ /**
+ * Constructs a new UnaryFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IUnaryFilter);
+
+ /** UnaryFilter op. */
+ public op: (google.firestore.v1.StructuredQuery.UnaryFilter.Operator|keyof typeof google.firestore.v1.StructuredQuery.UnaryFilter.Operator);
+
+ /** UnaryFilter field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /** UnaryFilter operandType. */
+ public operandType?: "field";
+
+ /**
+ * Creates a new UnaryFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UnaryFilter instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.IUnaryFilter): google.firestore.v1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Encodes the specified UnaryFilter message. Does not implicitly {@link google.firestore.v1.StructuredQuery.UnaryFilter.verify|verify} messages.
+ * @param message UnaryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.IUnaryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UnaryFilter message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.UnaryFilter.verify|verify} messages.
+ * @param message UnaryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.IUnaryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UnaryFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UnaryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Decodes an UnaryFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UnaryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Verifies an UnaryFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UnaryFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UnaryFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Creates a plain object from an UnaryFilter message. Also converts values to other types if specified.
+ * @param message UnaryFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.UnaryFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UnaryFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UnaryFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UnaryFilter {
+
+ /** Operator enum. */
+ enum Operator {
+ OPERATOR_UNSPECIFIED = 0,
+ IS_NAN = 2,
+ IS_NULL = 3,
+ IS_NOT_NAN = 4,
+ IS_NOT_NULL = 5
+ }
+ }
+
+ /** Properties of an Order. */
+ interface IOrder {
+
+ /** Order field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /** Order direction */
+ direction?: (google.firestore.v1.StructuredQuery.Direction|keyof typeof google.firestore.v1.StructuredQuery.Direction|null);
+ }
+
+ /** Represents an Order. */
+ class Order implements IOrder {
+
+ /**
+ * Constructs a new Order.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IOrder);
+
+ /** Order field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /** Order direction. */
+ public direction: (google.firestore.v1.StructuredQuery.Direction|keyof typeof google.firestore.v1.StructuredQuery.Direction);
+
+ /**
+ * Creates a new Order instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Order instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.IOrder): google.firestore.v1.StructuredQuery.Order;
+
+ /**
+ * Encodes the specified Order message. Does not implicitly {@link google.firestore.v1.StructuredQuery.Order.verify|verify} messages.
+ * @param message Order message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.IOrder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Order message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.Order.verify|verify} messages.
+ * @param message Order message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.IOrder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Order message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Order
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.Order;
+
+ /**
+ * Decodes an Order message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Order
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.Order;
+
+ /**
+ * Verifies an Order message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Order message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Order
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.Order;
+
+ /**
+ * Creates a plain object from an Order message. Also converts values to other types if specified.
+ * @param message Order
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.Order, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Order to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Order
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Direction enum. */
+ enum Direction {
+ DIRECTION_UNSPECIFIED = 0,
+ ASCENDING = 1,
+ DESCENDING = 2
+ }
+
+ /** Properties of a FieldReference. */
+ interface IFieldReference {
+
+ /** FieldReference fieldPath */
+ fieldPath?: (string|null);
+ }
+
+ /** Represents a FieldReference. */
+ class FieldReference implements IFieldReference {
+
+ /**
+ * Constructs a new FieldReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFieldReference);
+
+ /** FieldReference fieldPath. */
+ public fieldPath: string;
+
+ /**
+ * Creates a new FieldReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldReference instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.IFieldReference): google.firestore.v1.StructuredQuery.FieldReference;
+
+ /**
+ * Encodes the specified FieldReference message. Does not implicitly {@link google.firestore.v1.StructuredQuery.FieldReference.verify|verify} messages.
+ * @param message FieldReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.IFieldReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldReference message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.FieldReference.verify|verify} messages.
+ * @param message FieldReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.IFieldReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.FieldReference;
+
+ /**
+ * Decodes a FieldReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.FieldReference;
+
+ /**
+ * Verifies a FieldReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.FieldReference;
+
+ /**
+ * Creates a plain object from a FieldReference message. Also converts values to other types if specified.
+ * @param message FieldReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.FieldReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Projection. */
+ interface IProjection {
+
+ /** Projection fields */
+ fields?: (google.firestore.v1.StructuredQuery.IFieldReference[]|null);
+ }
+
+ /** Represents a Projection. */
+ class Projection implements IProjection {
+
+ /**
+ * Constructs a new Projection.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IProjection);
+
+ /** Projection fields. */
+ public fields: google.firestore.v1.StructuredQuery.IFieldReference[];
+
+ /**
+ * Creates a new Projection instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Projection instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.IProjection): google.firestore.v1.StructuredQuery.Projection;
+
+ /**
+ * Encodes the specified Projection message. Does not implicitly {@link google.firestore.v1.StructuredQuery.Projection.verify|verify} messages.
+ * @param message Projection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.IProjection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Projection message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.Projection.verify|verify} messages.
+ * @param message Projection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.IProjection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Projection message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Projection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.Projection;
+
+ /**
+ * Decodes a Projection message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Projection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.Projection;
+
+ /**
+ * Verifies a Projection message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Projection message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Projection
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.Projection;
+
+ /**
+ * Creates a plain object from a Projection message. Also converts values to other types if specified.
+ * @param message Projection
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.Projection, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Projection to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Projection
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FindNearest. */
+ interface IFindNearest {
+
+ /** FindNearest vectorField */
+ vectorField?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /** FindNearest queryVector */
+ queryVector?: (google.firestore.v1.IValue|null);
+
+ /** FindNearest distanceMeasure */
+ distanceMeasure?: (google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure|keyof typeof google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure|null);
+
+ /** FindNearest limit */
+ limit?: (google.protobuf.IInt32Value|null);
+
+ /** FindNearest distanceResultField */
+ distanceResultField?: (string|null);
+
+ /** FindNearest distanceThreshold */
+ distanceThreshold?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents a FindNearest. */
+ class FindNearest implements IFindNearest {
+
+ /**
+ * Constructs a new FindNearest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFindNearest);
+
+ /** FindNearest vectorField. */
+ public vectorField?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /** FindNearest queryVector. */
+ public queryVector?: (google.firestore.v1.IValue|null);
+
+ /** FindNearest distanceMeasure. */
+ public distanceMeasure: (google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure|keyof typeof google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure);
+
+ /** FindNearest limit. */
+ public limit?: (google.protobuf.IInt32Value|null);
+
+ /** FindNearest distanceResultField. */
+ public distanceResultField: string;
+
+ /** FindNearest distanceThreshold. */
+ public distanceThreshold?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new FindNearest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FindNearest instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredQuery.IFindNearest): google.firestore.v1.StructuredQuery.FindNearest;
+
+ /**
+ * Encodes the specified FindNearest message. Does not implicitly {@link google.firestore.v1.StructuredQuery.FindNearest.verify|verify} messages.
+ * @param message FindNearest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredQuery.IFindNearest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FindNearest message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredQuery.FindNearest.verify|verify} messages.
+ * @param message FindNearest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredQuery.IFindNearest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FindNearest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FindNearest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredQuery.FindNearest;
+
+ /**
+ * Decodes a FindNearest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FindNearest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredQuery.FindNearest;
+
+ /**
+ * Verifies a FindNearest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FindNearest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FindNearest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery.FindNearest;
+
+ /**
+ * Creates a plain object from a FindNearest message. Also converts values to other types if specified.
+ * @param message FindNearest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredQuery.FindNearest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FindNearest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FindNearest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FindNearest {
+
+ /** DistanceMeasure enum. */
+ enum DistanceMeasure {
+ DISTANCE_MEASURE_UNSPECIFIED = 0,
+ EUCLIDEAN = 1,
+ COSINE = 2,
+ DOT_PRODUCT = 3
+ }
+ }
+ }
+
+ /** Properties of a StructuredAggregationQuery. */
+ interface IStructuredAggregationQuery {
+
+ /** StructuredAggregationQuery structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+
+ /** StructuredAggregationQuery aggregations */
+ aggregations?: (google.firestore.v1.StructuredAggregationQuery.IAggregation[]|null);
+ }
+
+ /** Represents a StructuredAggregationQuery. */
+ class StructuredAggregationQuery implements IStructuredAggregationQuery {
+
+ /**
+ * Constructs a new StructuredAggregationQuery.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IStructuredAggregationQuery);
+
+ /** StructuredAggregationQuery structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+
+ /** StructuredAggregationQuery aggregations. */
+ public aggregations: google.firestore.v1.StructuredAggregationQuery.IAggregation[];
+
+ /** StructuredAggregationQuery queryType. */
+ public queryType?: "structuredQuery";
+
+ /**
+ * Creates a new StructuredAggregationQuery instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StructuredAggregationQuery instance
+ */
+ public static create(properties?: google.firestore.v1.IStructuredAggregationQuery): google.firestore.v1.StructuredAggregationQuery;
+
+ /**
+ * Encodes the specified StructuredAggregationQuery message. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.verify|verify} messages.
+ * @param message StructuredAggregationQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IStructuredAggregationQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StructuredAggregationQuery message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.verify|verify} messages.
+ * @param message StructuredAggregationQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IStructuredAggregationQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StructuredAggregationQuery message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StructuredAggregationQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredAggregationQuery;
+
+ /**
+ * Decodes a StructuredAggregationQuery message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StructuredAggregationQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredAggregationQuery;
+
+ /**
+ * Verifies a StructuredAggregationQuery message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StructuredAggregationQuery message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StructuredAggregationQuery
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredAggregationQuery;
+
+ /**
+ * Creates a plain object from a StructuredAggregationQuery message. Also converts values to other types if specified.
+ * @param message StructuredAggregationQuery
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredAggregationQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StructuredAggregationQuery to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StructuredAggregationQuery
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StructuredAggregationQuery {
+
+ /** Properties of an Aggregation. */
+ interface IAggregation {
+
+ /** Aggregation count */
+ count?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount|null);
+
+ /** Aggregation sum */
+ sum?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum|null);
+
+ /** Aggregation avg */
+ avg?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg|null);
+
+ /** Aggregation alias */
+ alias?: (string|null);
+ }
+
+ /** Represents an Aggregation. */
+ class Aggregation implements IAggregation {
+
+ /**
+ * Constructs a new Aggregation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.IAggregation);
+
+ /** Aggregation count. */
+ public count?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount|null);
+
+ /** Aggregation sum. */
+ public sum?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum|null);
+
+ /** Aggregation avg. */
+ public avg?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg|null);
+
+ /** Aggregation alias. */
+ public alias: string;
+
+ /** Aggregation operator. */
+ public operator?: ("count"|"sum"|"avg");
+
+ /**
+ * Creates a new Aggregation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Aggregation instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredAggregationQuery.IAggregation): google.firestore.v1.StructuredAggregationQuery.Aggregation;
+
+ /**
+ * Encodes the specified Aggregation message. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.verify|verify} messages.
+ * @param message Aggregation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredAggregationQuery.IAggregation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Aggregation message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.verify|verify} messages.
+ * @param message Aggregation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredAggregationQuery.IAggregation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Aggregation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Aggregation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredAggregationQuery.Aggregation;
+
+ /**
+ * Decodes an Aggregation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Aggregation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredAggregationQuery.Aggregation;
+
+ /**
+ * Verifies an Aggregation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Aggregation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Aggregation
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredAggregationQuery.Aggregation;
+
+ /**
+ * Creates a plain object from an Aggregation message. Also converts values to other types if specified.
+ * @param message Aggregation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredAggregationQuery.Aggregation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Aggregation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Aggregation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Aggregation {
+
+ /** Properties of a Count. */
+ interface ICount {
+
+ /** Count upTo */
+ upTo?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a Count. */
+ class Count implements ICount {
+
+ /**
+ * Constructs a new Count.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount);
+
+ /** Count upTo. */
+ public upTo?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new Count instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Count instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount): google.firestore.v1.StructuredAggregationQuery.Aggregation.Count;
+
+ /**
+ * Encodes the specified Count message. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.verify|verify} messages.
+ * @param message Count message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Count message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.verify|verify} messages.
+ * @param message Count message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Count message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Count
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredAggregationQuery.Aggregation.Count;
+
+ /**
+ * Decodes a Count message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Count
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredAggregationQuery.Aggregation.Count;
+
+ /**
+ * Verifies a Count message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Count message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Count
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredAggregationQuery.Aggregation.Count;
+
+ /**
+ * Creates a plain object from a Count message. Also converts values to other types if specified.
+ * @param message Count
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.Count, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Count to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Count
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Sum. */
+ interface ISum {
+
+ /** Sum field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ }
+
+ /** Represents a Sum. */
+ class Sum implements ISum {
+
+ /**
+ * Constructs a new Sum.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum);
+
+ /** Sum field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /**
+ * Creates a new Sum instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Sum instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum): google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum;
+
+ /**
+ * Encodes the specified Sum message. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.verify|verify} messages.
+ * @param message Sum message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Sum message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.verify|verify} messages.
+ * @param message Sum message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Sum message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Sum
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum;
+
+ /**
+ * Decodes a Sum message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Sum
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum;
+
+ /**
+ * Verifies a Sum message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Sum message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Sum
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum;
+
+ /**
+ * Creates a plain object from a Sum message. Also converts values to other types if specified.
+ * @param message Sum
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Sum to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Sum
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Avg. */
+ interface IAvg {
+
+ /** Avg field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ }
+
+ /** Represents an Avg. */
+ class Avg implements IAvg {
+
+ /**
+ * Constructs a new Avg.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg);
+
+ /** Avg field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+
+ /**
+ * Creates a new Avg instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Avg instance
+ */
+ public static create(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg): google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg;
+
+ /**
+ * Encodes the specified Avg message. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.verify|verify} messages.
+ * @param message Avg message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Avg message, length delimited. Does not implicitly {@link google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.verify|verify} messages.
+ * @param message Avg message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Avg message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Avg
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg;
+
+ /**
+ * Decodes an Avg message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Avg
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg;
+
+ /**
+ * Verifies an Avg message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Avg message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Avg
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg;
+
+ /**
+ * Creates a plain object from an Avg message. Also converts values to other types if specified.
+ * @param message Avg
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Avg to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Avg
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a Cursor. */
+ interface ICursor {
+
+ /** Cursor values */
+ values?: (google.firestore.v1.IValue[]|null);
+
+ /** Cursor before */
+ before?: (boolean|null);
+ }
+
+ /** Represents a Cursor. */
+ class Cursor implements ICursor {
+
+ /**
+ * Constructs a new Cursor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ICursor);
+
+ /** Cursor values. */
+ public values: google.firestore.v1.IValue[];
+
+ /** Cursor before. */
+ public before: boolean;
+
+ /**
+ * Creates a new Cursor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Cursor instance
+ */
+ public static create(properties?: google.firestore.v1.ICursor): google.firestore.v1.Cursor;
+
+ /**
+ * Encodes the specified Cursor message. Does not implicitly {@link google.firestore.v1.Cursor.verify|verify} messages.
+ * @param message Cursor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.ICursor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Cursor message, length delimited. Does not implicitly {@link google.firestore.v1.Cursor.verify|verify} messages.
+ * @param message Cursor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.ICursor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Cursor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Cursor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Cursor;
+
+ /**
+ * Decodes a Cursor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Cursor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Cursor;
+
+ /**
+ * Verifies a Cursor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Cursor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Cursor
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Cursor;
+
+ /**
+ * Creates a plain object from a Cursor message. Also converts values to other types if specified.
+ * @param message Cursor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Cursor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Cursor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Cursor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExplainOptions. */
+ interface IExplainOptions {
+
+ /** ExplainOptions analyze */
+ analyze?: (boolean|null);
+ }
+
+ /** Represents an ExplainOptions. */
+ class ExplainOptions implements IExplainOptions {
+
+ /**
+ * Constructs a new ExplainOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExplainOptions);
+
+ /** ExplainOptions analyze. */
+ public analyze: boolean;
+
+ /**
+ * Creates a new ExplainOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExplainOptions instance
+ */
+ public static create(properties?: google.firestore.v1.IExplainOptions): google.firestore.v1.ExplainOptions;
+
+ /**
+ * Encodes the specified ExplainOptions message. Does not implicitly {@link google.firestore.v1.ExplainOptions.verify|verify} messages.
+ * @param message ExplainOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IExplainOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExplainOptions message, length delimited. Does not implicitly {@link google.firestore.v1.ExplainOptions.verify|verify} messages.
+ * @param message ExplainOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IExplainOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExplainOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExplainOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ExplainOptions;
+
+ /**
+ * Decodes an ExplainOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExplainOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ExplainOptions;
+
+ /**
+ * Verifies an ExplainOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExplainOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExplainOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExplainOptions;
+
+ /**
+ * Creates a plain object from an ExplainOptions message. Also converts values to other types if specified.
+ * @param message ExplainOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ExplainOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExplainOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExplainOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExplainMetrics. */
+ interface IExplainMetrics {
+
+ /** ExplainMetrics planSummary */
+ planSummary?: (google.firestore.v1.IPlanSummary|null);
+
+ /** ExplainMetrics executionStats */
+ executionStats?: (google.firestore.v1.IExecutionStats|null);
+ }
+
+ /** Represents an ExplainMetrics. */
+ class ExplainMetrics implements IExplainMetrics {
+
+ /**
+ * Constructs a new ExplainMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExplainMetrics);
+
+ /** ExplainMetrics planSummary. */
+ public planSummary?: (google.firestore.v1.IPlanSummary|null);
+
+ /** ExplainMetrics executionStats. */
+ public executionStats?: (google.firestore.v1.IExecutionStats|null);
+
+ /**
+ * Creates a new ExplainMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExplainMetrics instance
+ */
+ public static create(properties?: google.firestore.v1.IExplainMetrics): google.firestore.v1.ExplainMetrics;
+
+ /**
+ * Encodes the specified ExplainMetrics message. Does not implicitly {@link google.firestore.v1.ExplainMetrics.verify|verify} messages.
+ * @param message ExplainMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IExplainMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExplainMetrics message, length delimited. Does not implicitly {@link google.firestore.v1.ExplainMetrics.verify|verify} messages.
+ * @param message ExplainMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IExplainMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExplainMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExplainMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ExplainMetrics;
+
+ /**
+ * Decodes an ExplainMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExplainMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ExplainMetrics;
+
+ /**
+ * Verifies an ExplainMetrics message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExplainMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExplainMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExplainMetrics;
+
+ /**
+ * Creates a plain object from an ExplainMetrics message. Also converts values to other types if specified.
+ * @param message ExplainMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ExplainMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExplainMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExplainMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PlanSummary. */
+ interface IPlanSummary {
+
+ /** PlanSummary indexesUsed */
+ indexesUsed?: (google.protobuf.IStruct[]|null);
+ }
+
+ /** Represents a PlanSummary. */
+ class PlanSummary implements IPlanSummary {
+
+ /**
+ * Constructs a new PlanSummary.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPlanSummary);
+
+ /** PlanSummary indexesUsed. */
+ public indexesUsed: google.protobuf.IStruct[];
+
+ /**
+ * Creates a new PlanSummary instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PlanSummary instance
+ */
+ public static create(properties?: google.firestore.v1.IPlanSummary): google.firestore.v1.PlanSummary;
+
+ /**
+ * Encodes the specified PlanSummary message. Does not implicitly {@link google.firestore.v1.PlanSummary.verify|verify} messages.
+ * @param message PlanSummary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IPlanSummary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PlanSummary message, length delimited. Does not implicitly {@link google.firestore.v1.PlanSummary.verify|verify} messages.
+ * @param message PlanSummary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IPlanSummary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PlanSummary message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PlanSummary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.PlanSummary;
+
+ /**
+ * Decodes a PlanSummary message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PlanSummary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.PlanSummary;
+
+ /**
+ * Verifies a PlanSummary message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PlanSummary message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PlanSummary
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.PlanSummary;
+
+ /**
+ * Creates a plain object from a PlanSummary message. Also converts values to other types if specified.
+ * @param message PlanSummary
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.PlanSummary, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PlanSummary to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PlanSummary
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExecutionStats. */
+ interface IExecutionStats {
+
+ /** ExecutionStats resultsReturned */
+ resultsReturned?: (number|Long|string|null);
+
+ /** ExecutionStats executionDuration */
+ executionDuration?: (google.protobuf.IDuration|null);
+
+ /** ExecutionStats readOperations */
+ readOperations?: (number|Long|string|null);
+
+ /** ExecutionStats debugStats */
+ debugStats?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents an ExecutionStats. */
+ class ExecutionStats implements IExecutionStats {
+
+ /**
+ * Constructs a new ExecutionStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExecutionStats);
+
+ /** ExecutionStats resultsReturned. */
+ public resultsReturned: (number|Long|string);
+
+ /** ExecutionStats executionDuration. */
+ public executionDuration?: (google.protobuf.IDuration|null);
+
+ /** ExecutionStats readOperations. */
+ public readOperations: (number|Long|string);
+
+ /** ExecutionStats debugStats. */
+ public debugStats?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new ExecutionStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecutionStats instance
+ */
+ public static create(properties?: google.firestore.v1.IExecutionStats): google.firestore.v1.ExecutionStats;
+
+ /**
+ * Encodes the specified ExecutionStats message. Does not implicitly {@link google.firestore.v1.ExecutionStats.verify|verify} messages.
+ * @param message ExecutionStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IExecutionStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecutionStats message, length delimited. Does not implicitly {@link google.firestore.v1.ExecutionStats.verify|verify} messages.
+ * @param message ExecutionStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IExecutionStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecutionStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecutionStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ExecutionStats;
+
+ /**
+ * Decodes an ExecutionStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecutionStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ExecutionStats;
+
+ /**
+ * Verifies an ExecutionStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExecutionStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecutionStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExecutionStats;
+
+ /**
+ * Creates a plain object from an ExecutionStats message. Also converts values to other types if specified.
+ * @param message ExecutionStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ExecutionStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecutionStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecutionStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Write. */
+ interface IWrite {
+
+ /** Write update */
+ update?: (google.firestore.v1.IDocument|null);
+
+ /** Write delete */
+ "delete"?: (string|null);
+
+ /** Write transform */
+ transform?: (google.firestore.v1.IDocumentTransform|null);
+
+ /** Write updateMask */
+ updateMask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** Write updateTransforms */
+ updateTransforms?: (google.firestore.v1.DocumentTransform.IFieldTransform[]|null);
+
+ /** Write currentDocument */
+ currentDocument?: (google.firestore.v1.IPrecondition|null);
+ }
+
+ /** Represents a Write. */
+ class Write implements IWrite {
+
+ /**
+ * Constructs a new Write.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IWrite);
+
+ /** Write update. */
+ public update?: (google.firestore.v1.IDocument|null);
+
+ /** Write delete. */
+ public delete?: (string|null);
+
+ /** Write transform. */
+ public transform?: (google.firestore.v1.IDocumentTransform|null);
+
+ /** Write updateMask. */
+ public updateMask?: (google.firestore.v1.IDocumentMask|null);
+
+ /** Write updateTransforms. */
+ public updateTransforms: google.firestore.v1.DocumentTransform.IFieldTransform[];
+
+ /** Write currentDocument. */
+ public currentDocument?: (google.firestore.v1.IPrecondition|null);
+
+ /** Write operation. */
+ public operation?: ("update"|"delete"|"transform");
+
+ /**
+ * Creates a new Write instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Write instance
+ */
+ public static create(properties?: google.firestore.v1.IWrite): google.firestore.v1.Write;
+
+ /**
+ * Encodes the specified Write message. Does not implicitly {@link google.firestore.v1.Write.verify|verify} messages.
+ * @param message Write message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Write message, length delimited. Does not implicitly {@link google.firestore.v1.Write.verify|verify} messages.
+ * @param message Write message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Write message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Write
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.Write;
+
+ /**
+ * Decodes a Write message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Write
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.Write;
+
+ /**
+ * Verifies a Write message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Write message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Write
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Write;
+
+ /**
+ * Creates a plain object from a Write message. Also converts values to other types if specified.
+ * @param message Write
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.Write, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Write to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Write
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentTransform. */
+ interface IDocumentTransform {
+
+ /** DocumentTransform document */
+ document?: (string|null);
+
+ /** DocumentTransform fieldTransforms */
+ fieldTransforms?: (google.firestore.v1.DocumentTransform.IFieldTransform[]|null);
+ }
+
+ /** Represents a DocumentTransform. */
+ class DocumentTransform implements IDocumentTransform {
+
+ /**
+ * Constructs a new DocumentTransform.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocumentTransform);
+
+ /** DocumentTransform document. */
+ public document: string;
+
+ /** DocumentTransform fieldTransforms. */
+ public fieldTransforms: google.firestore.v1.DocumentTransform.IFieldTransform[];
+
+ /**
+ * Creates a new DocumentTransform instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentTransform instance
+ */
+ public static create(properties?: google.firestore.v1.IDocumentTransform): google.firestore.v1.DocumentTransform;
+
+ /**
+ * Encodes the specified DocumentTransform message. Does not implicitly {@link google.firestore.v1.DocumentTransform.verify|verify} messages.
+ * @param message DocumentTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IDocumentTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentTransform message, length delimited. Does not implicitly {@link google.firestore.v1.DocumentTransform.verify|verify} messages.
+ * @param message DocumentTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IDocumentTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentTransform message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.DocumentTransform;
+
+ /**
+ * Decodes a DocumentTransform message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.DocumentTransform;
+
+ /**
+ * Verifies a DocumentTransform message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentTransform message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentTransform
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentTransform;
+
+ /**
+ * Creates a plain object from a DocumentTransform message. Also converts values to other types if specified.
+ * @param message DocumentTransform
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.DocumentTransform, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentTransform to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentTransform
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentTransform {
+
+ /** Properties of a FieldTransform. */
+ interface IFieldTransform {
+
+ /** FieldTransform fieldPath */
+ fieldPath?: (string|null);
+
+ /** FieldTransform setToServerValue */
+ setToServerValue?: (google.firestore.v1.DocumentTransform.FieldTransform.ServerValue|keyof typeof google.firestore.v1.DocumentTransform.FieldTransform.ServerValue|null);
+
+ /** FieldTransform increment */
+ increment?: (google.firestore.v1.IValue|null);
+
+ /** FieldTransform maximum */
+ maximum?: (google.firestore.v1.IValue|null);
+
+ /** FieldTransform minimum */
+ minimum?: (google.firestore.v1.IValue|null);
+
+ /** FieldTransform appendMissingElements */
+ appendMissingElements?: (google.firestore.v1.IArrayValue|null);
+
+ /** FieldTransform removeAllFromArray */
+ removeAllFromArray?: (google.firestore.v1.IArrayValue|null);
+ }
+
+ /** Represents a FieldTransform. */
+ class FieldTransform implements IFieldTransform {
+
+ /**
+ * Constructs a new FieldTransform.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.DocumentTransform.IFieldTransform);
+
+ /** FieldTransform fieldPath. */
+ public fieldPath: string;
+
+ /** FieldTransform setToServerValue. */
+ public setToServerValue?: (google.firestore.v1.DocumentTransform.FieldTransform.ServerValue|keyof typeof google.firestore.v1.DocumentTransform.FieldTransform.ServerValue|null);
+
+ /** FieldTransform increment. */
+ public increment?: (google.firestore.v1.IValue|null);
+
+ /** FieldTransform maximum. */
+ public maximum?: (google.firestore.v1.IValue|null);
+
+ /** FieldTransform minimum. */
+ public minimum?: (google.firestore.v1.IValue|null);
+
+ /** FieldTransform appendMissingElements. */
+ public appendMissingElements?: (google.firestore.v1.IArrayValue|null);
+
+ /** FieldTransform removeAllFromArray. */
+ public removeAllFromArray?: (google.firestore.v1.IArrayValue|null);
+
+ /** FieldTransform transformType. */
+ public transformType?: ("setToServerValue"|"increment"|"maximum"|"minimum"|"appendMissingElements"|"removeAllFromArray");
+
+ /**
+ * Creates a new FieldTransform instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldTransform instance
+ */
+ public static create(properties?: google.firestore.v1.DocumentTransform.IFieldTransform): google.firestore.v1.DocumentTransform.FieldTransform;
+
+ /**
+ * Encodes the specified FieldTransform message. Does not implicitly {@link google.firestore.v1.DocumentTransform.FieldTransform.verify|verify} messages.
+ * @param message FieldTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.DocumentTransform.IFieldTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldTransform message, length delimited. Does not implicitly {@link google.firestore.v1.DocumentTransform.FieldTransform.verify|verify} messages.
+ * @param message FieldTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.DocumentTransform.IFieldTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldTransform message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.DocumentTransform.FieldTransform;
+
+ /**
+ * Decodes a FieldTransform message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.DocumentTransform.FieldTransform;
+
+ /**
+ * Verifies a FieldTransform message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldTransform message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldTransform
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentTransform.FieldTransform;
+
+ /**
+ * Creates a plain object from a FieldTransform message. Also converts values to other types if specified.
+ * @param message FieldTransform
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.DocumentTransform.FieldTransform, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldTransform to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldTransform
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldTransform {
+
+ /** ServerValue enum. */
+ enum ServerValue {
+ SERVER_VALUE_UNSPECIFIED = 0,
+ REQUEST_TIME = 1
+ }
+ }
+ }
+
+ /** Properties of a WriteResult. */
+ interface IWriteResult {
+
+ /** WriteResult updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** WriteResult transformResults */
+ transformResults?: (google.firestore.v1.IValue[]|null);
+ }
+
+ /** Represents a WriteResult. */
+ class WriteResult implements IWriteResult {
+
+ /**
+ * Constructs a new WriteResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IWriteResult);
+
+ /** WriteResult updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** WriteResult transformResults. */
+ public transformResults: google.firestore.v1.IValue[];
+
+ /**
+ * Creates a new WriteResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteResult instance
+ */
+ public static create(properties?: google.firestore.v1.IWriteResult): google.firestore.v1.WriteResult;
+
+ /**
+ * Encodes the specified WriteResult message. Does not implicitly {@link google.firestore.v1.WriteResult.verify|verify} messages.
+ * @param message WriteResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IWriteResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteResult message, length delimited. Does not implicitly {@link google.firestore.v1.WriteResult.verify|verify} messages.
+ * @param message WriteResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IWriteResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.WriteResult;
+
+ /**
+ * Decodes a WriteResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.WriteResult;
+
+ /**
+ * Verifies a WriteResult message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WriteResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.WriteResult;
+
+ /**
+ * Creates a plain object from a WriteResult message. Also converts values to other types if specified.
+ * @param message WriteResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.WriteResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentChange. */
+ interface IDocumentChange {
+
+ /** DocumentChange document */
+ document?: (google.firestore.v1.IDocument|null);
+
+ /** DocumentChange targetIds */
+ targetIds?: (number[]|null);
+
+ /** DocumentChange removedTargetIds */
+ removedTargetIds?: (number[]|null);
+ }
+
+ /** Represents a DocumentChange. */
+ class DocumentChange implements IDocumentChange {
+
+ /**
+ * Constructs a new DocumentChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocumentChange);
+
+ /** DocumentChange document. */
+ public document?: (google.firestore.v1.IDocument|null);
+
+ /** DocumentChange targetIds. */
+ public targetIds: number[];
+
+ /** DocumentChange removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /**
+ * Creates a new DocumentChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentChange instance
+ */
+ public static create(properties?: google.firestore.v1.IDocumentChange): google.firestore.v1.DocumentChange;
+
+ /**
+ * Encodes the specified DocumentChange message. Does not implicitly {@link google.firestore.v1.DocumentChange.verify|verify} messages.
+ * @param message DocumentChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IDocumentChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentChange message, length delimited. Does not implicitly {@link google.firestore.v1.DocumentChange.verify|verify} messages.
+ * @param message DocumentChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IDocumentChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.DocumentChange;
+
+ /**
+ * Decodes a DocumentChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.DocumentChange;
+
+ /**
+ * Verifies a DocumentChange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentChange;
+
+ /**
+ * Creates a plain object from a DocumentChange message. Also converts values to other types if specified.
+ * @param message DocumentChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.DocumentChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentChange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentDelete. */
+ interface IDocumentDelete {
+
+ /** DocumentDelete document */
+ document?: (string|null);
+
+ /** DocumentDelete removedTargetIds */
+ removedTargetIds?: (number[]|null);
+
+ /** DocumentDelete readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a DocumentDelete. */
+ class DocumentDelete implements IDocumentDelete {
+
+ /**
+ * Constructs a new DocumentDelete.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocumentDelete);
+
+ /** DocumentDelete document. */
+ public document: string;
+
+ /** DocumentDelete removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /** DocumentDelete readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new DocumentDelete instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentDelete instance
+ */
+ public static create(properties?: google.firestore.v1.IDocumentDelete): google.firestore.v1.DocumentDelete;
+
+ /**
+ * Encodes the specified DocumentDelete message. Does not implicitly {@link google.firestore.v1.DocumentDelete.verify|verify} messages.
+ * @param message DocumentDelete message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IDocumentDelete, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentDelete message, length delimited. Does not implicitly {@link google.firestore.v1.DocumentDelete.verify|verify} messages.
+ * @param message DocumentDelete message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IDocumentDelete, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentDelete message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentDelete
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.DocumentDelete;
+
+ /**
+ * Decodes a DocumentDelete message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentDelete
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.DocumentDelete;
+
+ /**
+ * Verifies a DocumentDelete message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentDelete message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentDelete
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentDelete;
+
+ /**
+ * Creates a plain object from a DocumentDelete message. Also converts values to other types if specified.
+ * @param message DocumentDelete
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.DocumentDelete, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentDelete to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentDelete
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentRemove. */
+ interface IDocumentRemove {
+
+ /** DocumentRemove document */
+ document?: (string|null);
+
+ /** DocumentRemove removedTargetIds */
+ removedTargetIds?: (number[]|null);
+
+ /** DocumentRemove readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a DocumentRemove. */
+ class DocumentRemove implements IDocumentRemove {
+
+ /**
+ * Constructs a new DocumentRemove.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocumentRemove);
+
+ /** DocumentRemove document. */
+ public document: string;
+
+ /** DocumentRemove removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /** DocumentRemove readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new DocumentRemove instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentRemove instance
+ */
+ public static create(properties?: google.firestore.v1.IDocumentRemove): google.firestore.v1.DocumentRemove;
+
+ /**
+ * Encodes the specified DocumentRemove message. Does not implicitly {@link google.firestore.v1.DocumentRemove.verify|verify} messages.
+ * @param message DocumentRemove message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IDocumentRemove, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentRemove message, length delimited. Does not implicitly {@link google.firestore.v1.DocumentRemove.verify|verify} messages.
+ * @param message DocumentRemove message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IDocumentRemove, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentRemove message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentRemove
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.DocumentRemove;
+
+ /**
+ * Decodes a DocumentRemove message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentRemove
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.DocumentRemove;
+
+ /**
+ * Verifies a DocumentRemove message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentRemove message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentRemove
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentRemove;
+
+ /**
+ * Creates a plain object from a DocumentRemove message. Also converts values to other types if specified.
+ * @param message DocumentRemove
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.DocumentRemove, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentRemove to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentRemove
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExistenceFilter. */
+ interface IExistenceFilter {
+
+ /** ExistenceFilter targetId */
+ targetId?: (number|null);
+
+ /** ExistenceFilter count */
+ count?: (number|null);
+
+ /** ExistenceFilter unchangedNames */
+ unchangedNames?: (google.firestore.v1.IBloomFilter|null);
+ }
+
+ /** Represents an ExistenceFilter. */
+ class ExistenceFilter implements IExistenceFilter {
+
+ /**
+ * Constructs a new ExistenceFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExistenceFilter);
+
+ /** ExistenceFilter targetId. */
+ public targetId: number;
+
+ /** ExistenceFilter count. */
+ public count: number;
+
+ /** ExistenceFilter unchangedNames. */
+ public unchangedNames?: (google.firestore.v1.IBloomFilter|null);
+
+ /**
+ * Creates a new ExistenceFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExistenceFilter instance
+ */
+ public static create(properties?: google.firestore.v1.IExistenceFilter): google.firestore.v1.ExistenceFilter;
+
+ /**
+ * Encodes the specified ExistenceFilter message. Does not implicitly {@link google.firestore.v1.ExistenceFilter.verify|verify} messages.
+ * @param message ExistenceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1.IExistenceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExistenceFilter message, length delimited. Does not implicitly {@link google.firestore.v1.ExistenceFilter.verify|verify} messages.
+ * @param message ExistenceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1.IExistenceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExistenceFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExistenceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1.ExistenceFilter;
+
+ /**
+ * Decodes an ExistenceFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExistenceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1.ExistenceFilter;
+
+ /**
+ * Verifies an ExistenceFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExistenceFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExistenceFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExistenceFilter;
+
+ /**
+ * Creates a plain object from an ExistenceFilter message. Also converts values to other types if specified.
+ * @param message ExistenceFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1.ExistenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExistenceFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExistenceFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace v1beta1. */
+ namespace v1beta1 {
+
+ /** Properties of a DocumentMask. */
+ interface IDocumentMask {
+
+ /** DocumentMask fieldPaths */
+ fieldPaths?: (string[]|null);
+ }
+
+ /** Represents a DocumentMask. */
+ class DocumentMask implements IDocumentMask {
+
+ /**
+ * Constructs a new DocumentMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IDocumentMask);
+
+ /** DocumentMask fieldPaths. */
+ public fieldPaths: string[];
+
+ /**
+ * Creates a new DocumentMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentMask instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IDocumentMask): google.firestore.v1beta1.DocumentMask;
+
+ /**
+ * Encodes the specified DocumentMask message. Does not implicitly {@link google.firestore.v1beta1.DocumentMask.verify|verify} messages.
+ * @param message DocumentMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IDocumentMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentMask message, length delimited. Does not implicitly {@link google.firestore.v1beta1.DocumentMask.verify|verify} messages.
+ * @param message DocumentMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IDocumentMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.DocumentMask;
+
+ /**
+ * Decodes a DocumentMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.DocumentMask;
+
+ /**
+ * Verifies a DocumentMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.DocumentMask;
+
+ /**
+ * Creates a plain object from a DocumentMask message. Also converts values to other types if specified.
+ * @param message DocumentMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.DocumentMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Precondition. */
+ interface IPrecondition {
+
+ /** Precondition exists */
+ exists?: (boolean|null);
+
+ /** Precondition updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a Precondition. */
+ class Precondition implements IPrecondition {
+
+ /**
+ * Constructs a new Precondition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IPrecondition);
+
+ /** Precondition exists. */
+ public exists?: (boolean|null);
+
+ /** Precondition updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Precondition conditionType. */
+ public conditionType?: ("exists"|"updateTime");
+
+ /**
+ * Creates a new Precondition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Precondition instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IPrecondition): google.firestore.v1beta1.Precondition;
+
+ /**
+ * Encodes the specified Precondition message. Does not implicitly {@link google.firestore.v1beta1.Precondition.verify|verify} messages.
+ * @param message Precondition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IPrecondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Precondition message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Precondition.verify|verify} messages.
+ * @param message Precondition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IPrecondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Precondition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Precondition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Precondition;
+
+ /**
+ * Decodes a Precondition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Precondition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Precondition;
+
+ /**
+ * Verifies a Precondition message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Precondition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Precondition
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Precondition;
+
+ /**
+ * Creates a plain object from a Precondition message. Also converts values to other types if specified.
+ * @param message Precondition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Precondition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Precondition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Precondition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TransactionOptions. */
+ interface ITransactionOptions {
+
+ /** TransactionOptions readOnly */
+ readOnly?: (google.firestore.v1beta1.TransactionOptions.IReadOnly|null);
+
+ /** TransactionOptions readWrite */
+ readWrite?: (google.firestore.v1beta1.TransactionOptions.IReadWrite|null);
+ }
+
+ /** Represents a TransactionOptions. */
+ class TransactionOptions implements ITransactionOptions {
+
+ /**
+ * Constructs a new TransactionOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.ITransactionOptions);
+
+ /** TransactionOptions readOnly. */
+ public readOnly?: (google.firestore.v1beta1.TransactionOptions.IReadOnly|null);
+
+ /** TransactionOptions readWrite. */
+ public readWrite?: (google.firestore.v1beta1.TransactionOptions.IReadWrite|null);
+
+ /** TransactionOptions mode. */
+ public mode?: ("readOnly"|"readWrite");
+
+ /**
+ * Creates a new TransactionOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransactionOptions instance
+ */
+ public static create(properties?: google.firestore.v1beta1.ITransactionOptions): google.firestore.v1beta1.TransactionOptions;
+
+ /**
+ * Encodes the specified TransactionOptions message. Does not implicitly {@link google.firestore.v1beta1.TransactionOptions.verify|verify} messages.
+ * @param message TransactionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransactionOptions message, length delimited. Does not implicitly {@link google.firestore.v1beta1.TransactionOptions.verify|verify} messages.
+ * @param message TransactionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransactionOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransactionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.TransactionOptions;
+
+ /**
+ * Decodes a TransactionOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransactionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.TransactionOptions;
+
+ /**
+ * Verifies a TransactionOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransactionOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.TransactionOptions;
+
+ /**
+ * Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.
+ * @param message TransactionOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.TransactionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransactionOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransactionOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TransactionOptions {
+
+ /** Properties of a ReadWrite. */
+ interface IReadWrite {
+
+ /** ReadWrite retryTransaction */
+ retryTransaction?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a ReadWrite. */
+ class ReadWrite implements IReadWrite {
+
+ /**
+ * Constructs a new ReadWrite.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.TransactionOptions.IReadWrite);
+
+ /** ReadWrite retryTransaction. */
+ public retryTransaction: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new ReadWrite instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadWrite instance
+ */
+ public static create(properties?: google.firestore.v1beta1.TransactionOptions.IReadWrite): google.firestore.v1beta1.TransactionOptions.ReadWrite;
+
+ /**
+ * Encodes the specified ReadWrite message. Does not implicitly {@link google.firestore.v1beta1.TransactionOptions.ReadWrite.verify|verify} messages.
+ * @param message ReadWrite message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadWrite message, length delimited. Does not implicitly {@link google.firestore.v1beta1.TransactionOptions.ReadWrite.verify|verify} messages.
+ * @param message ReadWrite message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadWrite message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadWrite
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.TransactionOptions.ReadWrite;
+
+ /**
+ * Decodes a ReadWrite message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadWrite
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.TransactionOptions.ReadWrite;
+
+ /**
+ * Verifies a ReadWrite message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReadWrite message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadWrite
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.TransactionOptions.ReadWrite;
+
+ /**
+ * Creates a plain object from a ReadWrite message. Also converts values to other types if specified.
+ * @param message ReadWrite
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.TransactionOptions.ReadWrite, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadWrite to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadWrite
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReadOnly. */
+ interface IReadOnly {
+
+ /** ReadOnly readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a ReadOnly. */
+ class ReadOnly implements IReadOnly {
+
+ /**
+ * Constructs a new ReadOnly.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.TransactionOptions.IReadOnly);
+
+ /** ReadOnly readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReadOnly consistencySelector. */
+ public consistencySelector?: "readTime";
+
+ /**
+ * Creates a new ReadOnly instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadOnly instance
+ */
+ public static create(properties?: google.firestore.v1beta1.TransactionOptions.IReadOnly): google.firestore.v1beta1.TransactionOptions.ReadOnly;
+
+ /**
+ * Encodes the specified ReadOnly message. Does not implicitly {@link google.firestore.v1beta1.TransactionOptions.ReadOnly.verify|verify} messages.
+ * @param message ReadOnly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadOnly message, length delimited. Does not implicitly {@link google.firestore.v1beta1.TransactionOptions.ReadOnly.verify|verify} messages.
+ * @param message ReadOnly message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadOnly message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadOnly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.TransactionOptions.ReadOnly;
+
+ /**
+ * Decodes a ReadOnly message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadOnly
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.TransactionOptions.ReadOnly;
+
+ /**
+ * Verifies a ReadOnly message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReadOnly message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadOnly
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.TransactionOptions.ReadOnly;
+
+ /**
+ * Creates a plain object from a ReadOnly message. Also converts values to other types if specified.
+ * @param message ReadOnly
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.TransactionOptions.ReadOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadOnly to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadOnly
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Document. */
+ interface IDocument {
+
+ /** Document name */
+ name?: (string|null);
+
+ /** Document fields */
+ fields?: ({ [k: string]: google.firestore.v1beta1.IValue }|null);
+
+ /** Document createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a Document. */
+ class Document implements IDocument {
+
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IDocument);
+
+ /** Document name. */
+ public name: string;
+
+ /** Document fields. */
+ public fields: { [k: string]: google.firestore.v1beta1.IValue };
+
+ /** Document createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Document updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Document instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Document instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IDocument): google.firestore.v1beta1.Document;
+
+ /**
+ * Encodes the specified Document message. Does not implicitly {@link google.firestore.v1beta1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Document message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Document.verify|verify} messages.
+ * @param message Document message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Document;
+
+ /**
+ * Decodes a Document message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Document
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Document;
+
+ /**
+ * Verifies a Document message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Document
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Document;
+
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @param message Document
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Document
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value booleanValue */
+ booleanValue?: (boolean|null);
+
+ /** Value integerValue */
+ integerValue?: (number|Long|string|null);
+
+ /** Value doubleValue */
+ doubleValue?: (number|null);
+
+ /** Value timestampValue */
+ timestampValue?: (google.protobuf.ITimestamp|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value bytesValue */
+ bytesValue?: (Uint8Array|Buffer|string|null);
+
+ /** Value referenceValue */
+ referenceValue?: (string|null);
+
+ /** Value geoPointValue */
+ geoPointValue?: (google.type.ILatLng|null);
+
+ /** Value arrayValue */
+ arrayValue?: (google.firestore.v1beta1.IArrayValue|null);
+
+ /** Value mapValue */
+ mapValue?: (google.firestore.v1beta1.IMapValue|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value booleanValue. */
+ public booleanValue?: (boolean|null);
+
+ /** Value integerValue. */
+ public integerValue?: (number|Long|string|null);
+
+ /** Value doubleValue. */
+ public doubleValue?: (number|null);
+
+ /** Value timestampValue. */
+ public timestampValue?: (google.protobuf.ITimestamp|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value bytesValue. */
+ public bytesValue?: (Uint8Array|Buffer|string|null);
+
+ /** Value referenceValue. */
+ public referenceValue?: (string|null);
+
+ /** Value geoPointValue. */
+ public geoPointValue?: (google.type.ILatLng|null);
+
+ /** Value arrayValue. */
+ public arrayValue?: (google.firestore.v1beta1.IArrayValue|null);
+
+ /** Value mapValue. */
+ public mapValue?: (google.firestore.v1beta1.IMapValue|null);
+
+ /** Value valueType. */
+ public valueType?: ("nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"stringValue"|"bytesValue"|"referenceValue"|"geoPointValue"|"arrayValue"|"mapValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IValue): google.firestore.v1beta1.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.firestore.v1beta1.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ArrayValue. */
+ interface IArrayValue {
+
+ /** ArrayValue values */
+ values?: (google.firestore.v1beta1.IValue[]|null);
+ }
+
+ /** Represents an ArrayValue. */
+ class ArrayValue implements IArrayValue {
+
+ /**
+ * Constructs a new ArrayValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IArrayValue);
+
+ /** ArrayValue values. */
+ public values: google.firestore.v1beta1.IValue[];
+
+ /**
+ * Creates a new ArrayValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArrayValue instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IArrayValue): google.firestore.v1beta1.ArrayValue;
+
+ /**
+ * Encodes the specified ArrayValue message. Does not implicitly {@link google.firestore.v1beta1.ArrayValue.verify|verify} messages.
+ * @param message ArrayValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ArrayValue.verify|verify} messages.
+ * @param message ArrayValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArrayValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArrayValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ArrayValue;
+
+ /**
+ * Decodes an ArrayValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArrayValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ArrayValue;
+
+ /**
+ * Verifies an ArrayValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ArrayValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArrayValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ArrayValue;
+
+ /**
+ * Creates a plain object from an ArrayValue message. Also converts values to other types if specified.
+ * @param message ArrayValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ArrayValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArrayValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArrayValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MapValue. */
+ interface IMapValue {
+
+ /** MapValue fields */
+ fields?: ({ [k: string]: google.firestore.v1beta1.IValue }|null);
+ }
+
+ /** Represents a MapValue. */
+ class MapValue implements IMapValue {
+
+ /**
+ * Constructs a new MapValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IMapValue);
+
+ /** MapValue fields. */
+ public fields: { [k: string]: google.firestore.v1beta1.IValue };
+
+ /**
+ * Creates a new MapValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MapValue instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IMapValue): google.firestore.v1beta1.MapValue;
+
+ /**
+ * Encodes the specified MapValue message. Does not implicitly {@link google.firestore.v1beta1.MapValue.verify|verify} messages.
+ * @param message MapValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IMapValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MapValue message, length delimited. Does not implicitly {@link google.firestore.v1beta1.MapValue.verify|verify} messages.
+ * @param message MapValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IMapValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MapValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MapValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.MapValue;
+
+ /**
+ * Decodes a MapValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MapValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.MapValue;
+
+ /**
+ * Verifies a MapValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MapValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MapValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.MapValue;
+
+ /**
+ * Creates a plain object from a MapValue message. Also converts values to other types if specified.
+ * @param message MapValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.MapValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MapValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MapValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a Firestore */
+ class Firestore extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Firestore service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Firestore service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Firestore;
+
+ /**
+ * Calls GetDocument.
+ * @param request GetDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public getDocument(request: google.firestore.v1beta1.IGetDocumentRequest, callback: google.firestore.v1beta1.Firestore.GetDocumentCallback): void;
+
+ /**
+ * Calls GetDocument.
+ * @param request GetDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public getDocument(request: google.firestore.v1beta1.IGetDocumentRequest): Promise;
+
+ /**
+ * Calls ListDocuments.
+ * @param request ListDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDocumentsResponse
+ */
+ public listDocuments(request: google.firestore.v1beta1.IListDocumentsRequest, callback: google.firestore.v1beta1.Firestore.ListDocumentsCallback): void;
+
+ /**
+ * Calls ListDocuments.
+ * @param request ListDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public listDocuments(request: google.firestore.v1beta1.IListDocumentsRequest): Promise;
+
+ /**
+ * Calls UpdateDocument.
+ * @param request UpdateDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public updateDocument(request: google.firestore.v1beta1.IUpdateDocumentRequest, callback: google.firestore.v1beta1.Firestore.UpdateDocumentCallback): void;
+
+ /**
+ * Calls UpdateDocument.
+ * @param request UpdateDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public updateDocument(request: google.firestore.v1beta1.IUpdateDocumentRequest): Promise;
+
+ /**
+ * Calls DeleteDocument.
+ * @param request DeleteDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteDocument(request: google.firestore.v1beta1.IDeleteDocumentRequest, callback: google.firestore.v1beta1.Firestore.DeleteDocumentCallback): void;
+
+ /**
+ * Calls DeleteDocument.
+ * @param request DeleteDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDocument(request: google.firestore.v1beta1.IDeleteDocumentRequest): Promise;
+
+ /**
+ * Calls BatchGetDocuments.
+ * @param request BatchGetDocumentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BatchGetDocumentsResponse
+ */
+ public batchGetDocuments(request: google.firestore.v1beta1.IBatchGetDocumentsRequest, callback: google.firestore.v1beta1.Firestore.BatchGetDocumentsCallback): void;
+
+ /**
+ * Calls BatchGetDocuments.
+ * @param request BatchGetDocumentsRequest message or plain object
+ * @returns Promise
+ */
+ public batchGetDocuments(request: google.firestore.v1beta1.IBatchGetDocumentsRequest): Promise;
+
+ /**
+ * Calls BeginTransaction.
+ * @param request BeginTransactionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BeginTransactionResponse
+ */
+ public beginTransaction(request: google.firestore.v1beta1.IBeginTransactionRequest, callback: google.firestore.v1beta1.Firestore.BeginTransactionCallback): void;
+
+ /**
+ * Calls BeginTransaction.
+ * @param request BeginTransactionRequest message or plain object
+ * @returns Promise
+ */
+ public beginTransaction(request: google.firestore.v1beta1.IBeginTransactionRequest): Promise;
+
+ /**
+ * Calls Commit.
+ * @param request CommitRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CommitResponse
+ */
+ public commit(request: google.firestore.v1beta1.ICommitRequest, callback: google.firestore.v1beta1.Firestore.CommitCallback): void;
+
+ /**
+ * Calls Commit.
+ * @param request CommitRequest message or plain object
+ * @returns Promise
+ */
+ public commit(request: google.firestore.v1beta1.ICommitRequest): Promise;
+
+ /**
+ * Calls Rollback.
+ * @param request RollbackRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public rollback(request: google.firestore.v1beta1.IRollbackRequest, callback: google.firestore.v1beta1.Firestore.RollbackCallback): void;
+
+ /**
+ * Calls Rollback.
+ * @param request RollbackRequest message or plain object
+ * @returns Promise
+ */
+ public rollback(request: google.firestore.v1beta1.IRollbackRequest): Promise;
+
+ /**
+ * Calls RunQuery.
+ * @param request RunQueryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RunQueryResponse
+ */
+ public runQuery(request: google.firestore.v1beta1.IRunQueryRequest, callback: google.firestore.v1beta1.Firestore.RunQueryCallback): void;
+
+ /**
+ * Calls RunQuery.
+ * @param request RunQueryRequest message or plain object
+ * @returns Promise
+ */
+ public runQuery(request: google.firestore.v1beta1.IRunQueryRequest): Promise;
+
+ /**
+ * Calls PartitionQuery.
+ * @param request PartitionQueryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PartitionQueryResponse
+ */
+ public partitionQuery(request: google.firestore.v1beta1.IPartitionQueryRequest, callback: google.firestore.v1beta1.Firestore.PartitionQueryCallback): void;
+
+ /**
+ * Calls PartitionQuery.
+ * @param request PartitionQueryRequest message or plain object
+ * @returns Promise
+ */
+ public partitionQuery(request: google.firestore.v1beta1.IPartitionQueryRequest): Promise;
+
+ /**
+ * Calls Write.
+ * @param request WriteRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and WriteResponse
+ */
+ public write(request: google.firestore.v1beta1.IWriteRequest, callback: google.firestore.v1beta1.Firestore.WriteCallback): void;
+
+ /**
+ * Calls Write.
+ * @param request WriteRequest message or plain object
+ * @returns Promise
+ */
+ public write(request: google.firestore.v1beta1.IWriteRequest): Promise;
+
+ /**
+ * Calls Listen.
+ * @param request ListenRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListenResponse
+ */
+ public listen(request: google.firestore.v1beta1.IListenRequest, callback: google.firestore.v1beta1.Firestore.ListenCallback): void;
+
+ /**
+ * Calls Listen.
+ * @param request ListenRequest message or plain object
+ * @returns Promise
+ */
+ public listen(request: google.firestore.v1beta1.IListenRequest): Promise;
+
+ /**
+ * Calls ListCollectionIds.
+ * @param request ListCollectionIdsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCollectionIdsResponse
+ */
+ public listCollectionIds(request: google.firestore.v1beta1.IListCollectionIdsRequest, callback: google.firestore.v1beta1.Firestore.ListCollectionIdsCallback): void;
+
+ /**
+ * Calls ListCollectionIds.
+ * @param request ListCollectionIdsRequest message or plain object
+ * @returns Promise
+ */
+ public listCollectionIds(request: google.firestore.v1beta1.IListCollectionIdsRequest): Promise;
+
+ /**
+ * Calls BatchWrite.
+ * @param request BatchWriteRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BatchWriteResponse
+ */
+ public batchWrite(request: google.firestore.v1beta1.IBatchWriteRequest, callback: google.firestore.v1beta1.Firestore.BatchWriteCallback): void;
+
+ /**
+ * Calls BatchWrite.
+ * @param request BatchWriteRequest message or plain object
+ * @returns Promise
+ */
+ public batchWrite(request: google.firestore.v1beta1.IBatchWriteRequest): Promise;
+
+ /**
+ * Calls CreateDocument.
+ * @param request CreateDocumentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Document
+ */
+ public createDocument(request: google.firestore.v1beta1.ICreateDocumentRequest, callback: google.firestore.v1beta1.Firestore.CreateDocumentCallback): void;
+
+ /**
+ * Calls CreateDocument.
+ * @param request CreateDocumentRequest message or plain object
+ * @returns Promise
+ */
+ public createDocument(request: google.firestore.v1beta1.ICreateDocumentRequest): Promise;
+ }
+
+ namespace Firestore {
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|getDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type GetDocumentCallback = (error: (Error|null), response?: google.firestore.v1beta1.Document) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|listDocuments}.
+ * @param error Error, if any
+ * @param [response] ListDocumentsResponse
+ */
+ type ListDocumentsCallback = (error: (Error|null), response?: google.firestore.v1beta1.ListDocumentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|updateDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type UpdateDocumentCallback = (error: (Error|null), response?: google.firestore.v1beta1.Document) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|deleteDocument}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteDocumentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|batchGetDocuments}.
+ * @param error Error, if any
+ * @param [response] BatchGetDocumentsResponse
+ */
+ type BatchGetDocumentsCallback = (error: (Error|null), response?: google.firestore.v1beta1.BatchGetDocumentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|beginTransaction}.
+ * @param error Error, if any
+ * @param [response] BeginTransactionResponse
+ */
+ type BeginTransactionCallback = (error: (Error|null), response?: google.firestore.v1beta1.BeginTransactionResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|commit}.
+ * @param error Error, if any
+ * @param [response] CommitResponse
+ */
+ type CommitCallback = (error: (Error|null), response?: google.firestore.v1beta1.CommitResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|rollback}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type RollbackCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|runQuery}.
+ * @param error Error, if any
+ * @param [response] RunQueryResponse
+ */
+ type RunQueryCallback = (error: (Error|null), response?: google.firestore.v1beta1.RunQueryResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|partitionQuery}.
+ * @param error Error, if any
+ * @param [response] PartitionQueryResponse
+ */
+ type PartitionQueryCallback = (error: (Error|null), response?: google.firestore.v1beta1.PartitionQueryResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|write}.
+ * @param error Error, if any
+ * @param [response] WriteResponse
+ */
+ type WriteCallback = (error: (Error|null), response?: google.firestore.v1beta1.WriteResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|listen}.
+ * @param error Error, if any
+ * @param [response] ListenResponse
+ */
+ type ListenCallback = (error: (Error|null), response?: google.firestore.v1beta1.ListenResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|listCollectionIds}.
+ * @param error Error, if any
+ * @param [response] ListCollectionIdsResponse
+ */
+ type ListCollectionIdsCallback = (error: (Error|null), response?: google.firestore.v1beta1.ListCollectionIdsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|batchWrite}.
+ * @param error Error, if any
+ * @param [response] BatchWriteResponse
+ */
+ type BatchWriteCallback = (error: (Error|null), response?: google.firestore.v1beta1.BatchWriteResponse) => void;
+
+ /**
+ * Callback as used by {@link google.firestore.v1beta1.Firestore|createDocument}.
+ * @param error Error, if any
+ * @param [response] Document
+ */
+ type CreateDocumentCallback = (error: (Error|null), response?: google.firestore.v1beta1.Document) => void;
+ }
+
+ /** Properties of a GetDocumentRequest. */
+ interface IGetDocumentRequest {
+
+ /** GetDocumentRequest name */
+ name?: (string|null);
+
+ /** GetDocumentRequest mask */
+ mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** GetDocumentRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** GetDocumentRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a GetDocumentRequest. */
+ class GetDocumentRequest implements IGetDocumentRequest {
+
+ /**
+ * Constructs a new GetDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IGetDocumentRequest);
+
+ /** GetDocumentRequest name. */
+ public name: string;
+
+ /** GetDocumentRequest mask. */
+ public mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** GetDocumentRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** GetDocumentRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** GetDocumentRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"readTime");
+
+ /**
+ * Creates a new GetDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IGetDocumentRequest): google.firestore.v1beta1.GetDocumentRequest;
+
+ /**
+ * Encodes the specified GetDocumentRequest message. Does not implicitly {@link google.firestore.v1beta1.GetDocumentRequest.verify|verify} messages.
+ * @param message GetDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IGetDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.GetDocumentRequest.verify|verify} messages.
+ * @param message GetDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IGetDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.GetDocumentRequest;
+
+ /**
+ * Decodes a GetDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.GetDocumentRequest;
+
+ /**
+ * Verifies a GetDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.GetDocumentRequest;
+
+ /**
+ * Creates a plain object from a GetDocumentRequest message. Also converts values to other types if specified.
+ * @param message GetDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.GetDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDocumentsRequest. */
+ interface IListDocumentsRequest {
+
+ /** ListDocumentsRequest parent */
+ parent?: (string|null);
+
+ /** ListDocumentsRequest collectionId */
+ collectionId?: (string|null);
+
+ /** ListDocumentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDocumentsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListDocumentsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListDocumentsRequest mask */
+ mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** ListDocumentsRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** ListDocumentsRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListDocumentsRequest showMissing */
+ showMissing?: (boolean|null);
+ }
+
+ /** Represents a ListDocumentsRequest. */
+ class ListDocumentsRequest implements IListDocumentsRequest {
+
+ /**
+ * Constructs a new ListDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IListDocumentsRequest);
+
+ /** ListDocumentsRequest parent. */
+ public parent: string;
+
+ /** ListDocumentsRequest collectionId. */
+ public collectionId: string;
+
+ /** ListDocumentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDocumentsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListDocumentsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListDocumentsRequest mask. */
+ public mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** ListDocumentsRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** ListDocumentsRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListDocumentsRequest showMissing. */
+ public showMissing: boolean;
+
+ /** ListDocumentsRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"readTime");
+
+ /**
+ * Creates a new ListDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDocumentsRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IListDocumentsRequest): google.firestore.v1beta1.ListDocumentsRequest;
+
+ /**
+ * Encodes the specified ListDocumentsRequest message. Does not implicitly {@link google.firestore.v1beta1.ListDocumentsRequest.verify|verify} messages.
+ * @param message ListDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IListDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDocumentsRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ListDocumentsRequest.verify|verify} messages.
+ * @param message ListDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IListDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ListDocumentsRequest;
+
+ /**
+ * Decodes a ListDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ListDocumentsRequest;
+
+ /**
+ * Verifies a ListDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ListDocumentsRequest;
+
+ /**
+ * Creates a plain object from a ListDocumentsRequest message. Also converts values to other types if specified.
+ * @param message ListDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ListDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDocumentsResponse. */
+ interface IListDocumentsResponse {
+
+ /** ListDocumentsResponse documents */
+ documents?: (google.firestore.v1beta1.IDocument[]|null);
+
+ /** ListDocumentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListDocumentsResponse. */
+ class ListDocumentsResponse implements IListDocumentsResponse {
+
+ /**
+ * Constructs a new ListDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IListDocumentsResponse);
+
+ /** ListDocumentsResponse documents. */
+ public documents: google.firestore.v1beta1.IDocument[];
+
+ /** ListDocumentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDocumentsResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IListDocumentsResponse): google.firestore.v1beta1.ListDocumentsResponse;
+
+ /**
+ * Encodes the specified ListDocumentsResponse message. Does not implicitly {@link google.firestore.v1beta1.ListDocumentsResponse.verify|verify} messages.
+ * @param message ListDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IListDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDocumentsResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ListDocumentsResponse.verify|verify} messages.
+ * @param message ListDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IListDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ListDocumentsResponse;
+
+ /**
+ * Decodes a ListDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ListDocumentsResponse;
+
+ /**
+ * Verifies a ListDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ListDocumentsResponse;
+
+ /**
+ * Creates a plain object from a ListDocumentsResponse message. Also converts values to other types if specified.
+ * @param message ListDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ListDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateDocumentRequest. */
+ interface ICreateDocumentRequest {
+
+ /** CreateDocumentRequest parent */
+ parent?: (string|null);
+
+ /** CreateDocumentRequest collectionId */
+ collectionId?: (string|null);
+
+ /** CreateDocumentRequest documentId */
+ documentId?: (string|null);
+
+ /** CreateDocumentRequest document */
+ document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** CreateDocumentRequest mask */
+ mask?: (google.firestore.v1beta1.IDocumentMask|null);
+ }
+
+ /** Represents a CreateDocumentRequest. */
+ class CreateDocumentRequest implements ICreateDocumentRequest {
+
+ /**
+ * Constructs a new CreateDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.ICreateDocumentRequest);
+
+ /** CreateDocumentRequest parent. */
+ public parent: string;
+
+ /** CreateDocumentRequest collectionId. */
+ public collectionId: string;
+
+ /** CreateDocumentRequest documentId. */
+ public documentId: string;
+
+ /** CreateDocumentRequest document. */
+ public document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** CreateDocumentRequest mask. */
+ public mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /**
+ * Creates a new CreateDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.ICreateDocumentRequest): google.firestore.v1beta1.CreateDocumentRequest;
+
+ /**
+ * Encodes the specified CreateDocumentRequest message. Does not implicitly {@link google.firestore.v1beta1.CreateDocumentRequest.verify|verify} messages.
+ * @param message CreateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.ICreateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.CreateDocumentRequest.verify|verify} messages.
+ * @param message CreateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.ICreateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.CreateDocumentRequest;
+
+ /**
+ * Decodes a CreateDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.CreateDocumentRequest;
+
+ /**
+ * Verifies a CreateDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.CreateDocumentRequest;
+
+ /**
+ * Creates a plain object from a CreateDocumentRequest message. Also converts values to other types if specified.
+ * @param message CreateDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.CreateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateDocumentRequest. */
+ interface IUpdateDocumentRequest {
+
+ /** UpdateDocumentRequest document */
+ document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** UpdateDocumentRequest updateMask */
+ updateMask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest mask */
+ mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest currentDocument */
+ currentDocument?: (google.firestore.v1beta1.IPrecondition|null);
+ }
+
+ /** Represents an UpdateDocumentRequest. */
+ class UpdateDocumentRequest implements IUpdateDocumentRequest {
+
+ /**
+ * Constructs a new UpdateDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IUpdateDocumentRequest);
+
+ /** UpdateDocumentRequest document. */
+ public document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** UpdateDocumentRequest updateMask. */
+ public updateMask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest mask. */
+ public mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** UpdateDocumentRequest currentDocument. */
+ public currentDocument?: (google.firestore.v1beta1.IPrecondition|null);
+
+ /**
+ * Creates a new UpdateDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IUpdateDocumentRequest): google.firestore.v1beta1.UpdateDocumentRequest;
+
+ /**
+ * Encodes the specified UpdateDocumentRequest message. Does not implicitly {@link google.firestore.v1beta1.UpdateDocumentRequest.verify|verify} messages.
+ * @param message UpdateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IUpdateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.UpdateDocumentRequest.verify|verify} messages.
+ * @param message UpdateDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IUpdateDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.UpdateDocumentRequest;
+
+ /**
+ * Decodes an UpdateDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.UpdateDocumentRequest;
+
+ /**
+ * Verifies an UpdateDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.UpdateDocumentRequest;
+
+ /**
+ * Creates a plain object from an UpdateDocumentRequest message. Also converts values to other types if specified.
+ * @param message UpdateDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.UpdateDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDocumentRequest. */
+ interface IDeleteDocumentRequest {
+
+ /** DeleteDocumentRequest name */
+ name?: (string|null);
+
+ /** DeleteDocumentRequest currentDocument */
+ currentDocument?: (google.firestore.v1beta1.IPrecondition|null);
+ }
+
+ /** Represents a DeleteDocumentRequest. */
+ class DeleteDocumentRequest implements IDeleteDocumentRequest {
+
+ /**
+ * Constructs a new DeleteDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IDeleteDocumentRequest);
+
+ /** DeleteDocumentRequest name. */
+ public name: string;
+
+ /** DeleteDocumentRequest currentDocument. */
+ public currentDocument?: (google.firestore.v1beta1.IPrecondition|null);
+
+ /**
+ * Creates a new DeleteDocumentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDocumentRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IDeleteDocumentRequest): google.firestore.v1beta1.DeleteDocumentRequest;
+
+ /**
+ * Encodes the specified DeleteDocumentRequest message. Does not implicitly {@link google.firestore.v1beta1.DeleteDocumentRequest.verify|verify} messages.
+ * @param message DeleteDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IDeleteDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDocumentRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.DeleteDocumentRequest.verify|verify} messages.
+ * @param message DeleteDocumentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IDeleteDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDocumentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.DeleteDocumentRequest;
+
+ /**
+ * Decodes a DeleteDocumentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDocumentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.DeleteDocumentRequest;
+
+ /**
+ * Verifies a DeleteDocumentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDocumentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.DeleteDocumentRequest;
+
+ /**
+ * Creates a plain object from a DeleteDocumentRequest message. Also converts values to other types if specified.
+ * @param message DeleteDocumentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.DeleteDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDocumentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDocumentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchGetDocumentsRequest. */
+ interface IBatchGetDocumentsRequest {
+
+ /** BatchGetDocumentsRequest database */
+ database?: (string|null);
+
+ /** BatchGetDocumentsRequest documents */
+ documents?: (string[]|null);
+
+ /** BatchGetDocumentsRequest mask */
+ mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** BatchGetDocumentsRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** BatchGetDocumentsRequest newTransaction */
+ newTransaction?: (google.firestore.v1beta1.ITransactionOptions|null);
+
+ /** BatchGetDocumentsRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a BatchGetDocumentsRequest. */
+ class BatchGetDocumentsRequest implements IBatchGetDocumentsRequest {
+
+ /**
+ * Constructs a new BatchGetDocumentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IBatchGetDocumentsRequest);
+
+ /** BatchGetDocumentsRequest database. */
+ public database: string;
+
+ /** BatchGetDocumentsRequest documents. */
+ public documents: string[];
+
+ /** BatchGetDocumentsRequest mask. */
+ public mask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** BatchGetDocumentsRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** BatchGetDocumentsRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1beta1.ITransactionOptions|null);
+
+ /** BatchGetDocumentsRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchGetDocumentsRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+
+ /**
+ * Creates a new BatchGetDocumentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchGetDocumentsRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IBatchGetDocumentsRequest): google.firestore.v1beta1.BatchGetDocumentsRequest;
+
+ /**
+ * Encodes the specified BatchGetDocumentsRequest message. Does not implicitly {@link google.firestore.v1beta1.BatchGetDocumentsRequest.verify|verify} messages.
+ * @param message BatchGetDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IBatchGetDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchGetDocumentsRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.BatchGetDocumentsRequest.verify|verify} messages.
+ * @param message BatchGetDocumentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IBatchGetDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchGetDocumentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchGetDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.BatchGetDocumentsRequest;
+
+ /**
+ * Decodes a BatchGetDocumentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchGetDocumentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.BatchGetDocumentsRequest;
+
+ /**
+ * Verifies a BatchGetDocumentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchGetDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchGetDocumentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.BatchGetDocumentsRequest;
+
+ /**
+ * Creates a plain object from a BatchGetDocumentsRequest message. Also converts values to other types if specified.
+ * @param message BatchGetDocumentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.BatchGetDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchGetDocumentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchGetDocumentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchGetDocumentsResponse. */
+ interface IBatchGetDocumentsResponse {
+
+ /** BatchGetDocumentsResponse found */
+ found?: (google.firestore.v1beta1.IDocument|null);
+
+ /** BatchGetDocumentsResponse missing */
+ missing?: (string|null);
+
+ /** BatchGetDocumentsResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** BatchGetDocumentsResponse readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a BatchGetDocumentsResponse. */
+ class BatchGetDocumentsResponse implements IBatchGetDocumentsResponse {
+
+ /**
+ * Constructs a new BatchGetDocumentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IBatchGetDocumentsResponse);
+
+ /** BatchGetDocumentsResponse found. */
+ public found?: (google.firestore.v1beta1.IDocument|null);
+
+ /** BatchGetDocumentsResponse missing. */
+ public missing?: (string|null);
+
+ /** BatchGetDocumentsResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /** BatchGetDocumentsResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** BatchGetDocumentsResponse result. */
+ public result?: ("found"|"missing");
+
+ /**
+ * Creates a new BatchGetDocumentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchGetDocumentsResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IBatchGetDocumentsResponse): google.firestore.v1beta1.BatchGetDocumentsResponse;
+
+ /**
+ * Encodes the specified BatchGetDocumentsResponse message. Does not implicitly {@link google.firestore.v1beta1.BatchGetDocumentsResponse.verify|verify} messages.
+ * @param message BatchGetDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IBatchGetDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchGetDocumentsResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.BatchGetDocumentsResponse.verify|verify} messages.
+ * @param message BatchGetDocumentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IBatchGetDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchGetDocumentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchGetDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.BatchGetDocumentsResponse;
+
+ /**
+ * Decodes a BatchGetDocumentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchGetDocumentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.BatchGetDocumentsResponse;
+
+ /**
+ * Verifies a BatchGetDocumentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchGetDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchGetDocumentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.BatchGetDocumentsResponse;
+
+ /**
+ * Creates a plain object from a BatchGetDocumentsResponse message. Also converts values to other types if specified.
+ * @param message BatchGetDocumentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.BatchGetDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchGetDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchGetDocumentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BeginTransactionRequest. */
+ interface IBeginTransactionRequest {
+
+ /** BeginTransactionRequest database */
+ database?: (string|null);
+
+ /** BeginTransactionRequest options */
+ options?: (google.firestore.v1beta1.ITransactionOptions|null);
+ }
+
+ /** Represents a BeginTransactionRequest. */
+ class BeginTransactionRequest implements IBeginTransactionRequest {
+
+ /**
+ * Constructs a new BeginTransactionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IBeginTransactionRequest);
+
+ /** BeginTransactionRequest database. */
+ public database: string;
+
+ /** BeginTransactionRequest options. */
+ public options?: (google.firestore.v1beta1.ITransactionOptions|null);
+
+ /**
+ * Creates a new BeginTransactionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BeginTransactionRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IBeginTransactionRequest): google.firestore.v1beta1.BeginTransactionRequest;
+
+ /**
+ * Encodes the specified BeginTransactionRequest message. Does not implicitly {@link google.firestore.v1beta1.BeginTransactionRequest.verify|verify} messages.
+ * @param message BeginTransactionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IBeginTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BeginTransactionRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.BeginTransactionRequest.verify|verify} messages.
+ * @param message BeginTransactionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IBeginTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BeginTransactionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BeginTransactionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.BeginTransactionRequest;
+
+ /**
+ * Decodes a BeginTransactionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BeginTransactionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.BeginTransactionRequest;
+
+ /**
+ * Verifies a BeginTransactionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BeginTransactionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BeginTransactionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.BeginTransactionRequest;
+
+ /**
+ * Creates a plain object from a BeginTransactionRequest message. Also converts values to other types if specified.
+ * @param message BeginTransactionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.BeginTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BeginTransactionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BeginTransactionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BeginTransactionResponse. */
+ interface IBeginTransactionResponse {
+
+ /** BeginTransactionResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a BeginTransactionResponse. */
+ class BeginTransactionResponse implements IBeginTransactionResponse {
+
+ /**
+ * Constructs a new BeginTransactionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IBeginTransactionResponse);
+
+ /** BeginTransactionResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new BeginTransactionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BeginTransactionResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IBeginTransactionResponse): google.firestore.v1beta1.BeginTransactionResponse;
+
+ /**
+ * Encodes the specified BeginTransactionResponse message. Does not implicitly {@link google.firestore.v1beta1.BeginTransactionResponse.verify|verify} messages.
+ * @param message BeginTransactionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IBeginTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BeginTransactionResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.BeginTransactionResponse.verify|verify} messages.
+ * @param message BeginTransactionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IBeginTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BeginTransactionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BeginTransactionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.BeginTransactionResponse;
+
+ /**
+ * Decodes a BeginTransactionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BeginTransactionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.BeginTransactionResponse;
+
+ /**
+ * Verifies a BeginTransactionResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BeginTransactionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BeginTransactionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.BeginTransactionResponse;
+
+ /**
+ * Creates a plain object from a BeginTransactionResponse message. Also converts values to other types if specified.
+ * @param message BeginTransactionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.BeginTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BeginTransactionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BeginTransactionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommitRequest. */
+ interface ICommitRequest {
+
+ /** CommitRequest database */
+ database?: (string|null);
+
+ /** CommitRequest writes */
+ writes?: (google.firestore.v1beta1.IWrite[]|null);
+
+ /** CommitRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a CommitRequest. */
+ class CommitRequest implements ICommitRequest {
+
+ /**
+ * Constructs a new CommitRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.ICommitRequest);
+
+ /** CommitRequest database. */
+ public database: string;
+
+ /** CommitRequest writes. */
+ public writes: google.firestore.v1beta1.IWrite[];
+
+ /** CommitRequest transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new CommitRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommitRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.ICommitRequest): google.firestore.v1beta1.CommitRequest;
+
+ /**
+ * Encodes the specified CommitRequest message. Does not implicitly {@link google.firestore.v1beta1.CommitRequest.verify|verify} messages.
+ * @param message CommitRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.CommitRequest.verify|verify} messages.
+ * @param message CommitRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommitRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommitRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.CommitRequest;
+
+ /**
+ * Decodes a CommitRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommitRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.CommitRequest;
+
+ /**
+ * Verifies a CommitRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommitRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.CommitRequest;
+
+ /**
+ * Creates a plain object from a CommitRequest message. Also converts values to other types if specified.
+ * @param message CommitRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.CommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommitRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommitRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommitResponse. */
+ interface ICommitResponse {
+
+ /** CommitResponse writeResults */
+ writeResults?: (google.firestore.v1beta1.IWriteResult[]|null);
+
+ /** CommitResponse commitTime */
+ commitTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CommitResponse. */
+ class CommitResponse implements ICommitResponse {
+
+ /**
+ * Constructs a new CommitResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.ICommitResponse);
+
+ /** CommitResponse writeResults. */
+ public writeResults: google.firestore.v1beta1.IWriteResult[];
+
+ /** CommitResponse commitTime. */
+ public commitTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CommitResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommitResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.ICommitResponse): google.firestore.v1beta1.CommitResponse;
+
+ /**
+ * Encodes the specified CommitResponse message. Does not implicitly {@link google.firestore.v1beta1.CommitResponse.verify|verify} messages.
+ * @param message CommitResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.CommitResponse.verify|verify} messages.
+ * @param message CommitResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommitResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommitResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.CommitResponse;
+
+ /**
+ * Decodes a CommitResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommitResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.CommitResponse;
+
+ /**
+ * Verifies a CommitResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommitResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.CommitResponse;
+
+ /**
+ * Creates a plain object from a CommitResponse message. Also converts values to other types if specified.
+ * @param message CommitResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.CommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommitResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommitResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RollbackRequest. */
+ interface IRollbackRequest {
+
+ /** RollbackRequest database */
+ database?: (string|null);
+
+ /** RollbackRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a RollbackRequest. */
+ class RollbackRequest implements IRollbackRequest {
+
+ /**
+ * Constructs a new RollbackRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IRollbackRequest);
+
+ /** RollbackRequest database. */
+ public database: string;
+
+ /** RollbackRequest transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new RollbackRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RollbackRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IRollbackRequest): google.firestore.v1beta1.RollbackRequest;
+
+ /**
+ * Encodes the specified RollbackRequest message. Does not implicitly {@link google.firestore.v1beta1.RollbackRequest.verify|verify} messages.
+ * @param message RollbackRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.RollbackRequest.verify|verify} messages.
+ * @param message RollbackRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RollbackRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RollbackRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.RollbackRequest;
+
+ /**
+ * Decodes a RollbackRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RollbackRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.RollbackRequest;
+
+ /**
+ * Verifies a RollbackRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RollbackRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.RollbackRequest;
+
+ /**
+ * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified.
+ * @param message RollbackRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.RollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RollbackRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RollbackRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RunQueryRequest. */
+ interface IRunQueryRequest {
+
+ /** RunQueryRequest parent */
+ parent?: (string|null);
+
+ /** RunQueryRequest structuredQuery */
+ structuredQuery?: (google.firestore.v1beta1.IStructuredQuery|null);
+
+ /** RunQueryRequest transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunQueryRequest newTransaction */
+ newTransaction?: (google.firestore.v1beta1.ITransactionOptions|null);
+
+ /** RunQueryRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a RunQueryRequest. */
+ class RunQueryRequest implements IRunQueryRequest {
+
+ /**
+ * Constructs a new RunQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IRunQueryRequest);
+
+ /** RunQueryRequest parent. */
+ public parent: string;
+
+ /** RunQueryRequest structuredQuery. */
+ public structuredQuery?: (google.firestore.v1beta1.IStructuredQuery|null);
+
+ /** RunQueryRequest transaction. */
+ public transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunQueryRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1beta1.ITransactionOptions|null);
+
+ /** RunQueryRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunQueryRequest queryType. */
+ public queryType?: "structuredQuery";
+
+ /** RunQueryRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+
+ /**
+ * Creates a new RunQueryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RunQueryRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IRunQueryRequest): google.firestore.v1beta1.RunQueryRequest;
+
+ /**
+ * Encodes the specified RunQueryRequest message. Does not implicitly {@link google.firestore.v1beta1.RunQueryRequest.verify|verify} messages.
+ * @param message RunQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IRunQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RunQueryRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.RunQueryRequest.verify|verify} messages.
+ * @param message RunQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IRunQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RunQueryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RunQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.RunQueryRequest;
+
+ /**
+ * Decodes a RunQueryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RunQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.RunQueryRequest;
+
+ /**
+ * Verifies a RunQueryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RunQueryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RunQueryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.RunQueryRequest;
+
+ /**
+ * Creates a plain object from a RunQueryRequest message. Also converts values to other types if specified.
+ * @param message RunQueryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.RunQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RunQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RunQueryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RunQueryResponse. */
+ interface IRunQueryResponse {
+
+ /** RunQueryResponse transaction */
+ transaction?: (Uint8Array|Buffer|string|null);
+
+ /** RunQueryResponse document */
+ document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** RunQueryResponse readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunQueryResponse skippedResults */
+ skippedResults?: (number|null);
+ }
+
+ /** Represents a RunQueryResponse. */
+ class RunQueryResponse implements IRunQueryResponse {
+
+ /**
+ * Constructs a new RunQueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IRunQueryResponse);
+
+ /** RunQueryResponse transaction. */
+ public transaction: (Uint8Array|Buffer|string);
+
+ /** RunQueryResponse document. */
+ public document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** RunQueryResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunQueryResponse skippedResults. */
+ public skippedResults: number;
+
+ /**
+ * Creates a new RunQueryResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RunQueryResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IRunQueryResponse): google.firestore.v1beta1.RunQueryResponse;
+
+ /**
+ * Encodes the specified RunQueryResponse message. Does not implicitly {@link google.firestore.v1beta1.RunQueryResponse.verify|verify} messages.
+ * @param message RunQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IRunQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RunQueryResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.RunQueryResponse.verify|verify} messages.
+ * @param message RunQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IRunQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RunQueryResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RunQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.RunQueryResponse;
+
+ /**
+ * Decodes a RunQueryResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RunQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.RunQueryResponse;
+
+ /**
+ * Verifies a RunQueryResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RunQueryResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RunQueryResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.RunQueryResponse;
+
+ /**
+ * Creates a plain object from a RunQueryResponse message. Also converts values to other types if specified.
+ * @param message RunQueryResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.RunQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RunQueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RunQueryResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PartitionQueryRequest. */
+ interface IPartitionQueryRequest {
+
+ /** PartitionQueryRequest parent */
+ parent?: (string|null);
+
+ /** PartitionQueryRequest structuredQuery */
+ structuredQuery?: (google.firestore.v1beta1.IStructuredQuery|null);
+
+ /** PartitionQueryRequest partitionCount */
+ partitionCount?: (number|Long|string|null);
+
+ /** PartitionQueryRequest pageToken */
+ pageToken?: (string|null);
+
+ /** PartitionQueryRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a PartitionQueryRequest. */
+ class PartitionQueryRequest implements IPartitionQueryRequest {
+
+ /**
+ * Constructs a new PartitionQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IPartitionQueryRequest);
+
+ /** PartitionQueryRequest parent. */
+ public parent: string;
+
+ /** PartitionQueryRequest structuredQuery. */
+ public structuredQuery?: (google.firestore.v1beta1.IStructuredQuery|null);
+
+ /** PartitionQueryRequest partitionCount. */
+ public partitionCount: (number|Long|string);
+
+ /** PartitionQueryRequest pageToken. */
+ public pageToken: string;
+
+ /** PartitionQueryRequest pageSize. */
+ public pageSize: number;
+
+ /** PartitionQueryRequest queryType. */
+ public queryType?: "structuredQuery";
+
+ /**
+ * Creates a new PartitionQueryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PartitionQueryRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IPartitionQueryRequest): google.firestore.v1beta1.PartitionQueryRequest;
+
+ /**
+ * Encodes the specified PartitionQueryRequest message. Does not implicitly {@link google.firestore.v1beta1.PartitionQueryRequest.verify|verify} messages.
+ * @param message PartitionQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IPartitionQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PartitionQueryRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.PartitionQueryRequest.verify|verify} messages.
+ * @param message PartitionQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IPartitionQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PartitionQueryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PartitionQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.PartitionQueryRequest;
+
+ /**
+ * Decodes a PartitionQueryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PartitionQueryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.PartitionQueryRequest;
+
+ /**
+ * Verifies a PartitionQueryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PartitionQueryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PartitionQueryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.PartitionQueryRequest;
+
+ /**
+ * Creates a plain object from a PartitionQueryRequest message. Also converts values to other types if specified.
+ * @param message PartitionQueryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.PartitionQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PartitionQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PartitionQueryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PartitionQueryResponse. */
+ interface IPartitionQueryResponse {
+
+ /** PartitionQueryResponse partitions */
+ partitions?: (google.firestore.v1beta1.ICursor[]|null);
+
+ /** PartitionQueryResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a PartitionQueryResponse. */
+ class PartitionQueryResponse implements IPartitionQueryResponse {
+
+ /**
+ * Constructs a new PartitionQueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IPartitionQueryResponse);
+
+ /** PartitionQueryResponse partitions. */
+ public partitions: google.firestore.v1beta1.ICursor[];
+
+ /** PartitionQueryResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new PartitionQueryResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PartitionQueryResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IPartitionQueryResponse): google.firestore.v1beta1.PartitionQueryResponse;
+
+ /**
+ * Encodes the specified PartitionQueryResponse message. Does not implicitly {@link google.firestore.v1beta1.PartitionQueryResponse.verify|verify} messages.
+ * @param message PartitionQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IPartitionQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PartitionQueryResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.PartitionQueryResponse.verify|verify} messages.
+ * @param message PartitionQueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IPartitionQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PartitionQueryResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PartitionQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.PartitionQueryResponse;
+
+ /**
+ * Decodes a PartitionQueryResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PartitionQueryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.PartitionQueryResponse;
+
+ /**
+ * Verifies a PartitionQueryResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PartitionQueryResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PartitionQueryResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.PartitionQueryResponse;
+
+ /**
+ * Creates a plain object from a PartitionQueryResponse message. Also converts values to other types if specified.
+ * @param message PartitionQueryResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.PartitionQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PartitionQueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PartitionQueryResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WriteRequest. */
+ interface IWriteRequest {
+
+ /** WriteRequest database */
+ database?: (string|null);
+
+ /** WriteRequest streamId */
+ streamId?: (string|null);
+
+ /** WriteRequest writes */
+ writes?: (google.firestore.v1beta1.IWrite[]|null);
+
+ /** WriteRequest streamToken */
+ streamToken?: (Uint8Array|Buffer|string|null);
+
+ /** WriteRequest labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a WriteRequest. */
+ class WriteRequest implements IWriteRequest {
+
+ /**
+ * Constructs a new WriteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IWriteRequest);
+
+ /** WriteRequest database. */
+ public database: string;
+
+ /** WriteRequest streamId. */
+ public streamId: string;
+
+ /** WriteRequest writes. */
+ public writes: google.firestore.v1beta1.IWrite[];
+
+ /** WriteRequest streamToken. */
+ public streamToken: (Uint8Array|Buffer|string);
+
+ /** WriteRequest labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new WriteRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IWriteRequest): google.firestore.v1beta1.WriteRequest;
+
+ /**
+ * Encodes the specified WriteRequest message. Does not implicitly {@link google.firestore.v1beta1.WriteRequest.verify|verify} messages.
+ * @param message WriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.WriteRequest.verify|verify} messages.
+ * @param message WriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.WriteRequest;
+
+ /**
+ * Decodes a WriteRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.WriteRequest;
+
+ /**
+ * Verifies a WriteRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WriteRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.WriteRequest;
+
+ /**
+ * Creates a plain object from a WriteRequest message. Also converts values to other types if specified.
+ * @param message WriteRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.WriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WriteResponse. */
+ interface IWriteResponse {
+
+ /** WriteResponse streamId */
+ streamId?: (string|null);
+
+ /** WriteResponse streamToken */
+ streamToken?: (Uint8Array|Buffer|string|null);
+
+ /** WriteResponse writeResults */
+ writeResults?: (google.firestore.v1beta1.IWriteResult[]|null);
+
+ /** WriteResponse commitTime */
+ commitTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a WriteResponse. */
+ class WriteResponse implements IWriteResponse {
+
+ /**
+ * Constructs a new WriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IWriteResponse);
+
+ /** WriteResponse streamId. */
+ public streamId: string;
+
+ /** WriteResponse streamToken. */
+ public streamToken: (Uint8Array|Buffer|string);
+
+ /** WriteResponse writeResults. */
+ public writeResults: google.firestore.v1beta1.IWriteResult[];
+
+ /** WriteResponse commitTime. */
+ public commitTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new WriteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IWriteResponse): google.firestore.v1beta1.WriteResponse;
+
+ /**
+ * Encodes the specified WriteResponse message. Does not implicitly {@link google.firestore.v1beta1.WriteResponse.verify|verify} messages.
+ * @param message WriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.WriteResponse.verify|verify} messages.
+ * @param message WriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.WriteResponse;
+
+ /**
+ * Decodes a WriteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.WriteResponse;
+
+ /**
+ * Verifies a WriteResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WriteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.WriteResponse;
+
+ /**
+ * Creates a plain object from a WriteResponse message. Also converts values to other types if specified.
+ * @param message WriteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.WriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListenRequest. */
+ interface IListenRequest {
+
+ /** ListenRequest database */
+ database?: (string|null);
+
+ /** ListenRequest addTarget */
+ addTarget?: (google.firestore.v1beta1.ITarget|null);
+
+ /** ListenRequest removeTarget */
+ removeTarget?: (number|null);
+
+ /** ListenRequest labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a ListenRequest. */
+ class ListenRequest implements IListenRequest {
+
+ /**
+ * Constructs a new ListenRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IListenRequest);
+
+ /** ListenRequest database. */
+ public database: string;
+
+ /** ListenRequest addTarget. */
+ public addTarget?: (google.firestore.v1beta1.ITarget|null);
+
+ /** ListenRequest removeTarget. */
+ public removeTarget?: (number|null);
+
+ /** ListenRequest labels. */
+ public labels: { [k: string]: string };
+
+ /** ListenRequest targetChange. */
+ public targetChange?: ("addTarget"|"removeTarget");
+
+ /**
+ * Creates a new ListenRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListenRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IListenRequest): google.firestore.v1beta1.ListenRequest;
+
+ /**
+ * Encodes the specified ListenRequest message. Does not implicitly {@link google.firestore.v1beta1.ListenRequest.verify|verify} messages.
+ * @param message ListenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IListenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListenRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ListenRequest.verify|verify} messages.
+ * @param message ListenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IListenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListenRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ListenRequest;
+
+ /**
+ * Decodes a ListenRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ListenRequest;
+
+ /**
+ * Verifies a ListenRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListenRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListenRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ListenRequest;
+
+ /**
+ * Creates a plain object from a ListenRequest message. Also converts values to other types if specified.
+ * @param message ListenRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ListenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListenRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListenRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListenResponse. */
+ interface IListenResponse {
+
+ /** ListenResponse targetChange */
+ targetChange?: (google.firestore.v1beta1.ITargetChange|null);
+
+ /** ListenResponse documentChange */
+ documentChange?: (google.firestore.v1beta1.IDocumentChange|null);
+
+ /** ListenResponse documentDelete */
+ documentDelete?: (google.firestore.v1beta1.IDocumentDelete|null);
+
+ /** ListenResponse documentRemove */
+ documentRemove?: (google.firestore.v1beta1.IDocumentRemove|null);
+
+ /** ListenResponse filter */
+ filter?: (google.firestore.v1beta1.IExistenceFilter|null);
+ }
+
+ /** Represents a ListenResponse. */
+ class ListenResponse implements IListenResponse {
+
+ /**
+ * Constructs a new ListenResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IListenResponse);
+
+ /** ListenResponse targetChange. */
+ public targetChange?: (google.firestore.v1beta1.ITargetChange|null);
+
+ /** ListenResponse documentChange. */
+ public documentChange?: (google.firestore.v1beta1.IDocumentChange|null);
+
+ /** ListenResponse documentDelete. */
+ public documentDelete?: (google.firestore.v1beta1.IDocumentDelete|null);
+
+ /** ListenResponse documentRemove. */
+ public documentRemove?: (google.firestore.v1beta1.IDocumentRemove|null);
+
+ /** ListenResponse filter. */
+ public filter?: (google.firestore.v1beta1.IExistenceFilter|null);
+
+ /** ListenResponse responseType. */
+ public responseType?: ("targetChange"|"documentChange"|"documentDelete"|"documentRemove"|"filter");
+
+ /**
+ * Creates a new ListenResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListenResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IListenResponse): google.firestore.v1beta1.ListenResponse;
+
+ /**
+ * Encodes the specified ListenResponse message. Does not implicitly {@link google.firestore.v1beta1.ListenResponse.verify|verify} messages.
+ * @param message ListenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IListenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListenResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ListenResponse.verify|verify} messages.
+ * @param message ListenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IListenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListenResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ListenResponse;
+
+ /**
+ * Decodes a ListenResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ListenResponse;
+
+ /**
+ * Verifies a ListenResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListenResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListenResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ListenResponse;
+
+ /**
+ * Creates a plain object from a ListenResponse message. Also converts values to other types if specified.
+ * @param message ListenResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ListenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListenResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListenResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Target. */
+ interface ITarget {
+
+ /** Target query */
+ query?: (google.firestore.v1beta1.Target.IQueryTarget|null);
+
+ /** Target documents */
+ documents?: (google.firestore.v1beta1.Target.IDocumentsTarget|null);
+
+ /** Target resumeToken */
+ resumeToken?: (Uint8Array|Buffer|string|null);
+
+ /** Target readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** Target targetId */
+ targetId?: (number|null);
+
+ /** Target once */
+ once?: (boolean|null);
+ }
+
+ /** Represents a Target. */
+ class Target implements ITarget {
+
+ /**
+ * Constructs a new Target.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.ITarget);
+
+ /** Target query. */
+ public query?: (google.firestore.v1beta1.Target.IQueryTarget|null);
+
+ /** Target documents. */
+ public documents?: (google.firestore.v1beta1.Target.IDocumentsTarget|null);
+
+ /** Target resumeToken. */
+ public resumeToken?: (Uint8Array|Buffer|string|null);
+
+ /** Target readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** Target targetId. */
+ public targetId: number;
+
+ /** Target once. */
+ public once: boolean;
+
+ /** Target targetType. */
+ public targetType?: ("query"|"documents");
+
+ /** Target resumeType. */
+ public resumeType?: ("resumeToken"|"readTime");
+
+ /**
+ * Creates a new Target instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Target instance
+ */
+ public static create(properties?: google.firestore.v1beta1.ITarget): google.firestore.v1beta1.Target;
+
+ /**
+ * Encodes the specified Target message. Does not implicitly {@link google.firestore.v1beta1.Target.verify|verify} messages.
+ * @param message Target message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Target message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Target.verify|verify} messages.
+ * @param message Target message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.ITarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Target message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Target
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Target;
+
+ /**
+ * Decodes a Target message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Target
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Target;
+
+ /**
+ * Verifies a Target message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Target message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Target
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Target;
+
+ /**
+ * Creates a plain object from a Target message. Also converts values to other types if specified.
+ * @param message Target
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Target, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Target to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Target
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Target {
+
+ /** Properties of a DocumentsTarget. */
+ interface IDocumentsTarget {
+
+ /** DocumentsTarget documents */
+ documents?: (string[]|null);
+ }
+
+ /** Represents a DocumentsTarget. */
+ class DocumentsTarget implements IDocumentsTarget {
+
+ /**
+ * Constructs a new DocumentsTarget.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.Target.IDocumentsTarget);
+
+ /** DocumentsTarget documents. */
+ public documents: string[];
+
+ /**
+ * Creates a new DocumentsTarget instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentsTarget instance
+ */
+ public static create(properties?: google.firestore.v1beta1.Target.IDocumentsTarget): google.firestore.v1beta1.Target.DocumentsTarget;
+
+ /**
+ * Encodes the specified DocumentsTarget message. Does not implicitly {@link google.firestore.v1beta1.Target.DocumentsTarget.verify|verify} messages.
+ * @param message DocumentsTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.Target.IDocumentsTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentsTarget message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Target.DocumentsTarget.verify|verify} messages.
+ * @param message DocumentsTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.Target.IDocumentsTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentsTarget message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentsTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Target.DocumentsTarget;
+
+ /**
+ * Decodes a DocumentsTarget message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentsTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Target.DocumentsTarget;
+
+ /**
+ * Verifies a DocumentsTarget message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentsTarget message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentsTarget
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Target.DocumentsTarget;
+
+ /**
+ * Creates a plain object from a DocumentsTarget message. Also converts values to other types if specified.
+ * @param message DocumentsTarget
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Target.DocumentsTarget, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentsTarget to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentsTarget
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryTarget. */
+ interface IQueryTarget {
+
+ /** QueryTarget parent */
+ parent?: (string|null);
+
+ /** QueryTarget structuredQuery */
+ structuredQuery?: (google.firestore.v1beta1.IStructuredQuery|null);
+ }
+
+ /** Represents a QueryTarget. */
+ class QueryTarget implements IQueryTarget {
+
+ /**
+ * Constructs a new QueryTarget.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.Target.IQueryTarget);
+
+ /** QueryTarget parent. */
+ public parent: string;
+
+ /** QueryTarget structuredQuery. */
+ public structuredQuery?: (google.firestore.v1beta1.IStructuredQuery|null);
+
+ /** QueryTarget queryType. */
+ public queryType?: "structuredQuery";
+
+ /**
+ * Creates a new QueryTarget instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryTarget instance
+ */
+ public static create(properties?: google.firestore.v1beta1.Target.IQueryTarget): google.firestore.v1beta1.Target.QueryTarget;
+
+ /**
+ * Encodes the specified QueryTarget message. Does not implicitly {@link google.firestore.v1beta1.Target.QueryTarget.verify|verify} messages.
+ * @param message QueryTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.Target.IQueryTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryTarget message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Target.QueryTarget.verify|verify} messages.
+ * @param message QueryTarget message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.Target.IQueryTarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryTarget message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Target.QueryTarget;
+
+ /**
+ * Decodes a QueryTarget message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryTarget
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Target.QueryTarget;
+
+ /**
+ * Verifies a QueryTarget message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a QueryTarget message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryTarget
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Target.QueryTarget;
+
+ /**
+ * Creates a plain object from a QueryTarget message. Also converts values to other types if specified.
+ * @param message QueryTarget
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Target.QueryTarget, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryTarget to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryTarget
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TargetChange. */
+ interface ITargetChange {
+
+ /** TargetChange targetChangeType */
+ targetChangeType?: (google.firestore.v1beta1.TargetChange.TargetChangeType|keyof typeof google.firestore.v1beta1.TargetChange.TargetChangeType|null);
+
+ /** TargetChange targetIds */
+ targetIds?: (number[]|null);
+
+ /** TargetChange cause */
+ cause?: (google.rpc.IStatus|null);
+
+ /** TargetChange resumeToken */
+ resumeToken?: (Uint8Array|Buffer|string|null);
+
+ /** TargetChange readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a TargetChange. */
+ class TargetChange implements ITargetChange {
+
+ /**
+ * Constructs a new TargetChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.ITargetChange);
+
+ /** TargetChange targetChangeType. */
+ public targetChangeType: (google.firestore.v1beta1.TargetChange.TargetChangeType|keyof typeof google.firestore.v1beta1.TargetChange.TargetChangeType);
+
+ /** TargetChange targetIds. */
+ public targetIds: number[];
+
+ /** TargetChange cause. */
+ public cause?: (google.rpc.IStatus|null);
+
+ /** TargetChange resumeToken. */
+ public resumeToken: (Uint8Array|Buffer|string);
+
+ /** TargetChange readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new TargetChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TargetChange instance
+ */
+ public static create(properties?: google.firestore.v1beta1.ITargetChange): google.firestore.v1beta1.TargetChange;
+
+ /**
+ * Encodes the specified TargetChange message. Does not implicitly {@link google.firestore.v1beta1.TargetChange.verify|verify} messages.
+ * @param message TargetChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.ITargetChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TargetChange message, length delimited. Does not implicitly {@link google.firestore.v1beta1.TargetChange.verify|verify} messages.
+ * @param message TargetChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.ITargetChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TargetChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TargetChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.TargetChange;
+
+ /**
+ * Decodes a TargetChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TargetChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.TargetChange;
+
+ /**
+ * Verifies a TargetChange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TargetChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TargetChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.TargetChange;
+
+ /**
+ * Creates a plain object from a TargetChange message. Also converts values to other types if specified.
+ * @param message TargetChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.TargetChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TargetChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TargetChange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TargetChange {
+
+ /** TargetChangeType enum. */
+ enum TargetChangeType {
+ NO_CHANGE = 0,
+ ADD = 1,
+ REMOVE = 2,
+ CURRENT = 3,
+ RESET = 4
+ }
+ }
+
+ /** Properties of a ListCollectionIdsRequest. */
+ interface IListCollectionIdsRequest {
+
+ /** ListCollectionIdsRequest parent */
+ parent?: (string|null);
+
+ /** ListCollectionIdsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListCollectionIdsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListCollectionIdsRequest. */
+ class ListCollectionIdsRequest implements IListCollectionIdsRequest {
+
+ /**
+ * Constructs a new ListCollectionIdsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IListCollectionIdsRequest);
+
+ /** ListCollectionIdsRequest parent. */
+ public parent: string;
+
+ /** ListCollectionIdsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListCollectionIdsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListCollectionIdsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCollectionIdsRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IListCollectionIdsRequest): google.firestore.v1beta1.ListCollectionIdsRequest;
+
+ /**
+ * Encodes the specified ListCollectionIdsRequest message. Does not implicitly {@link google.firestore.v1beta1.ListCollectionIdsRequest.verify|verify} messages.
+ * @param message ListCollectionIdsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IListCollectionIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCollectionIdsRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ListCollectionIdsRequest.verify|verify} messages.
+ * @param message ListCollectionIdsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IListCollectionIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCollectionIdsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCollectionIdsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ListCollectionIdsRequest;
+
+ /**
+ * Decodes a ListCollectionIdsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCollectionIdsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ListCollectionIdsRequest;
+
+ /**
+ * Verifies a ListCollectionIdsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCollectionIdsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCollectionIdsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ListCollectionIdsRequest;
+
+ /**
+ * Creates a plain object from a ListCollectionIdsRequest message. Also converts values to other types if specified.
+ * @param message ListCollectionIdsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ListCollectionIdsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCollectionIdsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCollectionIdsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCollectionIdsResponse. */
+ interface IListCollectionIdsResponse {
+
+ /** ListCollectionIdsResponse collectionIds */
+ collectionIds?: (string[]|null);
+
+ /** ListCollectionIdsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListCollectionIdsResponse. */
+ class ListCollectionIdsResponse implements IListCollectionIdsResponse {
+
+ /**
+ * Constructs a new ListCollectionIdsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IListCollectionIdsResponse);
+
+ /** ListCollectionIdsResponse collectionIds. */
+ public collectionIds: string[];
+
+ /** ListCollectionIdsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListCollectionIdsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCollectionIdsResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IListCollectionIdsResponse): google.firestore.v1beta1.ListCollectionIdsResponse;
+
+ /**
+ * Encodes the specified ListCollectionIdsResponse message. Does not implicitly {@link google.firestore.v1beta1.ListCollectionIdsResponse.verify|verify} messages.
+ * @param message ListCollectionIdsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IListCollectionIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCollectionIdsResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ListCollectionIdsResponse.verify|verify} messages.
+ * @param message ListCollectionIdsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IListCollectionIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCollectionIdsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCollectionIdsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ListCollectionIdsResponse;
+
+ /**
+ * Decodes a ListCollectionIdsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCollectionIdsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ListCollectionIdsResponse;
+
+ /**
+ * Verifies a ListCollectionIdsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCollectionIdsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCollectionIdsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ListCollectionIdsResponse;
+
+ /**
+ * Creates a plain object from a ListCollectionIdsResponse message. Also converts values to other types if specified.
+ * @param message ListCollectionIdsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ListCollectionIdsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCollectionIdsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCollectionIdsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchWriteRequest. */
+ interface IBatchWriteRequest {
+
+ /** BatchWriteRequest database */
+ database?: (string|null);
+
+ /** BatchWriteRequest writes */
+ writes?: (google.firestore.v1beta1.IWrite[]|null);
+
+ /** BatchWriteRequest labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a BatchWriteRequest. */
+ class BatchWriteRequest implements IBatchWriteRequest {
+
+ /**
+ * Constructs a new BatchWriteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IBatchWriteRequest);
+
+ /** BatchWriteRequest database. */
+ public database: string;
+
+ /** BatchWriteRequest writes. */
+ public writes: google.firestore.v1beta1.IWrite[];
+
+ /** BatchWriteRequest labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new BatchWriteRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchWriteRequest instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IBatchWriteRequest): google.firestore.v1beta1.BatchWriteRequest;
+
+ /**
+ * Encodes the specified BatchWriteRequest message. Does not implicitly {@link google.firestore.v1beta1.BatchWriteRequest.verify|verify} messages.
+ * @param message BatchWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IBatchWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchWriteRequest message, length delimited. Does not implicitly {@link google.firestore.v1beta1.BatchWriteRequest.verify|verify} messages.
+ * @param message BatchWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IBatchWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchWriteRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchWriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.BatchWriteRequest;
+
+ /**
+ * Decodes a BatchWriteRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchWriteRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.BatchWriteRequest;
+
+ /**
+ * Verifies a BatchWriteRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchWriteRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchWriteRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.BatchWriteRequest;
+
+ /**
+ * Creates a plain object from a BatchWriteRequest message. Also converts values to other types if specified.
+ * @param message BatchWriteRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.BatchWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchWriteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchWriteRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchWriteResponse. */
+ interface IBatchWriteResponse {
+
+ /** BatchWriteResponse writeResults */
+ writeResults?: (google.firestore.v1beta1.IWriteResult[]|null);
+
+ /** BatchWriteResponse status */
+ status?: (google.rpc.IStatus[]|null);
+ }
+
+ /** Represents a BatchWriteResponse. */
+ class BatchWriteResponse implements IBatchWriteResponse {
+
+ /**
+ * Constructs a new BatchWriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IBatchWriteResponse);
+
+ /** BatchWriteResponse writeResults. */
+ public writeResults: google.firestore.v1beta1.IWriteResult[];
+
+ /** BatchWriteResponse status. */
+ public status: google.rpc.IStatus[];
+
+ /**
+ * Creates a new BatchWriteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchWriteResponse instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IBatchWriteResponse): google.firestore.v1beta1.BatchWriteResponse;
+
+ /**
+ * Encodes the specified BatchWriteResponse message. Does not implicitly {@link google.firestore.v1beta1.BatchWriteResponse.verify|verify} messages.
+ * @param message BatchWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IBatchWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchWriteResponse message, length delimited. Does not implicitly {@link google.firestore.v1beta1.BatchWriteResponse.verify|verify} messages.
+ * @param message BatchWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IBatchWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchWriteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchWriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.BatchWriteResponse;
+
+ /**
+ * Decodes a BatchWriteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchWriteResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.BatchWriteResponse;
+
+ /**
+ * Verifies a BatchWriteResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BatchWriteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchWriteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.BatchWriteResponse;
+
+ /**
+ * Creates a plain object from a BatchWriteResponse message. Also converts values to other types if specified.
+ * @param message BatchWriteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.BatchWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchWriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchWriteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StructuredQuery. */
+ interface IStructuredQuery {
+
+ /** StructuredQuery select */
+ select?: (google.firestore.v1beta1.StructuredQuery.IProjection|null);
+
+ /** StructuredQuery from */
+ from?: (google.firestore.v1beta1.StructuredQuery.ICollectionSelector[]|null);
+
+ /** StructuredQuery where */
+ where?: (google.firestore.v1beta1.StructuredQuery.IFilter|null);
+
+ /** StructuredQuery orderBy */
+ orderBy?: (google.firestore.v1beta1.StructuredQuery.IOrder[]|null);
+
+ /** StructuredQuery startAt */
+ startAt?: (google.firestore.v1beta1.ICursor|null);
+
+ /** StructuredQuery endAt */
+ endAt?: (google.firestore.v1beta1.ICursor|null);
+
+ /** StructuredQuery offset */
+ offset?: (number|null);
+
+ /** StructuredQuery limit */
+ limit?: (google.protobuf.IInt32Value|null);
+ }
+
+ /** Represents a StructuredQuery. */
+ class StructuredQuery implements IStructuredQuery {
+
+ /**
+ * Constructs a new StructuredQuery.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IStructuredQuery);
+
+ /** StructuredQuery select. */
+ public select?: (google.firestore.v1beta1.StructuredQuery.IProjection|null);
+
+ /** StructuredQuery from. */
+ public from: google.firestore.v1beta1.StructuredQuery.ICollectionSelector[];
+
+ /** StructuredQuery where. */
+ public where?: (google.firestore.v1beta1.StructuredQuery.IFilter|null);
+
+ /** StructuredQuery orderBy. */
+ public orderBy: google.firestore.v1beta1.StructuredQuery.IOrder[];
+
+ /** StructuredQuery startAt. */
+ public startAt?: (google.firestore.v1beta1.ICursor|null);
+
+ /** StructuredQuery endAt. */
+ public endAt?: (google.firestore.v1beta1.ICursor|null);
+
+ /** StructuredQuery offset. */
+ public offset: number;
+
+ /** StructuredQuery limit. */
+ public limit?: (google.protobuf.IInt32Value|null);
+
+ /**
+ * Creates a new StructuredQuery instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StructuredQuery instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IStructuredQuery): google.firestore.v1beta1.StructuredQuery;
+
+ /**
+ * Encodes the specified StructuredQuery message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.verify|verify} messages.
+ * @param message StructuredQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IStructuredQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StructuredQuery message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.verify|verify} messages.
+ * @param message StructuredQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IStructuredQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StructuredQuery message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StructuredQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery;
+
+ /**
+ * Decodes a StructuredQuery message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StructuredQuery
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery;
+
+ /**
+ * Verifies a StructuredQuery message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StructuredQuery message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StructuredQuery
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery;
+
+ /**
+ * Creates a plain object from a StructuredQuery message. Also converts values to other types if specified.
+ * @param message StructuredQuery
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StructuredQuery to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StructuredQuery
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StructuredQuery {
+
+ /** Properties of a CollectionSelector. */
+ interface ICollectionSelector {
+
+ /** CollectionSelector collectionId */
+ collectionId?: (string|null);
+
+ /** CollectionSelector allDescendants */
+ allDescendants?: (boolean|null);
+ }
+
+ /** Represents a CollectionSelector. */
+ class CollectionSelector implements ICollectionSelector {
+
+ /**
+ * Constructs a new CollectionSelector.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.ICollectionSelector);
+
+ /** CollectionSelector collectionId. */
+ public collectionId: string;
+
+ /** CollectionSelector allDescendants. */
+ public allDescendants: boolean;
+
+ /**
+ * Creates a new CollectionSelector instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CollectionSelector instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.ICollectionSelector): google.firestore.v1beta1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Encodes the specified CollectionSelector message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.CollectionSelector.verify|verify} messages.
+ * @param message CollectionSelector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.ICollectionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CollectionSelector message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.CollectionSelector.verify|verify} messages.
+ * @param message CollectionSelector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.ICollectionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CollectionSelector message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CollectionSelector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Decodes a CollectionSelector message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CollectionSelector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Verifies a CollectionSelector message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CollectionSelector message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CollectionSelector
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.CollectionSelector;
+
+ /**
+ * Creates a plain object from a CollectionSelector message. Also converts values to other types if specified.
+ * @param message CollectionSelector
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.CollectionSelector, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CollectionSelector to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CollectionSelector
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Filter. */
+ interface IFilter {
+
+ /** Filter compositeFilter */
+ compositeFilter?: (google.firestore.v1beta1.StructuredQuery.ICompositeFilter|null);
+
+ /** Filter fieldFilter */
+ fieldFilter?: (google.firestore.v1beta1.StructuredQuery.IFieldFilter|null);
+
+ /** Filter unaryFilter */
+ unaryFilter?: (google.firestore.v1beta1.StructuredQuery.IUnaryFilter|null);
+ }
+
+ /** Represents a Filter. */
+ class Filter implements IFilter {
+
+ /**
+ * Constructs a new Filter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.IFilter);
+
+ /** Filter compositeFilter. */
+ public compositeFilter?: (google.firestore.v1beta1.StructuredQuery.ICompositeFilter|null);
+
+ /** Filter fieldFilter. */
+ public fieldFilter?: (google.firestore.v1beta1.StructuredQuery.IFieldFilter|null);
+
+ /** Filter unaryFilter. */
+ public unaryFilter?: (google.firestore.v1beta1.StructuredQuery.IUnaryFilter|null);
+
+ /** Filter filterType. */
+ public filterType?: ("compositeFilter"|"fieldFilter"|"unaryFilter");
+
+ /**
+ * Creates a new Filter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Filter instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.IFilter): google.firestore.v1beta1.StructuredQuery.Filter;
+
+ /**
+ * Encodes the specified Filter message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.Filter.verify|verify} messages.
+ * @param message Filter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Filter message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.Filter.verify|verify} messages.
+ * @param message Filter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Filter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.Filter;
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Filter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.Filter;
+
+ /**
+ * Verifies a Filter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Filter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Filter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.Filter;
+
+ /**
+ * Creates a plain object from a Filter message. Also converts values to other types if specified.
+ * @param message Filter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Filter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Filter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CompositeFilter. */
+ interface ICompositeFilter {
+
+ /** CompositeFilter op */
+ op?: (google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator|keyof typeof google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator|null);
+
+ /** CompositeFilter filters */
+ filters?: (google.firestore.v1beta1.StructuredQuery.IFilter[]|null);
+ }
+
+ /** Represents a CompositeFilter. */
+ class CompositeFilter implements ICompositeFilter {
+
+ /**
+ * Constructs a new CompositeFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.ICompositeFilter);
+
+ /** CompositeFilter op. */
+ public op: (google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator|keyof typeof google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator);
+
+ /** CompositeFilter filters. */
+ public filters: google.firestore.v1beta1.StructuredQuery.IFilter[];
+
+ /**
+ * Creates a new CompositeFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CompositeFilter instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.ICompositeFilter): google.firestore.v1beta1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Encodes the specified CompositeFilter message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.CompositeFilter.verify|verify} messages.
+ * @param message CompositeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.ICompositeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CompositeFilter message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.CompositeFilter.verify|verify} messages.
+ * @param message CompositeFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.ICompositeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CompositeFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CompositeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Decodes a CompositeFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CompositeFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Verifies a CompositeFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CompositeFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CompositeFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.CompositeFilter;
+
+ /**
+ * Creates a plain object from a CompositeFilter message. Also converts values to other types if specified.
+ * @param message CompositeFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.CompositeFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CompositeFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CompositeFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CompositeFilter {
+
+ /** Operator enum. */
+ enum Operator {
+ OPERATOR_UNSPECIFIED = 0,
+ AND = 1
+ }
+ }
+
+ /** Properties of a FieldFilter. */
+ interface IFieldFilter {
+
+ /** FieldFilter field */
+ field?: (google.firestore.v1beta1.StructuredQuery.IFieldReference|null);
+
+ /** FieldFilter op */
+ op?: (google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator|keyof typeof google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator|null);
+
+ /** FieldFilter value */
+ value?: (google.firestore.v1beta1.IValue|null);
+ }
+
+ /** Represents a FieldFilter. */
+ class FieldFilter implements IFieldFilter {
+
+ /**
+ * Constructs a new FieldFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.IFieldFilter);
+
+ /** FieldFilter field. */
+ public field?: (google.firestore.v1beta1.StructuredQuery.IFieldReference|null);
+
+ /** FieldFilter op. */
+ public op: (google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator|keyof typeof google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator);
+
+ /** FieldFilter value. */
+ public value?: (google.firestore.v1beta1.IValue|null);
+
+ /**
+ * Creates a new FieldFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldFilter instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.IFieldFilter): google.firestore.v1beta1.StructuredQuery.FieldFilter;
+
+ /**
+ * Encodes the specified FieldFilter message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.FieldFilter.verify|verify} messages.
+ * @param message FieldFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.IFieldFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldFilter message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.FieldFilter.verify|verify} messages.
+ * @param message FieldFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.IFieldFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.FieldFilter;
+
+ /**
+ * Decodes a FieldFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.FieldFilter;
+
+ /**
+ * Verifies a FieldFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.FieldFilter;
+
+ /**
+ * Creates a plain object from a FieldFilter message. Also converts values to other types if specified.
+ * @param message FieldFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.FieldFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldFilter {
+
+ /** Operator enum. */
+ enum Operator {
+ OPERATOR_UNSPECIFIED = 0,
+ LESS_THAN = 1,
+ LESS_THAN_OR_EQUAL = 2,
+ GREATER_THAN = 3,
+ GREATER_THAN_OR_EQUAL = 4,
+ EQUAL = 5,
+ NOT_EQUAL = 6,
+ ARRAY_CONTAINS = 7,
+ IN = 8,
+ ARRAY_CONTAINS_ANY = 9,
+ NOT_IN = 10
+ }
+ }
+
+ /** Properties of an UnaryFilter. */
+ interface IUnaryFilter {
+
+ /** UnaryFilter op */
+ op?: (google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator|keyof typeof google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator|null);
+
+ /** UnaryFilter field */
+ field?: (google.firestore.v1beta1.StructuredQuery.IFieldReference|null);
+ }
+
+ /** Represents an UnaryFilter. */
+ class UnaryFilter implements IUnaryFilter {
+
+ /**
+ * Constructs a new UnaryFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.IUnaryFilter);
+
+ /** UnaryFilter op. */
+ public op: (google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator|keyof typeof google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator);
+
+ /** UnaryFilter field. */
+ public field?: (google.firestore.v1beta1.StructuredQuery.IFieldReference|null);
+
+ /** UnaryFilter operandType. */
+ public operandType?: "field";
+
+ /**
+ * Creates a new UnaryFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UnaryFilter instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.IUnaryFilter): google.firestore.v1beta1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Encodes the specified UnaryFilter message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.UnaryFilter.verify|verify} messages.
+ * @param message UnaryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.IUnaryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UnaryFilter message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.UnaryFilter.verify|verify} messages.
+ * @param message UnaryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.IUnaryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UnaryFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UnaryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Decodes an UnaryFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UnaryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Verifies an UnaryFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UnaryFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UnaryFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.UnaryFilter;
+
+ /**
+ * Creates a plain object from an UnaryFilter message. Also converts values to other types if specified.
+ * @param message UnaryFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.UnaryFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UnaryFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UnaryFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UnaryFilter {
+
+ /** Operator enum. */
+ enum Operator {
+ OPERATOR_UNSPECIFIED = 0,
+ IS_NAN = 2,
+ IS_NULL = 3,
+ IS_NOT_NAN = 4,
+ IS_NOT_NULL = 5
+ }
+ }
+
+ /** Properties of a FieldReference. */
+ interface IFieldReference {
+
+ /** FieldReference fieldPath */
+ fieldPath?: (string|null);
+ }
+
+ /** Represents a FieldReference. */
+ class FieldReference implements IFieldReference {
+
+ /**
+ * Constructs a new FieldReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.IFieldReference);
+
+ /** FieldReference fieldPath. */
+ public fieldPath: string;
+
+ /**
+ * Creates a new FieldReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldReference instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.IFieldReference): google.firestore.v1beta1.StructuredQuery.FieldReference;
+
+ /**
+ * Encodes the specified FieldReference message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.FieldReference.verify|verify} messages.
+ * @param message FieldReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.IFieldReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldReference message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.FieldReference.verify|verify} messages.
+ * @param message FieldReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.IFieldReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.FieldReference;
+
+ /**
+ * Decodes a FieldReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.FieldReference;
+
+ /**
+ * Verifies a FieldReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.FieldReference;
+
+ /**
+ * Creates a plain object from a FieldReference message. Also converts values to other types if specified.
+ * @param message FieldReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.FieldReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Order. */
+ interface IOrder {
+
+ /** Order field */
+ field?: (google.firestore.v1beta1.StructuredQuery.IFieldReference|null);
+
+ /** Order direction */
+ direction?: (google.firestore.v1beta1.StructuredQuery.Direction|keyof typeof google.firestore.v1beta1.StructuredQuery.Direction|null);
+ }
+
+ /** Represents an Order. */
+ class Order implements IOrder {
+
+ /**
+ * Constructs a new Order.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.IOrder);
+
+ /** Order field. */
+ public field?: (google.firestore.v1beta1.StructuredQuery.IFieldReference|null);
+
+ /** Order direction. */
+ public direction: (google.firestore.v1beta1.StructuredQuery.Direction|keyof typeof google.firestore.v1beta1.StructuredQuery.Direction);
+
+ /**
+ * Creates a new Order instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Order instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.IOrder): google.firestore.v1beta1.StructuredQuery.Order;
+
+ /**
+ * Encodes the specified Order message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.Order.verify|verify} messages.
+ * @param message Order message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.IOrder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Order message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.Order.verify|verify} messages.
+ * @param message Order message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.IOrder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Order message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Order
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.Order;
+
+ /**
+ * Decodes an Order message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Order
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.Order;
+
+ /**
+ * Verifies an Order message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Order message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Order
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.Order;
+
+ /**
+ * Creates a plain object from an Order message. Also converts values to other types if specified.
+ * @param message Order
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.Order, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Order to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Order
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Projection. */
+ interface IProjection {
+
+ /** Projection fields */
+ fields?: (google.firestore.v1beta1.StructuredQuery.IFieldReference[]|null);
+ }
+
+ /** Represents a Projection. */
+ class Projection implements IProjection {
+
+ /**
+ * Constructs a new Projection.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.StructuredQuery.IProjection);
+
+ /** Projection fields. */
+ public fields: google.firestore.v1beta1.StructuredQuery.IFieldReference[];
+
+ /**
+ * Creates a new Projection instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Projection instance
+ */
+ public static create(properties?: google.firestore.v1beta1.StructuredQuery.IProjection): google.firestore.v1beta1.StructuredQuery.Projection;
+
+ /**
+ * Encodes the specified Projection message. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.Projection.verify|verify} messages.
+ * @param message Projection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.StructuredQuery.IProjection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Projection message, length delimited. Does not implicitly {@link google.firestore.v1beta1.StructuredQuery.Projection.verify|verify} messages.
+ * @param message Projection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.StructuredQuery.IProjection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Projection message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Projection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.StructuredQuery.Projection;
+
+ /**
+ * Decodes a Projection message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Projection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.StructuredQuery.Projection;
+
+ /**
+ * Verifies a Projection message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Projection message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Projection
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.StructuredQuery.Projection;
+
+ /**
+ * Creates a plain object from a Projection message. Also converts values to other types if specified.
+ * @param message Projection
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.StructuredQuery.Projection, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Projection to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Projection
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Direction enum. */
+ enum Direction {
+ DIRECTION_UNSPECIFIED = 0,
+ ASCENDING = 1,
+ DESCENDING = 2
+ }
+ }
+
+ /** Properties of a Cursor. */
+ interface ICursor {
+
+ /** Cursor values */
+ values?: (google.firestore.v1beta1.IValue[]|null);
+
+ /** Cursor before */
+ before?: (boolean|null);
+ }
+
+ /** Represents a Cursor. */
+ class Cursor implements ICursor {
+
+ /**
+ * Constructs a new Cursor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.ICursor);
+
+ /** Cursor values. */
+ public values: google.firestore.v1beta1.IValue[];
+
+ /** Cursor before. */
+ public before: boolean;
+
+ /**
+ * Creates a new Cursor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Cursor instance
+ */
+ public static create(properties?: google.firestore.v1beta1.ICursor): google.firestore.v1beta1.Cursor;
+
+ /**
+ * Encodes the specified Cursor message. Does not implicitly {@link google.firestore.v1beta1.Cursor.verify|verify} messages.
+ * @param message Cursor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.ICursor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Cursor message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Cursor.verify|verify} messages.
+ * @param message Cursor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.ICursor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Cursor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Cursor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Cursor;
+
+ /**
+ * Decodes a Cursor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Cursor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Cursor;
+
+ /**
+ * Verifies a Cursor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Cursor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Cursor
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Cursor;
+
+ /**
+ * Creates a plain object from a Cursor message. Also converts values to other types if specified.
+ * @param message Cursor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Cursor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Cursor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Cursor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Write. */
+ interface IWrite {
+
+ /** Write update */
+ update?: (google.firestore.v1beta1.IDocument|null);
+
+ /** Write delete */
+ "delete"?: (string|null);
+
+ /** Write transform */
+ transform?: (google.firestore.v1beta1.IDocumentTransform|null);
+
+ /** Write updateMask */
+ updateMask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** Write updateTransforms */
+ updateTransforms?: (google.firestore.v1beta1.DocumentTransform.IFieldTransform[]|null);
+
+ /** Write currentDocument */
+ currentDocument?: (google.firestore.v1beta1.IPrecondition|null);
+ }
+
+ /** Represents a Write. */
+ class Write implements IWrite {
+
+ /**
+ * Constructs a new Write.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IWrite);
+
+ /** Write update. */
+ public update?: (google.firestore.v1beta1.IDocument|null);
+
+ /** Write delete. */
+ public delete?: (string|null);
+
+ /** Write transform. */
+ public transform?: (google.firestore.v1beta1.IDocumentTransform|null);
+
+ /** Write updateMask. */
+ public updateMask?: (google.firestore.v1beta1.IDocumentMask|null);
+
+ /** Write updateTransforms. */
+ public updateTransforms: google.firestore.v1beta1.DocumentTransform.IFieldTransform[];
+
+ /** Write currentDocument. */
+ public currentDocument?: (google.firestore.v1beta1.IPrecondition|null);
+
+ /** Write operation. */
+ public operation?: ("update"|"delete"|"transform");
+
+ /**
+ * Creates a new Write instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Write instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IWrite): google.firestore.v1beta1.Write;
+
+ /**
+ * Encodes the specified Write message. Does not implicitly {@link google.firestore.v1beta1.Write.verify|verify} messages.
+ * @param message Write message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Write message, length delimited. Does not implicitly {@link google.firestore.v1beta1.Write.verify|verify} messages.
+ * @param message Write message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IWrite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Write message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Write
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.Write;
+
+ /**
+ * Decodes a Write message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Write
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.Write;
+
+ /**
+ * Verifies a Write message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Write message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Write
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.Write;
+
+ /**
+ * Creates a plain object from a Write message. Also converts values to other types if specified.
+ * @param message Write
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.Write, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Write to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Write
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentTransform. */
+ interface IDocumentTransform {
+
+ /** DocumentTransform document */
+ document?: (string|null);
+
+ /** DocumentTransform fieldTransforms */
+ fieldTransforms?: (google.firestore.v1beta1.DocumentTransform.IFieldTransform[]|null);
+ }
+
+ /** Represents a DocumentTransform. */
+ class DocumentTransform implements IDocumentTransform {
+
+ /**
+ * Constructs a new DocumentTransform.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IDocumentTransform);
+
+ /** DocumentTransform document. */
+ public document: string;
+
+ /** DocumentTransform fieldTransforms. */
+ public fieldTransforms: google.firestore.v1beta1.DocumentTransform.IFieldTransform[];
+
+ /**
+ * Creates a new DocumentTransform instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentTransform instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IDocumentTransform): google.firestore.v1beta1.DocumentTransform;
+
+ /**
+ * Encodes the specified DocumentTransform message. Does not implicitly {@link google.firestore.v1beta1.DocumentTransform.verify|verify} messages.
+ * @param message DocumentTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IDocumentTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentTransform message, length delimited. Does not implicitly {@link google.firestore.v1beta1.DocumentTransform.verify|verify} messages.
+ * @param message DocumentTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IDocumentTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentTransform message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.DocumentTransform;
+
+ /**
+ * Decodes a DocumentTransform message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.DocumentTransform;
+
+ /**
+ * Verifies a DocumentTransform message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentTransform message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentTransform
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.DocumentTransform;
+
+ /**
+ * Creates a plain object from a DocumentTransform message. Also converts values to other types if specified.
+ * @param message DocumentTransform
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.DocumentTransform, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentTransform to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentTransform
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DocumentTransform {
+
+ /** Properties of a FieldTransform. */
+ interface IFieldTransform {
+
+ /** FieldTransform fieldPath */
+ fieldPath?: (string|null);
+
+ /** FieldTransform setToServerValue */
+ setToServerValue?: (google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue|keyof typeof google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue|null);
+
+ /** FieldTransform increment */
+ increment?: (google.firestore.v1beta1.IValue|null);
+
+ /** FieldTransform maximum */
+ maximum?: (google.firestore.v1beta1.IValue|null);
+
+ /** FieldTransform minimum */
+ minimum?: (google.firestore.v1beta1.IValue|null);
+
+ /** FieldTransform appendMissingElements */
+ appendMissingElements?: (google.firestore.v1beta1.IArrayValue|null);
+
+ /** FieldTransform removeAllFromArray */
+ removeAllFromArray?: (google.firestore.v1beta1.IArrayValue|null);
+ }
+
+ /** Represents a FieldTransform. */
+ class FieldTransform implements IFieldTransform {
+
+ /**
+ * Constructs a new FieldTransform.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.DocumentTransform.IFieldTransform);
+
+ /** FieldTransform fieldPath. */
+ public fieldPath: string;
+
+ /** FieldTransform setToServerValue. */
+ public setToServerValue?: (google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue|keyof typeof google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue|null);
+
+ /** FieldTransform increment. */
+ public increment?: (google.firestore.v1beta1.IValue|null);
+
+ /** FieldTransform maximum. */
+ public maximum?: (google.firestore.v1beta1.IValue|null);
+
+ /** FieldTransform minimum. */
+ public minimum?: (google.firestore.v1beta1.IValue|null);
+
+ /** FieldTransform appendMissingElements. */
+ public appendMissingElements?: (google.firestore.v1beta1.IArrayValue|null);
+
+ /** FieldTransform removeAllFromArray. */
+ public removeAllFromArray?: (google.firestore.v1beta1.IArrayValue|null);
+
+ /** FieldTransform transformType. */
+ public transformType?: ("setToServerValue"|"increment"|"maximum"|"minimum"|"appendMissingElements"|"removeAllFromArray");
+
+ /**
+ * Creates a new FieldTransform instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldTransform instance
+ */
+ public static create(properties?: google.firestore.v1beta1.DocumentTransform.IFieldTransform): google.firestore.v1beta1.DocumentTransform.FieldTransform;
+
+ /**
+ * Encodes the specified FieldTransform message. Does not implicitly {@link google.firestore.v1beta1.DocumentTransform.FieldTransform.verify|verify} messages.
+ * @param message FieldTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.DocumentTransform.IFieldTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldTransform message, length delimited. Does not implicitly {@link google.firestore.v1beta1.DocumentTransform.FieldTransform.verify|verify} messages.
+ * @param message FieldTransform message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.DocumentTransform.IFieldTransform, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldTransform message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.DocumentTransform.FieldTransform;
+
+ /**
+ * Decodes a FieldTransform message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldTransform
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.DocumentTransform.FieldTransform;
+
+ /**
+ * Verifies a FieldTransform message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldTransform message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldTransform
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.DocumentTransform.FieldTransform;
+
+ /**
+ * Creates a plain object from a FieldTransform message. Also converts values to other types if specified.
+ * @param message FieldTransform
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.DocumentTransform.FieldTransform, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldTransform to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldTransform
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldTransform {
+
+ /** ServerValue enum. */
+ enum ServerValue {
+ SERVER_VALUE_UNSPECIFIED = 0,
+ REQUEST_TIME = 1
+ }
+ }
+ }
+
+ /** Properties of a WriteResult. */
+ interface IWriteResult {
+
+ /** WriteResult updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** WriteResult transformResults */
+ transformResults?: (google.firestore.v1beta1.IValue[]|null);
+ }
+
+ /** Represents a WriteResult. */
+ class WriteResult implements IWriteResult {
+
+ /**
+ * Constructs a new WriteResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IWriteResult);
+
+ /** WriteResult updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** WriteResult transformResults. */
+ public transformResults: google.firestore.v1beta1.IValue[];
+
+ /**
+ * Creates a new WriteResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteResult instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IWriteResult): google.firestore.v1beta1.WriteResult;
+
+ /**
+ * Encodes the specified WriteResult message. Does not implicitly {@link google.firestore.v1beta1.WriteResult.verify|verify} messages.
+ * @param message WriteResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IWriteResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteResult message, length delimited. Does not implicitly {@link google.firestore.v1beta1.WriteResult.verify|verify} messages.
+ * @param message WriteResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IWriteResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.WriteResult;
+
+ /**
+ * Decodes a WriteResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteResult
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.WriteResult;
+
+ /**
+ * Verifies a WriteResult message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WriteResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.WriteResult;
+
+ /**
+ * Creates a plain object from a WriteResult message. Also converts values to other types if specified.
+ * @param message WriteResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.WriteResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentChange. */
+ interface IDocumentChange {
+
+ /** DocumentChange document */
+ document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** DocumentChange targetIds */
+ targetIds?: (number[]|null);
+
+ /** DocumentChange removedTargetIds */
+ removedTargetIds?: (number[]|null);
+ }
+
+ /** Represents a DocumentChange. */
+ class DocumentChange implements IDocumentChange {
+
+ /**
+ * Constructs a new DocumentChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IDocumentChange);
+
+ /** DocumentChange document. */
+ public document?: (google.firestore.v1beta1.IDocument|null);
+
+ /** DocumentChange targetIds. */
+ public targetIds: number[];
+
+ /** DocumentChange removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /**
+ * Creates a new DocumentChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentChange instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IDocumentChange): google.firestore.v1beta1.DocumentChange;
+
+ /**
+ * Encodes the specified DocumentChange message. Does not implicitly {@link google.firestore.v1beta1.DocumentChange.verify|verify} messages.
+ * @param message DocumentChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IDocumentChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentChange message, length delimited. Does not implicitly {@link google.firestore.v1beta1.DocumentChange.verify|verify} messages.
+ * @param message DocumentChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IDocumentChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.DocumentChange;
+
+ /**
+ * Decodes a DocumentChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.DocumentChange;
+
+ /**
+ * Verifies a DocumentChange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.DocumentChange;
+
+ /**
+ * Creates a plain object from a DocumentChange message. Also converts values to other types if specified.
+ * @param message DocumentChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.DocumentChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentChange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentDelete. */
+ interface IDocumentDelete {
+
+ /** DocumentDelete document */
+ document?: (string|null);
+
+ /** DocumentDelete removedTargetIds */
+ removedTargetIds?: (number[]|null);
+
+ /** DocumentDelete readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a DocumentDelete. */
+ class DocumentDelete implements IDocumentDelete {
+
+ /**
+ * Constructs a new DocumentDelete.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IDocumentDelete);
+
+ /** DocumentDelete document. */
+ public document: string;
+
+ /** DocumentDelete removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /** DocumentDelete readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new DocumentDelete instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentDelete instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IDocumentDelete): google.firestore.v1beta1.DocumentDelete;
+
+ /**
+ * Encodes the specified DocumentDelete message. Does not implicitly {@link google.firestore.v1beta1.DocumentDelete.verify|verify} messages.
+ * @param message DocumentDelete message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IDocumentDelete, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentDelete message, length delimited. Does not implicitly {@link google.firestore.v1beta1.DocumentDelete.verify|verify} messages.
+ * @param message DocumentDelete message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IDocumentDelete, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentDelete message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentDelete
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.DocumentDelete;
+
+ /**
+ * Decodes a DocumentDelete message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentDelete
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.DocumentDelete;
+
+ /**
+ * Verifies a DocumentDelete message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentDelete message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentDelete
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.DocumentDelete;
+
+ /**
+ * Creates a plain object from a DocumentDelete message. Also converts values to other types if specified.
+ * @param message DocumentDelete
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.DocumentDelete, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentDelete to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentDelete
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentRemove. */
+ interface IDocumentRemove {
+
+ /** DocumentRemove document */
+ document?: (string|null);
+
+ /** DocumentRemove removedTargetIds */
+ removedTargetIds?: (number[]|null);
+
+ /** DocumentRemove readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a DocumentRemove. */
+ class DocumentRemove implements IDocumentRemove {
+
+ /**
+ * Constructs a new DocumentRemove.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IDocumentRemove);
+
+ /** DocumentRemove document. */
+ public document: string;
+
+ /** DocumentRemove removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /** DocumentRemove readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new DocumentRemove instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentRemove instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IDocumentRemove): google.firestore.v1beta1.DocumentRemove;
+
+ /**
+ * Encodes the specified DocumentRemove message. Does not implicitly {@link google.firestore.v1beta1.DocumentRemove.verify|verify} messages.
+ * @param message DocumentRemove message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IDocumentRemove, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentRemove message, length delimited. Does not implicitly {@link google.firestore.v1beta1.DocumentRemove.verify|verify} messages.
+ * @param message DocumentRemove message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IDocumentRemove, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentRemove message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentRemove
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.DocumentRemove;
+
+ /**
+ * Decodes a DocumentRemove message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentRemove
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.DocumentRemove;
+
+ /**
+ * Verifies a DocumentRemove message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentRemove message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentRemove
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.DocumentRemove;
+
+ /**
+ * Creates a plain object from a DocumentRemove message. Also converts values to other types if specified.
+ * @param message DocumentRemove
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.DocumentRemove, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentRemove to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentRemove
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExistenceFilter. */
+ interface IExistenceFilter {
+
+ /** ExistenceFilter targetId */
+ targetId?: (number|null);
+
+ /** ExistenceFilter count */
+ count?: (number|null);
+ }
+
+ /** Represents an ExistenceFilter. */
+ class ExistenceFilter implements IExistenceFilter {
+
+ /**
+ * Constructs a new ExistenceFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IExistenceFilter);
+
+ /** ExistenceFilter targetId. */
+ public targetId: number;
+
+ /** ExistenceFilter count. */
+ public count: number;
+
+ /**
+ * Creates a new ExistenceFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExistenceFilter instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IExistenceFilter): google.firestore.v1beta1.ExistenceFilter;
+
+ /**
+ * Encodes the specified ExistenceFilter message. Does not implicitly {@link google.firestore.v1beta1.ExistenceFilter.verify|verify} messages.
+ * @param message ExistenceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IExistenceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExistenceFilter message, length delimited. Does not implicitly {@link google.firestore.v1beta1.ExistenceFilter.verify|verify} messages.
+ * @param message ExistenceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IExistenceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExistenceFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExistenceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.ExistenceFilter;
+
+ /**
+ * Decodes an ExistenceFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExistenceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.ExistenceFilter;
+
+ /**
+ * Verifies an ExistenceFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExistenceFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExistenceFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.ExistenceFilter;
+
+ /**
+ * Creates a plain object from an ExistenceFilter message. Also converts values to other types if specified.
+ * @param message ExistenceFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.ExistenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExistenceFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExistenceFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeliverableFirstGenEvent. */
+ interface IUndeliverableFirstGenEvent {
+
+ /** UndeliverableFirstGenEvent message */
+ message?: (string|null);
+
+ /** UndeliverableFirstGenEvent reason */
+ reason?: (google.firestore.v1beta1.UndeliverableFirstGenEvent.Reason|keyof typeof google.firestore.v1beta1.UndeliverableFirstGenEvent.Reason|null);
+
+ /** UndeliverableFirstGenEvent documentName */
+ documentName?: (string|null);
+
+ /** UndeliverableFirstGenEvent documentChangeType */
+ documentChangeType?: (google.firestore.v1beta1.UndeliverableFirstGenEvent.DocumentChangeType|keyof typeof google.firestore.v1beta1.UndeliverableFirstGenEvent.DocumentChangeType|null);
+
+ /** UndeliverableFirstGenEvent functionName */
+ functionName?: (string[]|null);
+
+ /** UndeliverableFirstGenEvent triggeredTime */
+ triggeredTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an UndeliverableFirstGenEvent. */
+ class UndeliverableFirstGenEvent implements IUndeliverableFirstGenEvent {
+
+ /**
+ * Constructs a new UndeliverableFirstGenEvent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1beta1.IUndeliverableFirstGenEvent);
+
+ /** UndeliverableFirstGenEvent message. */
+ public message: string;
+
+ /** UndeliverableFirstGenEvent reason. */
+ public reason: (google.firestore.v1beta1.UndeliverableFirstGenEvent.Reason|keyof typeof google.firestore.v1beta1.UndeliverableFirstGenEvent.Reason);
+
+ /** UndeliverableFirstGenEvent documentName. */
+ public documentName: string;
+
+ /** UndeliverableFirstGenEvent documentChangeType. */
+ public documentChangeType: (google.firestore.v1beta1.UndeliverableFirstGenEvent.DocumentChangeType|keyof typeof google.firestore.v1beta1.UndeliverableFirstGenEvent.DocumentChangeType);
+
+ /** UndeliverableFirstGenEvent functionName. */
+ public functionName: string[];
+
+ /** UndeliverableFirstGenEvent triggeredTime. */
+ public triggeredTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new UndeliverableFirstGenEvent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeliverableFirstGenEvent instance
+ */
+ public static create(properties?: google.firestore.v1beta1.IUndeliverableFirstGenEvent): google.firestore.v1beta1.UndeliverableFirstGenEvent;
+
+ /**
+ * Encodes the specified UndeliverableFirstGenEvent message. Does not implicitly {@link google.firestore.v1beta1.UndeliverableFirstGenEvent.verify|verify} messages.
+ * @param message UndeliverableFirstGenEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.firestore.v1beta1.IUndeliverableFirstGenEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeliverableFirstGenEvent message, length delimited. Does not implicitly {@link google.firestore.v1beta1.UndeliverableFirstGenEvent.verify|verify} messages.
+ * @param message UndeliverableFirstGenEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.firestore.v1beta1.IUndeliverableFirstGenEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeliverableFirstGenEvent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeliverableFirstGenEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.firestore.v1beta1.UndeliverableFirstGenEvent;
+
+ /**
+ * Decodes an UndeliverableFirstGenEvent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeliverableFirstGenEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.firestore.v1beta1.UndeliverableFirstGenEvent;
+
+ /**
+ * Verifies an UndeliverableFirstGenEvent message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UndeliverableFirstGenEvent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeliverableFirstGenEvent
+ */
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1beta1.UndeliverableFirstGenEvent;
+
+ /**
+ * Creates a plain object from an UndeliverableFirstGenEvent message. Also converts values to other types if specified.
+ * @param message UndeliverableFirstGenEvent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.firestore.v1beta1.UndeliverableFirstGenEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeliverableFirstGenEvent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeliverableFirstGenEvent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UndeliverableFirstGenEvent {
+
+ /** Reason enum. */
+ enum Reason {
+ REASON_UNSPECIFIED = 0,
+ EXCEEDING_SIZE_LIMIT = 1
+ }
+
+ /** DocumentChangeType enum. */
+ enum DocumentChangeType {
+ DOCUMENT_CHANGE_TYPE_UNSPECIFIED = 0,
+ CREATE = 1,
+ DELETE = 2,
+ UPDATE = 3
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7,
+ IDENTIFIER = 8
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+
+ /** CommonLanguageSettings selectiveGapicGeneration */
+ selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /** CommonLanguageSettings selectiveGapicGeneration. */
+ public selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+
+ /** Publishing restReferenceDocumentationUri */
+ restReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /** Publishing restReferenceDocumentationUri. */
+ public restReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures */
+ experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures. */
+ public experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PythonSettings {
+
+ /** Properties of an ExperimentalFeatures. */
+ interface IExperimentalFeatures {
+
+ /** ExperimentalFeatures restAsyncIoEnabled */
+ restAsyncIoEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled */
+ protobufPythonicTypesEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures unversionedPackageDisabled */
+ unversionedPackageDisabled?: (boolean|null);
+ }
+
+ /** Represents an ExperimentalFeatures. */
+ class ExperimentalFeatures implements IExperimentalFeatures {
+
+ /**
+ * Constructs a new ExperimentalFeatures.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.PythonSettings.IExperimentalFeatures);
+
+ /** ExperimentalFeatures restAsyncIoEnabled. */
+ public restAsyncIoEnabled: boolean;
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled. */
+ public protobufPythonicTypesEnabled: boolean;
+
+ /** ExperimentalFeatures unversionedPackageDisabled. */
+ public unversionedPackageDisabled: boolean;
+
+ /**
+ * Creates a new ExperimentalFeatures instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExperimentalFeatures instance
+ */
+ public static create(properties?: google.api.PythonSettings.IExperimentalFeatures): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Verifies an ExperimentalFeatures message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExperimentalFeatures
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
+ * @param message ExperimentalFeatures
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings.ExperimentalFeatures, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExperimentalFeatures to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExperimentalFeatures
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
+
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
+
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
+
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
+
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
+
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** Properties of a SelectiveGapicGeneration. */
+ interface ISelectiveGapicGeneration {
+
+ /** SelectiveGapicGeneration methods */
+ methods?: (string[]|null);
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal */
+ generateOmittedAsInternal?: (boolean|null);
+ }
+
+ /** Represents a SelectiveGapicGeneration. */
+ class SelectiveGapicGeneration implements ISelectiveGapicGeneration {
+
+ /**
+ * Constructs a new SelectiveGapicGeneration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISelectiveGapicGeneration);
+
+ /** SelectiveGapicGeneration methods. */
+ public methods: string[];
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal. */
+ public generateOmittedAsInternal: boolean;
+
+ /**
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SelectiveGapicGeneration instance
+ */
+ public static create(properties?: google.api.ISelectiveGapicGeneration): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SelectiveGapicGeneration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SelectiveGapicGeneration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Verifies a SelectiveGapicGeneration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SelectiveGapicGeneration
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
+ * @param message SelectiveGapicGeneration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SelectiveGapicGeneration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SelectiveGapicGeneration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SelectiveGapicGeneration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** Properties of a RoutingRule. */
+ interface IRoutingRule {
+
+ /** RoutingRule routingParameters */
+ routingParameters?: (google.api.IRoutingParameter[]|null);
+ }
+
+ /** Represents a RoutingRule. */
+ class RoutingRule implements IRoutingRule {
+
+ /**
+ * Constructs a new RoutingRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRoutingRule);
+
+ /** RoutingRule routingParameters. */
+ public routingParameters: google.api.IRoutingParameter[];
+
+ /**
+ * Creates a new RoutingRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RoutingRule instance
+ */
+ public static create(properties?: google.api.IRoutingRule): google.api.RoutingRule;
+
+ /**
+ * Encodes the specified RoutingRule message. Does not implicitly {@link google.api.RoutingRule.verify|verify} messages.
+ * @param message RoutingRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link google.api.RoutingRule.verify|verify} messages.
+ * @param message RoutingRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RoutingRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RoutingRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RoutingRule;
+
+ /**
+ * Decodes a RoutingRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RoutingRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RoutingRule;
+
+ /**
+ * Verifies a RoutingRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RoutingRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RoutingRule;
+
+ /**
+ * Creates a plain object from a RoutingRule message. Also converts values to other types if specified.
+ * @param message RoutingRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RoutingRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RoutingRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RoutingParameter. */
+ interface IRoutingParameter {
+
+ /** RoutingParameter field */
+ field?: (string|null);
+
+ /** RoutingParameter pathTemplate */
+ pathTemplate?: (string|null);
+ }
+
+ /** Represents a RoutingParameter. */
+ class RoutingParameter implements IRoutingParameter {
+
+ /**
+ * Constructs a new RoutingParameter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRoutingParameter);
+
+ /** RoutingParameter field. */
+ public field: string;
+
+ /** RoutingParameter pathTemplate. */
+ public pathTemplate: string;
+
+ /**
+ * Creates a new RoutingParameter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RoutingParameter instance
+ */
+ public static create(properties?: google.api.IRoutingParameter): google.api.RoutingParameter;
+
+ /**
+ * Encodes the specified RoutingParameter message. Does not implicitly {@link google.api.RoutingParameter.verify|verify} messages.
+ * @param message RoutingParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRoutingParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RoutingParameter message, length delimited. Does not implicitly {@link google.api.RoutingParameter.verify|verify} messages.
+ * @param message RoutingParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRoutingParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RoutingParameter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RoutingParameter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RoutingParameter;
+
+ /**
+ * Decodes a RoutingParameter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RoutingParameter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RoutingParameter;
+
+ /**
+ * Verifies a RoutingParameter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RoutingParameter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RoutingParameter
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RoutingParameter;
+
+ /**
+ * Creates a plain object from a RoutingParameter message. Also converts values to other types if specified.
+ * @param message RoutingParameter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RoutingParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RoutingParameter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RoutingParameter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_LEGACY = 900,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto optionDependency */
+ optionDependency?: (string[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto optionDependency. */
+ public optionDependency: string[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** DescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /** DescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification. */
+ public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExtensionRangeOptions {
+
+ /** Properties of a Declaration. */
+ interface IDeclaration {
+
+ /** Declaration number */
+ number?: (number|null);
+
+ /** Declaration fullName */
+ fullName?: (string|null);
+
+ /** Declaration type */
+ type?: (string|null);
+
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
+ }
+
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
+
+ /**
+ * Constructs a new Declaration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
+
+ /** Declaration number. */
+ public number: number;
+
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
+
+ /**
+ * Creates a new Declaration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Declaration instance
+ */
+ public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Verifies a Declaration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Declaration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * @param message Declaration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Declaration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Declaration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** VerificationState enum. */
+ enum VerificationState {
+ DECLARATION = 0,
+ UNVERIFIED = 1
+ }
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** EnumDescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /** EnumDescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
+
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** EditionDefault value */
+ value?: (string|null);
+ }
+
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
+
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+
+ /** EditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** EditionDefault value. */
+ public value: string;
+
+ /**
+ * Creates a new EditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Verifies an EditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
+ * @param message EditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FeatureSupport. */
+ interface IFeatureSupport {
+
+ /** FeatureSupport editionIntroduced */
+ editionIntroduced?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport editionDeprecated */
+ editionDeprecated?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport deprecationWarning */
+ deprecationWarning?: (string|null);
+
+ /** FeatureSupport editionRemoved */
+ editionRemoved?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSupport. */
+ class FeatureSupport implements IFeatureSupport {
+
+ /**
+ * Constructs a new FeatureSupport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport);
+
+ /** FeatureSupport editionIntroduced. */
+ public editionIntroduced: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport editionDeprecated. */
+ public editionDeprecated: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport deprecationWarning. */
+ public deprecationWarning: string;
+
+ /** FeatureSupport editionRemoved. */
+ public editionRemoved: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSupport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSupport instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IFeatureSupport): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSupport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSupport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Verifies a FeatureSupport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSupport
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
+ * @param message FeatureSupport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSupport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSupport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** EnumValueOptions featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+
+ /** ServiceOptions .google.api.apiVersion */
+ ".google.api.apiVersion"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.api.routing */
+ ".google.api.routing"?: (google.api.IRoutingRule|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|Buffer|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|Buffer|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
+
+ /** FeatureSet enforceNamingStyle */
+ enforceNamingStyle?: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle|null);
+
+ /** FeatureSet defaultSymbolVisibility */
+ defaultSymbolVisibility?: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null);
+ }
+
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
+
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
+
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
+
+ /** FeatureSet enforceNamingStyle. */
+ public enforceNamingStyle: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle);
+
+ /** FeatureSet defaultSymbolVisibility. */
+ public defaultSymbolVisibility: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility);
+
+ /**
+ * Creates a new FeatureSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSet instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
+
+ /**
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet;
+
+ /**
+ * Verifies a FeatureSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
+
+ /**
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
+ * @param message FeatureSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSet {
+
+ /** FieldPresence enum. */
+ enum FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3
+ }
+
+ /** EnumType enum. */
+ enum EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2
+ }
+
+ /** RepeatedFieldEncoding enum. */
+ enum RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 2,
+ NONE = 3
+ }
+
+ /** MessageEncoding enum. */
+ enum MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2
+ }
+
+ /** JsonFormat enum. */
+ enum JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2
+ }
+
+ /** EnforceNamingStyle enum. */
+ enum EnforceNamingStyle {
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0,
+ STYLE2024 = 1,
+ STYLE_LEGACY = 2
+ }
+
+ /** Properties of a VisibilityFeature. */
+ interface IVisibilityFeature {
+ }
+
+ /** Represents a VisibilityFeature. */
+ class VisibilityFeature implements IVisibilityFeature {
+
+ /**
+ * Constructs a new VisibilityFeature.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSet.IVisibilityFeature);
+
+ /**
+ * Creates a new VisibilityFeature instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisibilityFeature instance
+ */
+ public static create(properties?: google.protobuf.FeatureSet.IVisibilityFeature): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisibilityFeature
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisibilityFeature
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Verifies a VisibilityFeature message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisibilityFeature
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
+ * @param message VisibilityFeature
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet.VisibilityFeature, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisibilityFeature to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisibilityFeature
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VisibilityFeature {
+
+ /** DefaultSymbolVisibility enum. */
+ enum DefaultSymbolVisibility {
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
+ EXPORT_ALL = 1,
+ EXPORT_TOP_LEVEL = 2,
+ LOCAL_ALL = 3,
+ STRICT = 4
+ }
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault overridableFeatures */
+ overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures */
+ fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault overridableFeatures. */
+ public overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures. */
+ public fixedFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** SymbolVisibility enum. */
+ enum SymbolVisibility {
+ VISIBILITY_UNSET = 0,
+ VISIBILITY_LOCAL = 1,
+ VISIBILITY_EXPORT = 2
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Struct. */
+ interface IStruct {
+
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ }
+
+ /** Represents a Struct. */
+ class Struct implements IStruct {
+
+ /**
+ * Constructs a new Struct.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStruct);
+
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
+
+ /**
+ * Creates a new Struct instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Struct instance
+ */
+ public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
+
+ /**
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Struct
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Struct
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Struct;
+
+ /**
+ * Verifies a Struct message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Struct message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Struct
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
+
+ /**
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
+ * @param message Struct
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Struct to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Struct
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue */
+ numberValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value boolValue */
+ boolValue?: (boolean|null);
+
+ /** Value structValue */
+ structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue */
+ listValue?: (google.protobuf.IListValue|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue. */
+ public numberValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** Value structValue. */
+ public structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue. */
+ public listValue?: (google.protobuf.IListValue|null);
+
+ /** Value kind. */
+ public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** NullValue enum. */
+ enum NullValue {
+ NULL_VALUE = 0
+ }
+
+ /** Properties of a ListValue. */
+ interface IListValue {
+
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
+
+ /**
+ * Constructs a new ListValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IListValue);
+
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
+
+ /**
+ * Creates a new ListValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListValue instance
+ */
+ public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
+
+ /**
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ListValue;
+
+ /**
+ * Verifies a ListValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
+
+ /**
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
+ * @param message ListValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
+
+ /**
+ * Verifies a FloatValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value;
+
+ /**
+ * Verifies an Int64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
+
+ /**
+ * Verifies an Int32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
+
+ /**
+ * Verifies a BoolValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoolValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
+
+ /**
+ * Verifies a StringValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
+
+ /**
+ * Verifies a BytesValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BytesValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** DayOfWeek enum. */
+ enum DayOfWeek {
+ DAY_OF_WEEK_UNSPECIFIED = 0,
+ MONDAY = 1,
+ TUESDAY = 2,
+ WEDNESDAY = 3,
+ THURSDAY = 4,
+ FRIDAY = 5,
+ SATURDAY = 6,
+ SUNDAY = 7
+ }
+
+ /** Properties of a LatLng. */
+ interface ILatLng {
+
+ /** LatLng latitude */
+ latitude?: (number|null);
+
+ /** LatLng longitude */
+ longitude?: (number|null);
+ }
+
+ /** Represents a LatLng. */
+ class LatLng implements ILatLng {
+
+ /**
+ * Constructs a new LatLng.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.ILatLng);
+
+ /** LatLng latitude. */
+ public latitude: number;
+
+ /** LatLng longitude. */
+ public longitude: number;
+
+ /**
+ * Creates a new LatLng instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LatLng instance
+ */
+ public static create(properties?: google.type.ILatLng): google.type.LatLng;
+
+ /**
+ * Encodes the specified LatLng message. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
+ * @param message LatLng message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LatLng message, length delimited. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
+ * @param message LatLng message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LatLng message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LatLng
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.LatLng;
+
+ /**
+ * Decodes a LatLng message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LatLng
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.LatLng;
+
+ /**
+ * Verifies a LatLng message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LatLng message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LatLng
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.LatLng;
+
+ /**
+ * Creates a plain object from a LatLng message. Also converts values to other types if specified.
+ * @param message LatLng
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.LatLng, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LatLng to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LatLng
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-firestore-api/protos/protos.js b/packages/google-cloud-firestore-api/protos/protos.js
new file mode 100644
index 000000000000..0968c8733ccd
--- /dev/null
+++ b/packages/google-cloud-firestore-api/protos/protos.js
@@ -0,0 +1,98414 @@
+// Copyright 2026 Google LLC
+//
+// 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.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots["_google_cloud_firestore_api_protos"] || ($protobuf.roots["_google_cloud_firestore_api_protos"] = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.firestore = (function() {
+
+ /**
+ * Namespace firestore.
+ * @memberof google
+ * @namespace
+ */
+ var firestore = {};
+
+ firestore.admin = (function() {
+
+ /**
+ * Namespace admin.
+ * @memberof google.firestore
+ * @namespace
+ */
+ var admin = {};
+
+ admin.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.firestore.admin
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Backup = (function() {
+
+ /**
+ * Properties of a Backup.
+ * @memberof google.firestore.admin.v1
+ * @interface IBackup
+ * @property {string|null} [name] Backup name
+ * @property {string|null} [database] Backup database
+ * @property {string|null} [databaseUid] Backup databaseUid
+ * @property {google.protobuf.ITimestamp|null} [snapshotTime] Backup snapshotTime
+ * @property {google.protobuf.ITimestamp|null} [expireTime] Backup expireTime
+ * @property {google.firestore.admin.v1.Backup.IStats|null} [stats] Backup stats
+ * @property {google.firestore.admin.v1.Backup.State|null} [state] Backup state
+ */
+
+ /**
+ * Constructs a new Backup.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a Backup.
+ * @implements IBackup
+ * @constructor
+ * @param {google.firestore.admin.v1.IBackup=} [properties] Properties to set
+ */
+ function Backup(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Backup name.
+ * @member {string} name
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ */
+ Backup.prototype.name = "";
+
+ /**
+ * Backup database.
+ * @member {string} database
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ */
+ Backup.prototype.database = "";
+
+ /**
+ * Backup databaseUid.
+ * @member {string} databaseUid
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ */
+ Backup.prototype.databaseUid = "";
+
+ /**
+ * Backup snapshotTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} snapshotTime
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ */
+ Backup.prototype.snapshotTime = null;
+
+ /**
+ * Backup expireTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} expireTime
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ */
+ Backup.prototype.expireTime = null;
+
+ /**
+ * Backup stats.
+ * @member {google.firestore.admin.v1.Backup.IStats|null|undefined} stats
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ */
+ Backup.prototype.stats = null;
+
+ /**
+ * Backup state.
+ * @member {google.firestore.admin.v1.Backup.State} state
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ */
+ Backup.prototype.state = 0;
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {google.firestore.admin.v1.IBackup=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Backup} Backup instance
+ */
+ Backup.create = function create(properties) {
+ return new Backup(properties);
+ };
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.firestore.admin.v1.Backup.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {google.firestore.admin.v1.IBackup} message Backup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Backup.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.database);
+ if (message.snapshotTime != null && Object.hasOwnProperty.call(message, "snapshotTime"))
+ $root.google.protobuf.Timestamp.encode(message.snapshotTime, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
+ $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.stats != null && Object.hasOwnProperty.call(message, "stats"))
+ $root.google.firestore.admin.v1.Backup.Stats.encode(message.stats, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.databaseUid != null && Object.hasOwnProperty.call(message, "databaseUid"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.databaseUid);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Backup.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {google.firestore.admin.v1.IBackup} message Backup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Backup.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Backup} Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Backup.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Backup();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.database = reader.string();
+ break;
+ }
+ case 7: {
+ message.databaseUid = reader.string();
+ break;
+ }
+ case 3: {
+ message.snapshotTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.stats = $root.google.firestore.admin.v1.Backup.Stats.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 8: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Backup} Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Backup.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Backup message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Backup.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
+ if (!$util.isString(message.database))
+ return "database: string expected";
+ if (message.databaseUid != null && Object.hasOwnProperty.call(message, "databaseUid"))
+ if (!$util.isString(message.databaseUid))
+ return "databaseUid: string expected";
+ if (message.snapshotTime != null && Object.hasOwnProperty.call(message, "snapshotTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.snapshotTime, long + 1);
+ if (error)
+ return "snapshotTime." + error;
+ }
+ if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.expireTime, long + 1);
+ if (error)
+ return "expireTime." + error;
+ }
+ if (message.stats != null && Object.hasOwnProperty.call(message, "stats")) {
+ var error = $root.google.firestore.admin.v1.Backup.Stats.verify(message.stats, long + 1);
+ if (error)
+ return "stats." + error;
+ }
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Backup} Backup
+ */
+ Backup.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Backup)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Backup: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Backup();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.database != null)
+ message.database = String(object.database);
+ if (object.databaseUid != null)
+ message.databaseUid = String(object.databaseUid);
+ if (object.snapshotTime != null) {
+ if (!$util.isObject(object.snapshotTime))
+ throw TypeError(".google.firestore.admin.v1.Backup.snapshotTime: object expected");
+ message.snapshotTime = $root.google.protobuf.Timestamp.fromObject(object.snapshotTime, long + 1);
+ }
+ if (object.expireTime != null) {
+ if (!$util.isObject(object.expireTime))
+ throw TypeError(".google.firestore.admin.v1.Backup.expireTime: object expected");
+ message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime, long + 1);
+ }
+ if (object.stats != null) {
+ if (!$util.isObject(object.stats))
+ throw TypeError(".google.firestore.admin.v1.Backup.stats: object expected");
+ message.stats = $root.google.firestore.admin.v1.Backup.Stats.fromObject(object.stats, long + 1);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "READY":
+ case 2:
+ message.state = 2;
+ break;
+ case "NOT_AVAILABLE":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {google.firestore.admin.v1.Backup} message Backup
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Backup.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.database = "";
+ object.snapshotTime = null;
+ object.expireTime = null;
+ object.stats = null;
+ object.databaseUid = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
+ object.database = message.database;
+ if (message.snapshotTime != null && Object.hasOwnProperty.call(message, "snapshotTime"))
+ object.snapshotTime = $root.google.protobuf.Timestamp.toObject(message.snapshotTime, options, q + 1);
+ if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
+ object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options, q + 1);
+ if (message.stats != null && Object.hasOwnProperty.call(message, "stats"))
+ object.stats = $root.google.firestore.admin.v1.Backup.Stats.toObject(message.stats, options, q + 1);
+ if (message.databaseUid != null && Object.hasOwnProperty.call(message, "databaseUid"))
+ object.databaseUid = message.databaseUid;
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ object.state = options.enums === String ? $root.google.firestore.admin.v1.Backup.State[message.state] === undefined ? message.state : $root.google.firestore.admin.v1.Backup.State[message.state] : message.state;
+ return object;
+ };
+
+ /**
+ * Converts this Backup to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Backup
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Backup.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Backup
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Backup
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Backup.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Backup";
+ };
+
+ Backup.Stats = (function() {
+
+ /**
+ * Properties of a Stats.
+ * @memberof google.firestore.admin.v1.Backup
+ * @interface IStats
+ * @property {number|Long|null} [sizeBytes] Stats sizeBytes
+ * @property {number|Long|null} [documentCount] Stats documentCount
+ * @property {number|Long|null} [indexCount] Stats indexCount
+ */
+
+ /**
+ * Constructs a new Stats.
+ * @memberof google.firestore.admin.v1.Backup
+ * @classdesc Represents a Stats.
+ * @implements IStats
+ * @constructor
+ * @param {google.firestore.admin.v1.Backup.IStats=} [properties] Properties to set
+ */
+ function Stats(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Stats sizeBytes.
+ * @member {number|Long} sizeBytes
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @instance
+ */
+ Stats.prototype.sizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Stats documentCount.
+ * @member {number|Long} documentCount
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @instance
+ */
+ Stats.prototype.documentCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Stats indexCount.
+ * @member {number|Long} indexCount
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @instance
+ */
+ Stats.prototype.indexCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new Stats instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {google.firestore.admin.v1.Backup.IStats=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Backup.Stats} Stats instance
+ */
+ Stats.create = function create(properties) {
+ return new Stats(properties);
+ };
+
+ /**
+ * Encodes the specified Stats message. Does not implicitly {@link google.firestore.admin.v1.Backup.Stats.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {google.firestore.admin.v1.Backup.IStats} message Stats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Stats.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.sizeBytes);
+ if (message.documentCount != null && Object.hasOwnProperty.call(message, "documentCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.documentCount);
+ if (message.indexCount != null && Object.hasOwnProperty.call(message, "indexCount"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.indexCount);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Stats message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Backup.Stats.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {google.firestore.admin.v1.Backup.IStats} message Stats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Stats.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Stats message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Backup.Stats} Stats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Stats.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Backup.Stats();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.sizeBytes = reader.int64();
+ break;
+ }
+ case 2: {
+ message.documentCount = reader.int64();
+ break;
+ }
+ case 3: {
+ message.indexCount = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Stats message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Backup.Stats} Stats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Stats.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Stats message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Stats.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes"))
+ if (!$util.isInteger(message.sizeBytes) && !(message.sizeBytes && $util.isInteger(message.sizeBytes.low) && $util.isInteger(message.sizeBytes.high)))
+ return "sizeBytes: integer|Long expected";
+ if (message.documentCount != null && Object.hasOwnProperty.call(message, "documentCount"))
+ if (!$util.isInteger(message.documentCount) && !(message.documentCount && $util.isInteger(message.documentCount.low) && $util.isInteger(message.documentCount.high)))
+ return "documentCount: integer|Long expected";
+ if (message.indexCount != null && Object.hasOwnProperty.call(message, "indexCount"))
+ if (!$util.isInteger(message.indexCount) && !(message.indexCount && $util.isInteger(message.indexCount.low) && $util.isInteger(message.indexCount.high)))
+ return "indexCount: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a Stats message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Backup.Stats} Stats
+ */
+ Stats.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Backup.Stats)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Backup.Stats: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Backup.Stats();
+ if (object.sizeBytes != null)
+ if ($util.Long)
+ message.sizeBytes = $util.Long.fromValue(object.sizeBytes, false);
+ else if (typeof object.sizeBytes === "string")
+ message.sizeBytes = parseInt(object.sizeBytes, 10);
+ else if (typeof object.sizeBytes === "number")
+ message.sizeBytes = object.sizeBytes;
+ else if (typeof object.sizeBytes === "object")
+ message.sizeBytes = new $util.LongBits(object.sizeBytes.low >>> 0, object.sizeBytes.high >>> 0).toNumber();
+ if (object.documentCount != null)
+ if ($util.Long)
+ message.documentCount = $util.Long.fromValue(object.documentCount, false);
+ else if (typeof object.documentCount === "string")
+ message.documentCount = parseInt(object.documentCount, 10);
+ else if (typeof object.documentCount === "number")
+ message.documentCount = object.documentCount;
+ else if (typeof object.documentCount === "object")
+ message.documentCount = new $util.LongBits(object.documentCount.low >>> 0, object.documentCount.high >>> 0).toNumber();
+ if (object.indexCount != null)
+ if ($util.Long)
+ message.indexCount = $util.Long.fromValue(object.indexCount, false);
+ else if (typeof object.indexCount === "string")
+ message.indexCount = parseInt(object.indexCount, 10);
+ else if (typeof object.indexCount === "number")
+ message.indexCount = object.indexCount;
+ else if (typeof object.indexCount === "object")
+ message.indexCount = new $util.LongBits(object.indexCount.low >>> 0, object.indexCount.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Stats message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {google.firestore.admin.v1.Backup.Stats} message Stats
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Stats.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.sizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.sizeBytes = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.documentCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.documentCount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.indexCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.indexCount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ }
+ if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.sizeBytes = typeof message.sizeBytes === "number" ? BigInt(message.sizeBytes) : $util.Long.fromBits(message.sizeBytes.low >>> 0, message.sizeBytes.high >>> 0, false).toBigInt();
+ else if (typeof message.sizeBytes === "number")
+ object.sizeBytes = options.longs === String ? String(message.sizeBytes) : message.sizeBytes;
+ else
+ object.sizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.sizeBytes) : options.longs === Number ? new $util.LongBits(message.sizeBytes.low >>> 0, message.sizeBytes.high >>> 0).toNumber() : message.sizeBytes;
+ if (message.documentCount != null && Object.hasOwnProperty.call(message, "documentCount"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.documentCount = typeof message.documentCount === "number" ? BigInt(message.documentCount) : $util.Long.fromBits(message.documentCount.low >>> 0, message.documentCount.high >>> 0, false).toBigInt();
+ else if (typeof message.documentCount === "number")
+ object.documentCount = options.longs === String ? String(message.documentCount) : message.documentCount;
+ else
+ object.documentCount = options.longs === String ? $util.Long.prototype.toString.call(message.documentCount) : options.longs === Number ? new $util.LongBits(message.documentCount.low >>> 0, message.documentCount.high >>> 0).toNumber() : message.documentCount;
+ if (message.indexCount != null && Object.hasOwnProperty.call(message, "indexCount"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.indexCount = typeof message.indexCount === "number" ? BigInt(message.indexCount) : $util.Long.fromBits(message.indexCount.low >>> 0, message.indexCount.high >>> 0, false).toBigInt();
+ else if (typeof message.indexCount === "number")
+ object.indexCount = options.longs === String ? String(message.indexCount) : message.indexCount;
+ else
+ object.indexCount = options.longs === String ? $util.Long.prototype.toString.call(message.indexCount) : options.longs === Number ? new $util.LongBits(message.indexCount.low >>> 0, message.indexCount.high >>> 0).toNumber() : message.indexCount;
+ return object;
+ };
+
+ /**
+ * Converts this Stats to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Stats.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Stats
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Backup.Stats
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Stats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Backup.Stats";
+ };
+
+ return Stats;
+ })();
+
+ /**
+ * State enum.
+ * @name google.firestore.admin.v1.Backup.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} READY=2 READY value
+ * @property {number} NOT_AVAILABLE=3 NOT_AVAILABLE value
+ */
+ Backup.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "READY"] = 2;
+ values[valuesById[3] = "NOT_AVAILABLE"] = 3;
+ return values;
+ })();
+
+ return Backup;
+ })();
+
+ v1.Database = (function() {
+
+ /**
+ * Properties of a Database.
+ * @memberof google.firestore.admin.v1
+ * @interface IDatabase
+ * @property {string|null} [name] Database name
+ * @property {string|null} [uid] Database uid
+ * @property {google.protobuf.ITimestamp|null} [createTime] Database createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Database updateTime
+ * @property {google.protobuf.ITimestamp|null} [deleteTime] Database deleteTime
+ * @property {string|null} [locationId] Database locationId
+ * @property {google.firestore.admin.v1.Database.DatabaseType|null} [type] Database type
+ * @property {google.firestore.admin.v1.Database.ConcurrencyMode|null} [concurrencyMode] Database concurrencyMode
+ * @property {google.protobuf.IDuration|null} [versionRetentionPeriod] Database versionRetentionPeriod
+ * @property {google.protobuf.ITimestamp|null} [earliestVersionTime] Database earliestVersionTime
+ * @property {google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement|null} [pointInTimeRecoveryEnablement] Database pointInTimeRecoveryEnablement
+ * @property {google.firestore.admin.v1.Database.AppEngineIntegrationMode|null} [appEngineIntegrationMode] Database appEngineIntegrationMode
+ * @property {string|null} [keyPrefix] Database keyPrefix
+ * @property {google.firestore.admin.v1.Database.DeleteProtectionState|null} [deleteProtectionState] Database deleteProtectionState
+ * @property {google.firestore.admin.v1.Database.ICmekConfig|null} [cmekConfig] Database cmekConfig
+ * @property {string|null} [previousId] Database previousId
+ * @property {google.firestore.admin.v1.Database.ISourceInfo|null} [sourceInfo] Database sourceInfo
+ * @property {Object.|null} [tags] Database tags
+ * @property {boolean|null} [freeTier] Database freeTier
+ * @property {string|null} [etag] Database etag
+ * @property {google.firestore.admin.v1.Database.DatabaseEdition|null} [databaseEdition] Database databaseEdition
+ * @property {google.firestore.admin.v1.RealtimeUpdatesMode|null} [realtimeUpdatesMode] Database realtimeUpdatesMode
+ * @property {google.firestore.admin.v1.Database.DataAccessMode|null} [firestoreDataAccessMode] Database firestoreDataAccessMode
+ * @property {google.firestore.admin.v1.Database.DataAccessMode|null} [mongodbCompatibleDataAccessMode] Database mongodbCompatibleDataAccessMode
+ */
+
+ /**
+ * Constructs a new Database.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a Database.
+ * @implements IDatabase
+ * @constructor
+ * @param {google.firestore.admin.v1.IDatabase=} [properties] Properties to set
+ */
+ function Database(properties) {
+ this.tags = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Database name.
+ * @member {string} name
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.name = "";
+
+ /**
+ * Database uid.
+ * @member {string} uid
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.uid = "";
+
+ /**
+ * Database createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.createTime = null;
+
+ /**
+ * Database updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.updateTime = null;
+
+ /**
+ * Database deleteTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} deleteTime
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.deleteTime = null;
+
+ /**
+ * Database locationId.
+ * @member {string} locationId
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.locationId = "";
+
+ /**
+ * Database type.
+ * @member {google.firestore.admin.v1.Database.DatabaseType} type
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.type = 0;
+
+ /**
+ * Database concurrencyMode.
+ * @member {google.firestore.admin.v1.Database.ConcurrencyMode} concurrencyMode
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.concurrencyMode = 0;
+
+ /**
+ * Database versionRetentionPeriod.
+ * @member {google.protobuf.IDuration|null|undefined} versionRetentionPeriod
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.versionRetentionPeriod = null;
+
+ /**
+ * Database earliestVersionTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} earliestVersionTime
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.earliestVersionTime = null;
+
+ /**
+ * Database pointInTimeRecoveryEnablement.
+ * @member {google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement} pointInTimeRecoveryEnablement
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.pointInTimeRecoveryEnablement = 0;
+
+ /**
+ * Database appEngineIntegrationMode.
+ * @member {google.firestore.admin.v1.Database.AppEngineIntegrationMode} appEngineIntegrationMode
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.appEngineIntegrationMode = 0;
+
+ /**
+ * Database keyPrefix.
+ * @member {string} keyPrefix
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.keyPrefix = "";
+
+ /**
+ * Database deleteProtectionState.
+ * @member {google.firestore.admin.v1.Database.DeleteProtectionState} deleteProtectionState
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.deleteProtectionState = 0;
+
+ /**
+ * Database cmekConfig.
+ * @member {google.firestore.admin.v1.Database.ICmekConfig|null|undefined} cmekConfig
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.cmekConfig = null;
+
+ /**
+ * Database previousId.
+ * @member {string} previousId
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.previousId = "";
+
+ /**
+ * Database sourceInfo.
+ * @member {google.firestore.admin.v1.Database.ISourceInfo|null|undefined} sourceInfo
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.sourceInfo = null;
+
+ /**
+ * Database tags.
+ * @member {Object.} tags
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.tags = $util.emptyObject;
+
+ /**
+ * Database freeTier.
+ * @member {boolean|null|undefined} freeTier
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.freeTier = null;
+
+ /**
+ * Database etag.
+ * @member {string} etag
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.etag = "";
+
+ /**
+ * Database databaseEdition.
+ * @member {google.firestore.admin.v1.Database.DatabaseEdition} databaseEdition
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.databaseEdition = 0;
+
+ /**
+ * Database realtimeUpdatesMode.
+ * @member {google.firestore.admin.v1.RealtimeUpdatesMode} realtimeUpdatesMode
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.realtimeUpdatesMode = 0;
+
+ /**
+ * Database firestoreDataAccessMode.
+ * @member {google.firestore.admin.v1.Database.DataAccessMode} firestoreDataAccessMode
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.firestoreDataAccessMode = 0;
+
+ /**
+ * Database mongodbCompatibleDataAccessMode.
+ * @member {google.firestore.admin.v1.Database.DataAccessMode} mongodbCompatibleDataAccessMode
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ */
+ Database.prototype.mongodbCompatibleDataAccessMode = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(Database.prototype, "_freeTier", {
+ get: $util.oneOfGetter($oneOfFields = ["freeTier"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Database instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {google.firestore.admin.v1.IDatabase=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database} Database instance
+ */
+ Database.create = function create(properties) {
+ return new Database(properties);
+ };
+
+ /**
+ * Encodes the specified Database message. Does not implicitly {@link google.firestore.admin.v1.Database.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {google.firestore.admin.v1.IDatabase} message Database message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Database.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.uid);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime"))
+ $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim();
+ if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.locationId);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.type);
+ if (message.concurrencyMode != null && Object.hasOwnProperty.call(message, "concurrencyMode"))
+ writer.uint32(/* id 15, wireType 0 =*/120).int32(message.concurrencyMode);
+ if (message.versionRetentionPeriod != null && Object.hasOwnProperty.call(message, "versionRetentionPeriod"))
+ $root.google.protobuf.Duration.encode(message.versionRetentionPeriod, writer.uint32(/* id 17, wireType 2 =*/138).fork(), q + 1).ldelim();
+ if (message.earliestVersionTime != null && Object.hasOwnProperty.call(message, "earliestVersionTime"))
+ $root.google.protobuf.Timestamp.encode(message.earliestVersionTime, writer.uint32(/* id 18, wireType 2 =*/146).fork(), q + 1).ldelim();
+ if (message.appEngineIntegrationMode != null && Object.hasOwnProperty.call(message, "appEngineIntegrationMode"))
+ writer.uint32(/* id 19, wireType 0 =*/152).int32(message.appEngineIntegrationMode);
+ if (message.keyPrefix != null && Object.hasOwnProperty.call(message, "keyPrefix"))
+ writer.uint32(/* id 20, wireType 2 =*/162).string(message.keyPrefix);
+ if (message.pointInTimeRecoveryEnablement != null && Object.hasOwnProperty.call(message, "pointInTimeRecoveryEnablement"))
+ writer.uint32(/* id 21, wireType 0 =*/168).int32(message.pointInTimeRecoveryEnablement);
+ if (message.deleteProtectionState != null && Object.hasOwnProperty.call(message, "deleteProtectionState"))
+ writer.uint32(/* id 22, wireType 0 =*/176).int32(message.deleteProtectionState);
+ if (message.cmekConfig != null && Object.hasOwnProperty.call(message, "cmekConfig"))
+ $root.google.firestore.admin.v1.Database.CmekConfig.encode(message.cmekConfig, writer.uint32(/* id 23, wireType 2 =*/186).fork(), q + 1).ldelim();
+ if (message.previousId != null && Object.hasOwnProperty.call(message, "previousId"))
+ writer.uint32(/* id 25, wireType 2 =*/202).string(message.previousId);
+ if (message.sourceInfo != null && Object.hasOwnProperty.call(message, "sourceInfo"))
+ $root.google.firestore.admin.v1.Database.SourceInfo.encode(message.sourceInfo, writer.uint32(/* id 26, wireType 2 =*/210).fork(), q + 1).ldelim();
+ if (message.databaseEdition != null && Object.hasOwnProperty.call(message, "databaseEdition"))
+ writer.uint32(/* id 28, wireType 0 =*/224).int32(message.databaseEdition);
+ if (message.tags != null && Object.hasOwnProperty.call(message, "tags"))
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 29, wireType 2 =*/234).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim();
+ if (message.freeTier != null && Object.hasOwnProperty.call(message, "freeTier"))
+ writer.uint32(/* id 30, wireType 0 =*/240).bool(message.freeTier);
+ if (message.realtimeUpdatesMode != null && Object.hasOwnProperty.call(message, "realtimeUpdatesMode"))
+ writer.uint32(/* id 31, wireType 0 =*/248).int32(message.realtimeUpdatesMode);
+ if (message.firestoreDataAccessMode != null && Object.hasOwnProperty.call(message, "firestoreDataAccessMode"))
+ writer.uint32(/* id 33, wireType 0 =*/264).int32(message.firestoreDataAccessMode);
+ if (message.mongodbCompatibleDataAccessMode != null && Object.hasOwnProperty.call(message, "mongodbCompatibleDataAccessMode"))
+ writer.uint32(/* id 34, wireType 0 =*/272).int32(message.mongodbCompatibleDataAccessMode);
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 99, wireType 2 =*/794).string(message.etag);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Database message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {google.firestore.admin.v1.IDatabase} message Database message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Database.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Database message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database} Database
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Database.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.uid = reader.string();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 9: {
+ message.locationId = reader.string();
+ break;
+ }
+ case 10: {
+ message.type = reader.int32();
+ break;
+ }
+ case 15: {
+ message.concurrencyMode = reader.int32();
+ break;
+ }
+ case 17: {
+ message.versionRetentionPeriod = $root.google.protobuf.Duration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 18: {
+ message.earliestVersionTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 21: {
+ message.pointInTimeRecoveryEnablement = reader.int32();
+ break;
+ }
+ case 19: {
+ message.appEngineIntegrationMode = reader.int32();
+ break;
+ }
+ case 20: {
+ message.keyPrefix = reader.string();
+ break;
+ }
+ case 22: {
+ message.deleteProtectionState = reader.int32();
+ break;
+ }
+ case 23: {
+ message.cmekConfig = $root.google.firestore.admin.v1.Database.CmekConfig.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 25: {
+ message.previousId = reader.string();
+ break;
+ }
+ case 26: {
+ message.sourceInfo = $root.google.firestore.admin.v1.Database.SourceInfo.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 29: {
+ if (message.tags === $util.emptyObject)
+ message.tags = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.tags, key);
+ message.tags[key] = value;
+ break;
+ }
+ case 30: {
+ message.freeTier = reader.bool();
+ break;
+ }
+ case 99: {
+ message.etag = reader.string();
+ break;
+ }
+ case 28: {
+ message.databaseEdition = reader.int32();
+ break;
+ }
+ case 31: {
+ message.realtimeUpdatesMode = reader.int32();
+ break;
+ }
+ case 33: {
+ message.firestoreDataAccessMode = reader.int32();
+ break;
+ }
+ case 34: {
+ message.mongodbCompatibleDataAccessMode = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Database message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database} Database
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Database.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Database message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Database.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime, long + 1);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime, long + 1);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.deleteTime, long + 1);
+ if (error)
+ return "deleteTime." + error;
+ }
+ if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
+ if (!$util.isString(message.locationId))
+ return "locationId: string expected";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.concurrencyMode != null && Object.hasOwnProperty.call(message, "concurrencyMode"))
+ switch (message.concurrencyMode) {
+ default:
+ return "concurrencyMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.versionRetentionPeriod != null && Object.hasOwnProperty.call(message, "versionRetentionPeriod")) {
+ var error = $root.google.protobuf.Duration.verify(message.versionRetentionPeriod, long + 1);
+ if (error)
+ return "versionRetentionPeriod." + error;
+ }
+ if (message.earliestVersionTime != null && Object.hasOwnProperty.call(message, "earliestVersionTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.earliestVersionTime, long + 1);
+ if (error)
+ return "earliestVersionTime." + error;
+ }
+ if (message.pointInTimeRecoveryEnablement != null && Object.hasOwnProperty.call(message, "pointInTimeRecoveryEnablement"))
+ switch (message.pointInTimeRecoveryEnablement) {
+ default:
+ return "pointInTimeRecoveryEnablement: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.appEngineIntegrationMode != null && Object.hasOwnProperty.call(message, "appEngineIntegrationMode"))
+ switch (message.appEngineIntegrationMode) {
+ default:
+ return "appEngineIntegrationMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.keyPrefix != null && Object.hasOwnProperty.call(message, "keyPrefix"))
+ if (!$util.isString(message.keyPrefix))
+ return "keyPrefix: string expected";
+ if (message.deleteProtectionState != null && Object.hasOwnProperty.call(message, "deleteProtectionState"))
+ switch (message.deleteProtectionState) {
+ default:
+ return "deleteProtectionState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.cmekConfig != null && Object.hasOwnProperty.call(message, "cmekConfig")) {
+ var error = $root.google.firestore.admin.v1.Database.CmekConfig.verify(message.cmekConfig, long + 1);
+ if (error)
+ return "cmekConfig." + error;
+ }
+ if (message.previousId != null && Object.hasOwnProperty.call(message, "previousId"))
+ if (!$util.isString(message.previousId))
+ return "previousId: string expected";
+ if (message.sourceInfo != null && Object.hasOwnProperty.call(message, "sourceInfo")) {
+ var error = $root.google.firestore.admin.v1.Database.SourceInfo.verify(message.sourceInfo, long + 1);
+ if (error)
+ return "sourceInfo." + error;
+ }
+ if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) {
+ if (!$util.isObject(message.tags))
+ return "tags: object expected";
+ var key = Object.keys(message.tags);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.tags[key[i]]))
+ return "tags: string{k:string} expected";
+ }
+ if (message.freeTier != null && Object.hasOwnProperty.call(message, "freeTier")) {
+ properties._freeTier = 1;
+ if (typeof message.freeTier !== "boolean")
+ return "freeTier: boolean expected";
+ }
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.databaseEdition != null && Object.hasOwnProperty.call(message, "databaseEdition"))
+ switch (message.databaseEdition) {
+ default:
+ return "databaseEdition: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.realtimeUpdatesMode != null && Object.hasOwnProperty.call(message, "realtimeUpdatesMode"))
+ switch (message.realtimeUpdatesMode) {
+ default:
+ return "realtimeUpdatesMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.firestoreDataAccessMode != null && Object.hasOwnProperty.call(message, "firestoreDataAccessMode"))
+ switch (message.firestoreDataAccessMode) {
+ default:
+ return "firestoreDataAccessMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.mongodbCompatibleDataAccessMode != null && Object.hasOwnProperty.call(message, "mongodbCompatibleDataAccessMode"))
+ switch (message.mongodbCompatibleDataAccessMode) {
+ default:
+ return "mongodbCompatibleDataAccessMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Database message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database} Database
+ */
+ Database.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Database: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Database();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.createTime != null) {
+ if (!$util.isObject(object.createTime))
+ throw TypeError(".google.firestore.admin.v1.Database.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime, long + 1);
+ }
+ if (object.updateTime != null) {
+ if (!$util.isObject(object.updateTime))
+ throw TypeError(".google.firestore.admin.v1.Database.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime, long + 1);
+ }
+ if (object.deleteTime != null) {
+ if (!$util.isObject(object.deleteTime))
+ throw TypeError(".google.firestore.admin.v1.Database.deleteTime: object expected");
+ message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime, long + 1);
+ }
+ if (object.locationId != null)
+ message.locationId = String(object.locationId);
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "DATABASE_TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "FIRESTORE_NATIVE":
+ case 1:
+ message.type = 1;
+ break;
+ case "DATASTORE_MODE":
+ case 2:
+ message.type = 2;
+ break;
+ }
+ switch (object.concurrencyMode) {
+ default:
+ if (typeof object.concurrencyMode === "number") {
+ message.concurrencyMode = object.concurrencyMode;
+ break;
+ }
+ break;
+ case "CONCURRENCY_MODE_UNSPECIFIED":
+ case 0:
+ message.concurrencyMode = 0;
+ break;
+ case "OPTIMISTIC":
+ case 1:
+ message.concurrencyMode = 1;
+ break;
+ case "PESSIMISTIC":
+ case 2:
+ message.concurrencyMode = 2;
+ break;
+ case "OPTIMISTIC_WITH_ENTITY_GROUPS":
+ case 3:
+ message.concurrencyMode = 3;
+ break;
+ }
+ if (object.versionRetentionPeriod != null) {
+ if (!$util.isObject(object.versionRetentionPeriod))
+ throw TypeError(".google.firestore.admin.v1.Database.versionRetentionPeriod: object expected");
+ message.versionRetentionPeriod = $root.google.protobuf.Duration.fromObject(object.versionRetentionPeriod, long + 1);
+ }
+ if (object.earliestVersionTime != null) {
+ if (!$util.isObject(object.earliestVersionTime))
+ throw TypeError(".google.firestore.admin.v1.Database.earliestVersionTime: object expected");
+ message.earliestVersionTime = $root.google.protobuf.Timestamp.fromObject(object.earliestVersionTime, long + 1);
+ }
+ switch (object.pointInTimeRecoveryEnablement) {
+ default:
+ if (typeof object.pointInTimeRecoveryEnablement === "number") {
+ message.pointInTimeRecoveryEnablement = object.pointInTimeRecoveryEnablement;
+ break;
+ }
+ break;
+ case "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED":
+ case 0:
+ message.pointInTimeRecoveryEnablement = 0;
+ break;
+ case "POINT_IN_TIME_RECOVERY_ENABLED":
+ case 1:
+ message.pointInTimeRecoveryEnablement = 1;
+ break;
+ case "POINT_IN_TIME_RECOVERY_DISABLED":
+ case 2:
+ message.pointInTimeRecoveryEnablement = 2;
+ break;
+ }
+ switch (object.appEngineIntegrationMode) {
+ default:
+ if (typeof object.appEngineIntegrationMode === "number") {
+ message.appEngineIntegrationMode = object.appEngineIntegrationMode;
+ break;
+ }
+ break;
+ case "APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED":
+ case 0:
+ message.appEngineIntegrationMode = 0;
+ break;
+ case "ENABLED":
+ case 1:
+ message.appEngineIntegrationMode = 1;
+ break;
+ case "DISABLED":
+ case 2:
+ message.appEngineIntegrationMode = 2;
+ break;
+ }
+ if (object.keyPrefix != null)
+ message.keyPrefix = String(object.keyPrefix);
+ switch (object.deleteProtectionState) {
+ default:
+ if (typeof object.deleteProtectionState === "number") {
+ message.deleteProtectionState = object.deleteProtectionState;
+ break;
+ }
+ break;
+ case "DELETE_PROTECTION_STATE_UNSPECIFIED":
+ case 0:
+ message.deleteProtectionState = 0;
+ break;
+ case "DELETE_PROTECTION_DISABLED":
+ case 1:
+ message.deleteProtectionState = 1;
+ break;
+ case "DELETE_PROTECTION_ENABLED":
+ case 2:
+ message.deleteProtectionState = 2;
+ break;
+ }
+ if (object.cmekConfig != null) {
+ if (!$util.isObject(object.cmekConfig))
+ throw TypeError(".google.firestore.admin.v1.Database.cmekConfig: object expected");
+ message.cmekConfig = $root.google.firestore.admin.v1.Database.CmekConfig.fromObject(object.cmekConfig, long + 1);
+ }
+ if (object.previousId != null)
+ message.previousId = String(object.previousId);
+ if (object.sourceInfo != null) {
+ if (!$util.isObject(object.sourceInfo))
+ throw TypeError(".google.firestore.admin.v1.Database.sourceInfo: object expected");
+ message.sourceInfo = $root.google.firestore.admin.v1.Database.SourceInfo.fromObject(object.sourceInfo, long + 1);
+ }
+ if (object.tags) {
+ if (!$util.isObject(object.tags))
+ throw TypeError(".google.firestore.admin.v1.Database.tags: object expected");
+ message.tags = {};
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.tags, keys[i]);
+ message.tags[keys[i]] = String(object.tags[keys[i]]);
+ }
+ }
+ if (object.freeTier != null)
+ message.freeTier = Boolean(object.freeTier);
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ switch (object.databaseEdition) {
+ default:
+ if (typeof object.databaseEdition === "number") {
+ message.databaseEdition = object.databaseEdition;
+ break;
+ }
+ break;
+ case "DATABASE_EDITION_UNSPECIFIED":
+ case 0:
+ message.databaseEdition = 0;
+ break;
+ case "STANDARD":
+ case 1:
+ message.databaseEdition = 1;
+ break;
+ case "ENTERPRISE":
+ case 2:
+ message.databaseEdition = 2;
+ break;
+ }
+ switch (object.realtimeUpdatesMode) {
+ default:
+ if (typeof object.realtimeUpdatesMode === "number") {
+ message.realtimeUpdatesMode = object.realtimeUpdatesMode;
+ break;
+ }
+ break;
+ case "REALTIME_UPDATES_MODE_UNSPECIFIED":
+ case 0:
+ message.realtimeUpdatesMode = 0;
+ break;
+ case "REALTIME_UPDATES_MODE_ENABLED":
+ case 1:
+ message.realtimeUpdatesMode = 1;
+ break;
+ case "REALTIME_UPDATES_MODE_DISABLED":
+ case 2:
+ message.realtimeUpdatesMode = 2;
+ break;
+ }
+ switch (object.firestoreDataAccessMode) {
+ default:
+ if (typeof object.firestoreDataAccessMode === "number") {
+ message.firestoreDataAccessMode = object.firestoreDataAccessMode;
+ break;
+ }
+ break;
+ case "DATA_ACCESS_MODE_UNSPECIFIED":
+ case 0:
+ message.firestoreDataAccessMode = 0;
+ break;
+ case "DATA_ACCESS_MODE_ENABLED":
+ case 1:
+ message.firestoreDataAccessMode = 1;
+ break;
+ case "DATA_ACCESS_MODE_DISABLED":
+ case 2:
+ message.firestoreDataAccessMode = 2;
+ break;
+ }
+ switch (object.mongodbCompatibleDataAccessMode) {
+ default:
+ if (typeof object.mongodbCompatibleDataAccessMode === "number") {
+ message.mongodbCompatibleDataAccessMode = object.mongodbCompatibleDataAccessMode;
+ break;
+ }
+ break;
+ case "DATA_ACCESS_MODE_UNSPECIFIED":
+ case 0:
+ message.mongodbCompatibleDataAccessMode = 0;
+ break;
+ case "DATA_ACCESS_MODE_ENABLED":
+ case 1:
+ message.mongodbCompatibleDataAccessMode = 1;
+ break;
+ case "DATA_ACCESS_MODE_DISABLED":
+ case 2:
+ message.mongodbCompatibleDataAccessMode = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Database message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {google.firestore.admin.v1.Database} message Database
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Database.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.objects || options.defaults)
+ object.tags = {};
+ if (options.defaults) {
+ object.name = "";
+ object.uid = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.deleteTime = null;
+ object.locationId = "";
+ object.type = options.enums === String ? "DATABASE_TYPE_UNSPECIFIED" : 0;
+ object.concurrencyMode = options.enums === String ? "CONCURRENCY_MODE_UNSPECIFIED" : 0;
+ object.versionRetentionPeriod = null;
+ object.earliestVersionTime = null;
+ object.appEngineIntegrationMode = options.enums === String ? "APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED" : 0;
+ object.keyPrefix = "";
+ object.pointInTimeRecoveryEnablement = options.enums === String ? "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED" : 0;
+ object.deleteProtectionState = options.enums === String ? "DELETE_PROTECTION_STATE_UNSPECIFIED" : 0;
+ object.cmekConfig = null;
+ object.previousId = "";
+ object.sourceInfo = null;
+ object.databaseEdition = options.enums === String ? "DATABASE_EDITION_UNSPECIFIED" : 0;
+ object.realtimeUpdatesMode = options.enums === String ? "REALTIME_UPDATES_MODE_UNSPECIFIED" : 0;
+ object.firestoreDataAccessMode = options.enums === String ? "DATA_ACCESS_MODE_UNSPECIFIED" : 0;
+ object.mongodbCompatibleDataAccessMode = options.enums === String ? "DATA_ACCESS_MODE_UNSPECIFIED" : 0;
+ object.etag = "";
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ object.uid = message.uid;
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options, q + 1);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options, q + 1);
+ if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime"))
+ object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options, q + 1);
+ if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
+ object.locationId = message.locationId;
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = options.enums === String ? $root.google.firestore.admin.v1.Database.DatabaseType[message.type] === undefined ? message.type : $root.google.firestore.admin.v1.Database.DatabaseType[message.type] : message.type;
+ if (message.concurrencyMode != null && Object.hasOwnProperty.call(message, "concurrencyMode"))
+ object.concurrencyMode = options.enums === String ? $root.google.firestore.admin.v1.Database.ConcurrencyMode[message.concurrencyMode] === undefined ? message.concurrencyMode : $root.google.firestore.admin.v1.Database.ConcurrencyMode[message.concurrencyMode] : message.concurrencyMode;
+ if (message.versionRetentionPeriod != null && Object.hasOwnProperty.call(message, "versionRetentionPeriod"))
+ object.versionRetentionPeriod = $root.google.protobuf.Duration.toObject(message.versionRetentionPeriod, options, q + 1);
+ if (message.earliestVersionTime != null && Object.hasOwnProperty.call(message, "earliestVersionTime"))
+ object.earliestVersionTime = $root.google.protobuf.Timestamp.toObject(message.earliestVersionTime, options, q + 1);
+ if (message.appEngineIntegrationMode != null && Object.hasOwnProperty.call(message, "appEngineIntegrationMode"))
+ object.appEngineIntegrationMode = options.enums === String ? $root.google.firestore.admin.v1.Database.AppEngineIntegrationMode[message.appEngineIntegrationMode] === undefined ? message.appEngineIntegrationMode : $root.google.firestore.admin.v1.Database.AppEngineIntegrationMode[message.appEngineIntegrationMode] : message.appEngineIntegrationMode;
+ if (message.keyPrefix != null && Object.hasOwnProperty.call(message, "keyPrefix"))
+ object.keyPrefix = message.keyPrefix;
+ if (message.pointInTimeRecoveryEnablement != null && Object.hasOwnProperty.call(message, "pointInTimeRecoveryEnablement"))
+ object.pointInTimeRecoveryEnablement = options.enums === String ? $root.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement[message.pointInTimeRecoveryEnablement] === undefined ? message.pointInTimeRecoveryEnablement : $root.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement[message.pointInTimeRecoveryEnablement] : message.pointInTimeRecoveryEnablement;
+ if (message.deleteProtectionState != null && Object.hasOwnProperty.call(message, "deleteProtectionState"))
+ object.deleteProtectionState = options.enums === String ? $root.google.firestore.admin.v1.Database.DeleteProtectionState[message.deleteProtectionState] === undefined ? message.deleteProtectionState : $root.google.firestore.admin.v1.Database.DeleteProtectionState[message.deleteProtectionState] : message.deleteProtectionState;
+ if (message.cmekConfig != null && Object.hasOwnProperty.call(message, "cmekConfig"))
+ object.cmekConfig = $root.google.firestore.admin.v1.Database.CmekConfig.toObject(message.cmekConfig, options, q + 1);
+ if (message.previousId != null && Object.hasOwnProperty.call(message, "previousId"))
+ object.previousId = message.previousId;
+ if (message.sourceInfo != null && Object.hasOwnProperty.call(message, "sourceInfo"))
+ object.sourceInfo = $root.google.firestore.admin.v1.Database.SourceInfo.toObject(message.sourceInfo, options, q + 1);
+ if (message.databaseEdition != null && Object.hasOwnProperty.call(message, "databaseEdition"))
+ object.databaseEdition = options.enums === String ? $root.google.firestore.admin.v1.Database.DatabaseEdition[message.databaseEdition] === undefined ? message.databaseEdition : $root.google.firestore.admin.v1.Database.DatabaseEdition[message.databaseEdition] : message.databaseEdition;
+ var keys2;
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
+ object.tags = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.tags, keys2[j]);
+ object.tags[keys2[j]] = message.tags[keys2[j]];
+ }
+ }
+ if (message.freeTier != null && Object.hasOwnProperty.call(message, "freeTier")) {
+ object.freeTier = message.freeTier;
+ if (options.oneofs)
+ object._freeTier = "freeTier";
+ }
+ if (message.realtimeUpdatesMode != null && Object.hasOwnProperty.call(message, "realtimeUpdatesMode"))
+ object.realtimeUpdatesMode = options.enums === String ? $root.google.firestore.admin.v1.RealtimeUpdatesMode[message.realtimeUpdatesMode] === undefined ? message.realtimeUpdatesMode : $root.google.firestore.admin.v1.RealtimeUpdatesMode[message.realtimeUpdatesMode] : message.realtimeUpdatesMode;
+ if (message.firestoreDataAccessMode != null && Object.hasOwnProperty.call(message, "firestoreDataAccessMode"))
+ object.firestoreDataAccessMode = options.enums === String ? $root.google.firestore.admin.v1.Database.DataAccessMode[message.firestoreDataAccessMode] === undefined ? message.firestoreDataAccessMode : $root.google.firestore.admin.v1.Database.DataAccessMode[message.firestoreDataAccessMode] : message.firestoreDataAccessMode;
+ if (message.mongodbCompatibleDataAccessMode != null && Object.hasOwnProperty.call(message, "mongodbCompatibleDataAccessMode"))
+ object.mongodbCompatibleDataAccessMode = options.enums === String ? $root.google.firestore.admin.v1.Database.DataAccessMode[message.mongodbCompatibleDataAccessMode] === undefined ? message.mongodbCompatibleDataAccessMode : $root.google.firestore.admin.v1.Database.DataAccessMode[message.mongodbCompatibleDataAccessMode] : message.mongodbCompatibleDataAccessMode;
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ object.etag = message.etag;
+ return object;
+ };
+
+ /**
+ * Converts this Database to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Database.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Database
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Database.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database";
+ };
+
+ /**
+ * DatabaseType enum.
+ * @name google.firestore.admin.v1.Database.DatabaseType
+ * @enum {number}
+ * @property {number} DATABASE_TYPE_UNSPECIFIED=0 DATABASE_TYPE_UNSPECIFIED value
+ * @property {number} FIRESTORE_NATIVE=1 FIRESTORE_NATIVE value
+ * @property {number} DATASTORE_MODE=2 DATASTORE_MODE value
+ */
+ Database.DatabaseType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DATABASE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "FIRESTORE_NATIVE"] = 1;
+ values[valuesById[2] = "DATASTORE_MODE"] = 2;
+ return values;
+ })();
+
+ /**
+ * ConcurrencyMode enum.
+ * @name google.firestore.admin.v1.Database.ConcurrencyMode
+ * @enum {number}
+ * @property {number} CONCURRENCY_MODE_UNSPECIFIED=0 CONCURRENCY_MODE_UNSPECIFIED value
+ * @property {number} OPTIMISTIC=1 OPTIMISTIC value
+ * @property {number} PESSIMISTIC=2 PESSIMISTIC value
+ * @property {number} OPTIMISTIC_WITH_ENTITY_GROUPS=3 OPTIMISTIC_WITH_ENTITY_GROUPS value
+ */
+ Database.ConcurrencyMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CONCURRENCY_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "OPTIMISTIC"] = 1;
+ values[valuesById[2] = "PESSIMISTIC"] = 2;
+ values[valuesById[3] = "OPTIMISTIC_WITH_ENTITY_GROUPS"] = 3;
+ return values;
+ })();
+
+ /**
+ * PointInTimeRecoveryEnablement enum.
+ * @name google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement
+ * @enum {number}
+ * @property {number} POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED=0 POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED value
+ * @property {number} POINT_IN_TIME_RECOVERY_ENABLED=1 POINT_IN_TIME_RECOVERY_ENABLED value
+ * @property {number} POINT_IN_TIME_RECOVERY_DISABLED=2 POINT_IN_TIME_RECOVERY_DISABLED value
+ */
+ Database.PointInTimeRecoveryEnablement = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "POINT_IN_TIME_RECOVERY_ENABLED"] = 1;
+ values[valuesById[2] = "POINT_IN_TIME_RECOVERY_DISABLED"] = 2;
+ return values;
+ })();
+
+ /**
+ * AppEngineIntegrationMode enum.
+ * @name google.firestore.admin.v1.Database.AppEngineIntegrationMode
+ * @enum {number}
+ * @property {number} APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED=0 APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED value
+ * @property {number} ENABLED=1 ENABLED value
+ * @property {number} DISABLED=2 DISABLED value
+ */
+ Database.AppEngineIntegrationMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ENABLED"] = 1;
+ values[valuesById[2] = "DISABLED"] = 2;
+ return values;
+ })();
+
+ /**
+ * DeleteProtectionState enum.
+ * @name google.firestore.admin.v1.Database.DeleteProtectionState
+ * @enum {number}
+ * @property {number} DELETE_PROTECTION_STATE_UNSPECIFIED=0 DELETE_PROTECTION_STATE_UNSPECIFIED value
+ * @property {number} DELETE_PROTECTION_DISABLED=1 DELETE_PROTECTION_DISABLED value
+ * @property {number} DELETE_PROTECTION_ENABLED=2 DELETE_PROTECTION_ENABLED value
+ */
+ Database.DeleteProtectionState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DELETE_PROTECTION_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DELETE_PROTECTION_DISABLED"] = 1;
+ values[valuesById[2] = "DELETE_PROTECTION_ENABLED"] = 2;
+ return values;
+ })();
+
+ Database.CmekConfig = (function() {
+
+ /**
+ * Properties of a CmekConfig.
+ * @memberof google.firestore.admin.v1.Database
+ * @interface ICmekConfig
+ * @property {string|null} [kmsKeyName] CmekConfig kmsKeyName
+ * @property {Array.|null} [activeKeyVersion] CmekConfig activeKeyVersion
+ */
+
+ /**
+ * Constructs a new CmekConfig.
+ * @memberof google.firestore.admin.v1.Database
+ * @classdesc Represents a CmekConfig.
+ * @implements ICmekConfig
+ * @constructor
+ * @param {google.firestore.admin.v1.Database.ICmekConfig=} [properties] Properties to set
+ */
+ function CmekConfig(properties) {
+ this.activeKeyVersion = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CmekConfig kmsKeyName.
+ * @member {string} kmsKeyName
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @instance
+ */
+ CmekConfig.prototype.kmsKeyName = "";
+
+ /**
+ * CmekConfig activeKeyVersion.
+ * @member {Array.} activeKeyVersion
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @instance
+ */
+ CmekConfig.prototype.activeKeyVersion = $util.emptyArray;
+
+ /**
+ * Creates a new CmekConfig instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.ICmekConfig=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database.CmekConfig} CmekConfig instance
+ */
+ CmekConfig.create = function create(properties) {
+ return new CmekConfig(properties);
+ };
+
+ /**
+ * Encodes the specified CmekConfig message. Does not implicitly {@link google.firestore.admin.v1.Database.CmekConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.ICmekConfig} message CmekConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CmekConfig.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kmsKeyName);
+ if (message.activeKeyVersion != null && message.activeKeyVersion.length)
+ for (var i = 0; i < message.activeKeyVersion.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.activeKeyVersion[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CmekConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.CmekConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.ICmekConfig} message CmekConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CmekConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CmekConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database.CmekConfig} CmekConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CmekConfig.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database.CmekConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.kmsKeyName = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.activeKeyVersion && message.activeKeyVersion.length))
+ message.activeKeyVersion = [];
+ message.activeKeyVersion.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CmekConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database.CmekConfig} CmekConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CmekConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CmekConfig message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CmekConfig.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ if (!$util.isString(message.kmsKeyName))
+ return "kmsKeyName: string expected";
+ if (message.activeKeyVersion != null && Object.hasOwnProperty.call(message, "activeKeyVersion")) {
+ if (!Array.isArray(message.activeKeyVersion))
+ return "activeKeyVersion: array expected";
+ for (var i = 0; i < message.activeKeyVersion.length; ++i)
+ if (!$util.isString(message.activeKeyVersion[i]))
+ return "activeKeyVersion: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CmekConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database.CmekConfig} CmekConfig
+ */
+ CmekConfig.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database.CmekConfig)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Database.CmekConfig: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Database.CmekConfig();
+ if (object.kmsKeyName != null)
+ message.kmsKeyName = String(object.kmsKeyName);
+ if (object.activeKeyVersion) {
+ if (!Array.isArray(object.activeKeyVersion))
+ throw TypeError(".google.firestore.admin.v1.Database.CmekConfig.activeKeyVersion: array expected");
+ message.activeKeyVersion = [];
+ for (var i = 0; i < object.activeKeyVersion.length; ++i)
+ message.activeKeyVersion[i] = String(object.activeKeyVersion[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CmekConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.CmekConfig} message CmekConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CmekConfig.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.activeKeyVersion = [];
+ if (options.defaults)
+ object.kmsKeyName = "";
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ object.kmsKeyName = message.kmsKeyName;
+ if (message.activeKeyVersion && message.activeKeyVersion.length) {
+ object.activeKeyVersion = [];
+ for (var j = 0; j < message.activeKeyVersion.length; ++j)
+ object.activeKeyVersion[j] = message.activeKeyVersion[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CmekConfig to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CmekConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CmekConfig
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database.CmekConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CmekConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database.CmekConfig";
+ };
+
+ return CmekConfig;
+ })();
+
+ Database.SourceInfo = (function() {
+
+ /**
+ * Properties of a SourceInfo.
+ * @memberof google.firestore.admin.v1.Database
+ * @interface ISourceInfo
+ * @property {google.firestore.admin.v1.Database.SourceInfo.IBackupSource|null} [backup] SourceInfo backup
+ * @property {string|null} [operation] SourceInfo operation
+ */
+
+ /**
+ * Constructs a new SourceInfo.
+ * @memberof google.firestore.admin.v1.Database
+ * @classdesc Represents a SourceInfo.
+ * @implements ISourceInfo
+ * @constructor
+ * @param {google.firestore.admin.v1.Database.ISourceInfo=} [properties] Properties to set
+ */
+ function SourceInfo(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SourceInfo backup.
+ * @member {google.firestore.admin.v1.Database.SourceInfo.IBackupSource|null|undefined} backup
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @instance
+ */
+ SourceInfo.prototype.backup = null;
+
+ /**
+ * SourceInfo operation.
+ * @member {string} operation
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @instance
+ */
+ SourceInfo.prototype.operation = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * SourceInfo source.
+ * @member {"backup"|undefined} source
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @instance
+ */
+ Object.defineProperty(SourceInfo.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["backup"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new SourceInfo instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {google.firestore.admin.v1.Database.ISourceInfo=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database.SourceInfo} SourceInfo instance
+ */
+ SourceInfo.create = function create(properties) {
+ return new SourceInfo(properties);
+ };
+
+ /**
+ * Encodes the specified SourceInfo message. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {google.firestore.admin.v1.Database.ISourceInfo} message SourceInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceInfo.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource.encode(message.backup, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.operation != null && Object.hasOwnProperty.call(message, "operation"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.operation);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SourceInfo message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {google.firestore.admin.v1.Database.ISourceInfo} message SourceInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SourceInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database.SourceInfo} SourceInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceInfo.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database.SourceInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.backup = $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.operation = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SourceInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database.SourceInfo} SourceInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SourceInfo message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SourceInfo.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup")) {
+ properties.source = 1;
+ {
+ var error = $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource.verify(message.backup, long + 1);
+ if (error)
+ return "backup." + error;
+ }
+ }
+ if (message.operation != null && Object.hasOwnProperty.call(message, "operation"))
+ if (!$util.isString(message.operation))
+ return "operation: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SourceInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database.SourceInfo} SourceInfo
+ */
+ SourceInfo.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database.SourceInfo)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Database.SourceInfo: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Database.SourceInfo();
+ if (object.backup != null) {
+ if (!$util.isObject(object.backup))
+ throw TypeError(".google.firestore.admin.v1.Database.SourceInfo.backup: object expected");
+ message.backup = $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource.fromObject(object.backup, long + 1);
+ }
+ if (object.operation != null)
+ message.operation = String(object.operation);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SourceInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {google.firestore.admin.v1.Database.SourceInfo} message SourceInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SourceInfo.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.operation = "";
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup")) {
+ object.backup = $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource.toObject(message.backup, options, q + 1);
+ if (options.oneofs)
+ object.source = "backup";
+ }
+ if (message.operation != null && Object.hasOwnProperty.call(message, "operation"))
+ object.operation = message.operation;
+ return object;
+ };
+
+ /**
+ * Converts this SourceInfo to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SourceInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SourceInfo
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SourceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database.SourceInfo";
+ };
+
+ SourceInfo.BackupSource = (function() {
+
+ /**
+ * Properties of a BackupSource.
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @interface IBackupSource
+ * @property {string|null} [backup] BackupSource backup
+ */
+
+ /**
+ * Constructs a new BackupSource.
+ * @memberof google.firestore.admin.v1.Database.SourceInfo
+ * @classdesc Represents a BackupSource.
+ * @implements IBackupSource
+ * @constructor
+ * @param {google.firestore.admin.v1.Database.SourceInfo.IBackupSource=} [properties] Properties to set
+ */
+ function BackupSource(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * BackupSource backup.
+ * @member {string} backup
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @instance
+ */
+ BackupSource.prototype.backup = "";
+
+ /**
+ * Creates a new BackupSource instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {google.firestore.admin.v1.Database.SourceInfo.IBackupSource=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database.SourceInfo.BackupSource} BackupSource instance
+ */
+ BackupSource.create = function create(properties) {
+ return new BackupSource(properties);
+ };
+
+ /**
+ * Encodes the specified BackupSource message. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.BackupSource.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {google.firestore.admin.v1.Database.SourceInfo.IBackupSource} message BackupSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BackupSource.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.backup);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BackupSource message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.SourceInfo.BackupSource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {google.firestore.admin.v1.Database.SourceInfo.IBackupSource} message BackupSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BackupSource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a BackupSource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database.SourceInfo.BackupSource} BackupSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BackupSource.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.backup = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BackupSource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database.SourceInfo.BackupSource} BackupSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BackupSource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BackupSource message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BackupSource.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ if (!$util.isString(message.backup))
+ return "backup: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a BackupSource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database.SourceInfo.BackupSource} BackupSource
+ */
+ BackupSource.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Database.SourceInfo.BackupSource: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Database.SourceInfo.BackupSource();
+ if (object.backup != null)
+ message.backup = String(object.backup);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BackupSource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {google.firestore.admin.v1.Database.SourceInfo.BackupSource} message BackupSource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BackupSource.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.backup = "";
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ object.backup = message.backup;
+ return object;
+ };
+
+ /**
+ * Converts this BackupSource to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BackupSource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BackupSource
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database.SourceInfo.BackupSource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BackupSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database.SourceInfo.BackupSource";
+ };
+
+ return BackupSource;
+ })();
+
+ return SourceInfo;
+ })();
+
+ Database.EncryptionConfig = (function() {
+
+ /**
+ * Properties of an EncryptionConfig.
+ * @memberof google.firestore.admin.v1.Database
+ * @interface IEncryptionConfig
+ * @property {google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions|null} [googleDefaultEncryption] EncryptionConfig googleDefaultEncryption
+ * @property {google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions|null} [useSourceEncryption] EncryptionConfig useSourceEncryption
+ * @property {google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions|null} [customerManagedEncryption] EncryptionConfig customerManagedEncryption
+ */
+
+ /**
+ * Constructs a new EncryptionConfig.
+ * @memberof google.firestore.admin.v1.Database
+ * @classdesc Represents an EncryptionConfig.
+ * @implements IEncryptionConfig
+ * @constructor
+ * @param {google.firestore.admin.v1.Database.IEncryptionConfig=} [properties] Properties to set
+ */
+ function EncryptionConfig(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * EncryptionConfig googleDefaultEncryption.
+ * @member {google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions|null|undefined} googleDefaultEncryption
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @instance
+ */
+ EncryptionConfig.prototype.googleDefaultEncryption = null;
+
+ /**
+ * EncryptionConfig useSourceEncryption.
+ * @member {google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions|null|undefined} useSourceEncryption
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @instance
+ */
+ EncryptionConfig.prototype.useSourceEncryption = null;
+
+ /**
+ * EncryptionConfig customerManagedEncryption.
+ * @member {google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions|null|undefined} customerManagedEncryption
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @instance
+ */
+ EncryptionConfig.prototype.customerManagedEncryption = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * EncryptionConfig encryptionType.
+ * @member {"googleDefaultEncryption"|"useSourceEncryption"|"customerManagedEncryption"|undefined} encryptionType
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @instance
+ */
+ Object.defineProperty(EncryptionConfig.prototype, "encryptionType", {
+ get: $util.oneOfGetter($oneOfFields = ["googleDefaultEncryption", "useSourceEncryption", "customerManagedEncryption"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new EncryptionConfig instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.IEncryptionConfig=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig} EncryptionConfig instance
+ */
+ EncryptionConfig.create = function create(properties) {
+ return new EncryptionConfig(properties);
+ };
+
+ /**
+ * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.IEncryptionConfig} message EncryptionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfig.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.googleDefaultEncryption != null && Object.hasOwnProperty.call(message, "googleDefaultEncryption"))
+ $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.encode(message.googleDefaultEncryption, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.useSourceEncryption != null && Object.hasOwnProperty.call(message, "useSourceEncryption"))
+ $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.encode(message.useSourceEncryption, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.customerManagedEncryption != null && Object.hasOwnProperty.call(message, "customerManagedEncryption"))
+ $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.encode(message.customerManagedEncryption, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.IEncryptionConfig} message EncryptionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig} EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfig.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database.EncryptionConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.googleDefaultEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.useSourceEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.customerManagedEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig} EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EncryptionConfig message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EncryptionConfig.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.googleDefaultEncryption != null && Object.hasOwnProperty.call(message, "googleDefaultEncryption")) {
+ properties.encryptionType = 1;
+ {
+ var error = $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.verify(message.googleDefaultEncryption, long + 1);
+ if (error)
+ return "googleDefaultEncryption." + error;
+ }
+ }
+ if (message.useSourceEncryption != null && Object.hasOwnProperty.call(message, "useSourceEncryption")) {
+ if (properties.encryptionType === 1)
+ return "encryptionType: multiple values";
+ properties.encryptionType = 1;
+ {
+ var error = $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.verify(message.useSourceEncryption, long + 1);
+ if (error)
+ return "useSourceEncryption." + error;
+ }
+ }
+ if (message.customerManagedEncryption != null && Object.hasOwnProperty.call(message, "customerManagedEncryption")) {
+ if (properties.encryptionType === 1)
+ return "encryptionType: multiple values";
+ properties.encryptionType = 1;
+ {
+ var error = $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.verify(message.customerManagedEncryption, long + 1);
+ if (error)
+ return "customerManagedEncryption." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig} EncryptionConfig
+ */
+ EncryptionConfig.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database.EncryptionConfig)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Database.EncryptionConfig();
+ if (object.googleDefaultEncryption != null) {
+ if (!$util.isObject(object.googleDefaultEncryption))
+ throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig.googleDefaultEncryption: object expected");
+ message.googleDefaultEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.fromObject(object.googleDefaultEncryption, long + 1);
+ }
+ if (object.useSourceEncryption != null) {
+ if (!$util.isObject(object.useSourceEncryption))
+ throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig.useSourceEncryption: object expected");
+ message.useSourceEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.fromObject(object.useSourceEncryption, long + 1);
+ }
+ if (object.customerManagedEncryption != null) {
+ if (!$util.isObject(object.customerManagedEncryption))
+ throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig.customerManagedEncryption: object expected");
+ message.customerManagedEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.fromObject(object.customerManagedEncryption, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig} message EncryptionConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EncryptionConfig.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (message.googleDefaultEncryption != null && Object.hasOwnProperty.call(message, "googleDefaultEncryption")) {
+ object.googleDefaultEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.toObject(message.googleDefaultEncryption, options, q + 1);
+ if (options.oneofs)
+ object.encryptionType = "googleDefaultEncryption";
+ }
+ if (message.useSourceEncryption != null && Object.hasOwnProperty.call(message, "useSourceEncryption")) {
+ object.useSourceEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.toObject(message.useSourceEncryption, options, q + 1);
+ if (options.oneofs)
+ object.encryptionType = "useSourceEncryption";
+ }
+ if (message.customerManagedEncryption != null && Object.hasOwnProperty.call(message, "customerManagedEncryption")) {
+ object.customerManagedEncryption = $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.toObject(message.customerManagedEncryption, options, q + 1);
+ if (options.oneofs)
+ object.encryptionType = "customerManagedEncryption";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this EncryptionConfig to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EncryptionConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EncryptionConfig
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database.EncryptionConfig";
+ };
+
+ EncryptionConfig.GoogleDefaultEncryptionOptions = (function() {
+
+ /**
+ * Properties of a GoogleDefaultEncryptionOptions.
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @interface IGoogleDefaultEncryptionOptions
+ */
+
+ /**
+ * Constructs a new GoogleDefaultEncryptionOptions.
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @classdesc Represents a GoogleDefaultEncryptionOptions.
+ * @implements IGoogleDefaultEncryptionOptions
+ * @constructor
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions=} [properties] Properties to set
+ */
+ function GoogleDefaultEncryptionOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new GoogleDefaultEncryptionOptions instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions} GoogleDefaultEncryptionOptions instance
+ */
+ GoogleDefaultEncryptionOptions.create = function create(properties) {
+ return new GoogleDefaultEncryptionOptions(properties);
+ };
+
+ /**
+ * Encodes the specified GoogleDefaultEncryptionOptions message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions} message GoogleDefaultEncryptionOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoogleDefaultEncryptionOptions.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GoogleDefaultEncryptionOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.IGoogleDefaultEncryptionOptions} message GoogleDefaultEncryptionOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoogleDefaultEncryptionOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GoogleDefaultEncryptionOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions} GoogleDefaultEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoogleDefaultEncryptionOptions.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GoogleDefaultEncryptionOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions} GoogleDefaultEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoogleDefaultEncryptionOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GoogleDefaultEncryptionOptions message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GoogleDefaultEncryptionOptions.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ return null;
+ };
+
+ /**
+ * Creates a GoogleDefaultEncryptionOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions} GoogleDefaultEncryptionOptions
+ */
+ GoogleDefaultEncryptionOptions.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions)
+ return object;
+ return new $root.google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions();
+ };
+
+ /**
+ * Creates a plain object from a GoogleDefaultEncryptionOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions} message GoogleDefaultEncryptionOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GoogleDefaultEncryptionOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this GoogleDefaultEncryptionOptions to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GoogleDefaultEncryptionOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GoogleDefaultEncryptionOptions
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GoogleDefaultEncryptionOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions";
+ };
+
+ return GoogleDefaultEncryptionOptions;
+ })();
+
+ EncryptionConfig.SourceEncryptionOptions = (function() {
+
+ /**
+ * Properties of a SourceEncryptionOptions.
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @interface ISourceEncryptionOptions
+ */
+
+ /**
+ * Constructs a new SourceEncryptionOptions.
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @classdesc Represents a SourceEncryptionOptions.
+ * @implements ISourceEncryptionOptions
+ * @constructor
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions=} [properties] Properties to set
+ */
+ function SourceEncryptionOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new SourceEncryptionOptions instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions} SourceEncryptionOptions instance
+ */
+ SourceEncryptionOptions.create = function create(properties) {
+ return new SourceEncryptionOptions(properties);
+ };
+
+ /**
+ * Encodes the specified SourceEncryptionOptions message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions} message SourceEncryptionOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceEncryptionOptions.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SourceEncryptionOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ISourceEncryptionOptions} message SourceEncryptionOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceEncryptionOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SourceEncryptionOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions} SourceEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceEncryptionOptions.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SourceEncryptionOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions} SourceEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceEncryptionOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SourceEncryptionOptions message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SourceEncryptionOptions.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ return null;
+ };
+
+ /**
+ * Creates a SourceEncryptionOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions} SourceEncryptionOptions
+ */
+ SourceEncryptionOptions.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions)
+ return object;
+ return new $root.google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions();
+ };
+
+ /**
+ * Creates a plain object from a SourceEncryptionOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions} message SourceEncryptionOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SourceEncryptionOptions.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this SourceEncryptionOptions to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SourceEncryptionOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SourceEncryptionOptions
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SourceEncryptionOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions";
+ };
+
+ return SourceEncryptionOptions;
+ })();
+
+ EncryptionConfig.CustomerManagedEncryptionOptions = (function() {
+
+ /**
+ * Properties of a CustomerManagedEncryptionOptions.
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @interface ICustomerManagedEncryptionOptions
+ * @property {string|null} [kmsKeyName] CustomerManagedEncryptionOptions kmsKeyName
+ */
+
+ /**
+ * Constructs a new CustomerManagedEncryptionOptions.
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig
+ * @classdesc Represents a CustomerManagedEncryptionOptions.
+ * @implements ICustomerManagedEncryptionOptions
+ * @constructor
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions=} [properties] Properties to set
+ */
+ function CustomerManagedEncryptionOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CustomerManagedEncryptionOptions kmsKeyName.
+ * @member {string} kmsKeyName
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @instance
+ */
+ CustomerManagedEncryptionOptions.prototype.kmsKeyName = "";
+
+ /**
+ * Creates a new CustomerManagedEncryptionOptions instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions} CustomerManagedEncryptionOptions instance
+ */
+ CustomerManagedEncryptionOptions.create = function create(properties) {
+ return new CustomerManagedEncryptionOptions(properties);
+ };
+
+ /**
+ * Encodes the specified CustomerManagedEncryptionOptions message. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions} message CustomerManagedEncryptionOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomerManagedEncryptionOptions.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kmsKeyName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomerManagedEncryptionOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.ICustomerManagedEncryptionOptions} message CustomerManagedEncryptionOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomerManagedEncryptionOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomerManagedEncryptionOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions} CustomerManagedEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomerManagedEncryptionOptions.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.kmsKeyName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomerManagedEncryptionOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions} CustomerManagedEncryptionOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomerManagedEncryptionOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomerManagedEncryptionOptions message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomerManagedEncryptionOptions.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ if (!$util.isString(message.kmsKeyName))
+ return "kmsKeyName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CustomerManagedEncryptionOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions} CustomerManagedEncryptionOptions
+ */
+ CustomerManagedEncryptionOptions.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions();
+ if (object.kmsKeyName != null)
+ message.kmsKeyName = String(object.kmsKeyName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomerManagedEncryptionOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions} message CustomerManagedEncryptionOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomerManagedEncryptionOptions.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.kmsKeyName = "";
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ object.kmsKeyName = message.kmsKeyName;
+ return object;
+ };
+
+ /**
+ * Converts this CustomerManagedEncryptionOptions to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomerManagedEncryptionOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomerManagedEncryptionOptions
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomerManagedEncryptionOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions";
+ };
+
+ return CustomerManagedEncryptionOptions;
+ })();
+
+ return EncryptionConfig;
+ })();
+
+ /**
+ * DatabaseEdition enum.
+ * @name google.firestore.admin.v1.Database.DatabaseEdition
+ * @enum {number}
+ * @property {number} DATABASE_EDITION_UNSPECIFIED=0 DATABASE_EDITION_UNSPECIFIED value
+ * @property {number} STANDARD=1 STANDARD value
+ * @property {number} ENTERPRISE=2 ENTERPRISE value
+ */
+ Database.DatabaseEdition = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DATABASE_EDITION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "STANDARD"] = 1;
+ values[valuesById[2] = "ENTERPRISE"] = 2;
+ return values;
+ })();
+
+ /**
+ * DataAccessMode enum.
+ * @name google.firestore.admin.v1.Database.DataAccessMode
+ * @enum {number}
+ * @property {number} DATA_ACCESS_MODE_UNSPECIFIED=0 DATA_ACCESS_MODE_UNSPECIFIED value
+ * @property {number} DATA_ACCESS_MODE_ENABLED=1 DATA_ACCESS_MODE_ENABLED value
+ * @property {number} DATA_ACCESS_MODE_DISABLED=2 DATA_ACCESS_MODE_DISABLED value
+ */
+ Database.DataAccessMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DATA_ACCESS_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DATA_ACCESS_MODE_ENABLED"] = 1;
+ values[valuesById[2] = "DATA_ACCESS_MODE_DISABLED"] = 2;
+ return values;
+ })();
+
+ return Database;
+ })();
+
+ /**
+ * RealtimeUpdatesMode enum.
+ * @name google.firestore.admin.v1.RealtimeUpdatesMode
+ * @enum {number}
+ * @property {number} REALTIME_UPDATES_MODE_UNSPECIFIED=0 REALTIME_UPDATES_MODE_UNSPECIFIED value
+ * @property {number} REALTIME_UPDATES_MODE_ENABLED=1 REALTIME_UPDATES_MODE_ENABLED value
+ * @property {number} REALTIME_UPDATES_MODE_DISABLED=2 REALTIME_UPDATES_MODE_DISABLED value
+ */
+ v1.RealtimeUpdatesMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "REALTIME_UPDATES_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "REALTIME_UPDATES_MODE_ENABLED"] = 1;
+ values[valuesById[2] = "REALTIME_UPDATES_MODE_DISABLED"] = 2;
+ return values;
+ })();
+
+ v1.Field = (function() {
+
+ /**
+ * Properties of a Field.
+ * @memberof google.firestore.admin.v1
+ * @interface IField
+ * @property {string|null} [name] Field name
+ * @property {google.firestore.admin.v1.Field.IIndexConfig|null} [indexConfig] Field indexConfig
+ * @property {google.firestore.admin.v1.Field.ITtlConfig|null} [ttlConfig] Field ttlConfig
+ */
+
+ /**
+ * Constructs a new Field.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a Field.
+ * @implements IField
+ * @constructor
+ * @param {google.firestore.admin.v1.IField=} [properties] Properties to set
+ */
+ function Field(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Field name.
+ * @member {string} name
+ * @memberof google.firestore.admin.v1.Field
+ * @instance
+ */
+ Field.prototype.name = "";
+
+ /**
+ * Field indexConfig.
+ * @member {google.firestore.admin.v1.Field.IIndexConfig|null|undefined} indexConfig
+ * @memberof google.firestore.admin.v1.Field
+ * @instance
+ */
+ Field.prototype.indexConfig = null;
+
+ /**
+ * Field ttlConfig.
+ * @member {google.firestore.admin.v1.Field.ITtlConfig|null|undefined} ttlConfig
+ * @memberof google.firestore.admin.v1.Field
+ * @instance
+ */
+ Field.prototype.ttlConfig = null;
+
+ /**
+ * Creates a new Field instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {google.firestore.admin.v1.IField=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Field} Field instance
+ */
+ Field.create = function create(properties) {
+ return new Field(properties);
+ };
+
+ /**
+ * Encodes the specified Field message. Does not implicitly {@link google.firestore.admin.v1.Field.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {google.firestore.admin.v1.IField} message Field message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Field.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.indexConfig != null && Object.hasOwnProperty.call(message, "indexConfig"))
+ $root.google.firestore.admin.v1.Field.IndexConfig.encode(message.indexConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.ttlConfig != null && Object.hasOwnProperty.call(message, "ttlConfig"))
+ $root.google.firestore.admin.v1.Field.TtlConfig.encode(message.ttlConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Field message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Field.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {google.firestore.admin.v1.IField} message Field message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Field.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Field message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Field} Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Field.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Field();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.indexConfig = $root.google.firestore.admin.v1.Field.IndexConfig.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.ttlConfig = $root.google.firestore.admin.v1.Field.TtlConfig.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Field message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Field} Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Field.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Field message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Field.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.indexConfig != null && Object.hasOwnProperty.call(message, "indexConfig")) {
+ var error = $root.google.firestore.admin.v1.Field.IndexConfig.verify(message.indexConfig, long + 1);
+ if (error)
+ return "indexConfig." + error;
+ }
+ if (message.ttlConfig != null && Object.hasOwnProperty.call(message, "ttlConfig")) {
+ var error = $root.google.firestore.admin.v1.Field.TtlConfig.verify(message.ttlConfig, long + 1);
+ if (error)
+ return "ttlConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Field message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Field} Field
+ */
+ Field.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Field)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Field: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Field();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.indexConfig != null) {
+ if (!$util.isObject(object.indexConfig))
+ throw TypeError(".google.firestore.admin.v1.Field.indexConfig: object expected");
+ message.indexConfig = $root.google.firestore.admin.v1.Field.IndexConfig.fromObject(object.indexConfig, long + 1);
+ }
+ if (object.ttlConfig != null) {
+ if (!$util.isObject(object.ttlConfig))
+ throw TypeError(".google.firestore.admin.v1.Field.ttlConfig: object expected");
+ message.ttlConfig = $root.google.firestore.admin.v1.Field.TtlConfig.fromObject(object.ttlConfig, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Field message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {google.firestore.admin.v1.Field} message Field
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Field.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.indexConfig = null;
+ object.ttlConfig = null;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.indexConfig != null && Object.hasOwnProperty.call(message, "indexConfig"))
+ object.indexConfig = $root.google.firestore.admin.v1.Field.IndexConfig.toObject(message.indexConfig, options, q + 1);
+ if (message.ttlConfig != null && Object.hasOwnProperty.call(message, "ttlConfig"))
+ object.ttlConfig = $root.google.firestore.admin.v1.Field.TtlConfig.toObject(message.ttlConfig, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this Field to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Field
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Field.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Field
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Field
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Field";
+ };
+
+ Field.IndexConfig = (function() {
+
+ /**
+ * Properties of an IndexConfig.
+ * @memberof google.firestore.admin.v1.Field
+ * @interface IIndexConfig
+ * @property {Array.|null} [indexes] IndexConfig indexes
+ * @property {boolean|null} [usesAncestorConfig] IndexConfig usesAncestorConfig
+ * @property {string|null} [ancestorField] IndexConfig ancestorField
+ * @property {boolean|null} [reverting] IndexConfig reverting
+ */
+
+ /**
+ * Constructs a new IndexConfig.
+ * @memberof google.firestore.admin.v1.Field
+ * @classdesc Represents an IndexConfig.
+ * @implements IIndexConfig
+ * @constructor
+ * @param {google.firestore.admin.v1.Field.IIndexConfig=} [properties] Properties to set
+ */
+ function IndexConfig(properties) {
+ this.indexes = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * IndexConfig indexes.
+ * @member {Array.} indexes
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @instance
+ */
+ IndexConfig.prototype.indexes = $util.emptyArray;
+
+ /**
+ * IndexConfig usesAncestorConfig.
+ * @member {boolean} usesAncestorConfig
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @instance
+ */
+ IndexConfig.prototype.usesAncestorConfig = false;
+
+ /**
+ * IndexConfig ancestorField.
+ * @member {string} ancestorField
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @instance
+ */
+ IndexConfig.prototype.ancestorField = "";
+
+ /**
+ * IndexConfig reverting.
+ * @member {boolean} reverting
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @instance
+ */
+ IndexConfig.prototype.reverting = false;
+
+ /**
+ * Creates a new IndexConfig instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.IIndexConfig=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Field.IndexConfig} IndexConfig instance
+ */
+ IndexConfig.create = function create(properties) {
+ return new IndexConfig(properties);
+ };
+
+ /**
+ * Encodes the specified IndexConfig message. Does not implicitly {@link google.firestore.admin.v1.Field.IndexConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.IIndexConfig} message IndexConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IndexConfig.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.indexes != null && message.indexes.length)
+ for (var i = 0; i < message.indexes.length; ++i)
+ $root.google.firestore.admin.v1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.usesAncestorConfig != null && Object.hasOwnProperty.call(message, "usesAncestorConfig"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.usesAncestorConfig);
+ if (message.ancestorField != null && Object.hasOwnProperty.call(message, "ancestorField"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.ancestorField);
+ if (message.reverting != null && Object.hasOwnProperty.call(message, "reverting"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.reverting);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IndexConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Field.IndexConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.IIndexConfig} message IndexConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IndexConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an IndexConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Field.IndexConfig} IndexConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IndexConfig.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Field.IndexConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.indexes && message.indexes.length))
+ message.indexes = [];
+ message.indexes.push($root.google.firestore.admin.v1.Index.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.usesAncestorConfig = reader.bool();
+ break;
+ }
+ case 3: {
+ message.ancestorField = reader.string();
+ break;
+ }
+ case 4: {
+ message.reverting = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IndexConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Field.IndexConfig} IndexConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IndexConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IndexConfig message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IndexConfig.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.indexes != null && Object.hasOwnProperty.call(message, "indexes")) {
+ if (!Array.isArray(message.indexes))
+ return "indexes: array expected";
+ for (var i = 0; i < message.indexes.length; ++i) {
+ var error = $root.google.firestore.admin.v1.Index.verify(message.indexes[i], long + 1);
+ if (error)
+ return "indexes." + error;
+ }
+ }
+ if (message.usesAncestorConfig != null && Object.hasOwnProperty.call(message, "usesAncestorConfig"))
+ if (typeof message.usesAncestorConfig !== "boolean")
+ return "usesAncestorConfig: boolean expected";
+ if (message.ancestorField != null && Object.hasOwnProperty.call(message, "ancestorField"))
+ if (!$util.isString(message.ancestorField))
+ return "ancestorField: string expected";
+ if (message.reverting != null && Object.hasOwnProperty.call(message, "reverting"))
+ if (typeof message.reverting !== "boolean")
+ return "reverting: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an IndexConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Field.IndexConfig} IndexConfig
+ */
+ IndexConfig.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Field.IndexConfig)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Field.IndexConfig: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Field.IndexConfig();
+ if (object.indexes) {
+ if (!Array.isArray(object.indexes))
+ throw TypeError(".google.firestore.admin.v1.Field.IndexConfig.indexes: array expected");
+ message.indexes = [];
+ for (var i = 0; i < object.indexes.length; ++i) {
+ if (!$util.isObject(object.indexes[i]))
+ throw TypeError(".google.firestore.admin.v1.Field.IndexConfig.indexes: object expected");
+ message.indexes[i] = $root.google.firestore.admin.v1.Index.fromObject(object.indexes[i], long + 1);
+ }
+ }
+ if (object.usesAncestorConfig != null)
+ message.usesAncestorConfig = Boolean(object.usesAncestorConfig);
+ if (object.ancestorField != null)
+ message.ancestorField = String(object.ancestorField);
+ if (object.reverting != null)
+ message.reverting = Boolean(object.reverting);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an IndexConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.IndexConfig} message IndexConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IndexConfig.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.indexes = [];
+ if (options.defaults) {
+ object.usesAncestorConfig = false;
+ object.ancestorField = "";
+ object.reverting = false;
+ }
+ if (message.indexes && message.indexes.length) {
+ object.indexes = [];
+ for (var j = 0; j < message.indexes.length; ++j)
+ object.indexes[j] = $root.google.firestore.admin.v1.Index.toObject(message.indexes[j], options, q + 1);
+ }
+ if (message.usesAncestorConfig != null && Object.hasOwnProperty.call(message, "usesAncestorConfig"))
+ object.usesAncestorConfig = message.usesAncestorConfig;
+ if (message.ancestorField != null && Object.hasOwnProperty.call(message, "ancestorField"))
+ object.ancestorField = message.ancestorField;
+ if (message.reverting != null && Object.hasOwnProperty.call(message, "reverting"))
+ object.reverting = message.reverting;
+ return object;
+ };
+
+ /**
+ * Converts this IndexConfig to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IndexConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IndexConfig
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Field.IndexConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IndexConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Field.IndexConfig";
+ };
+
+ return IndexConfig;
+ })();
+
+ Field.TtlConfig = (function() {
+
+ /**
+ * Properties of a TtlConfig.
+ * @memberof google.firestore.admin.v1.Field
+ * @interface ITtlConfig
+ * @property {google.firestore.admin.v1.Field.TtlConfig.State|null} [state] TtlConfig state
+ * @property {google.protobuf.IDuration|null} [expirationOffset] TtlConfig expirationOffset
+ */
+
+ /**
+ * Constructs a new TtlConfig.
+ * @memberof google.firestore.admin.v1.Field
+ * @classdesc Represents a TtlConfig.
+ * @implements ITtlConfig
+ * @constructor
+ * @param {google.firestore.admin.v1.Field.ITtlConfig=} [properties] Properties to set
+ */
+ function TtlConfig(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * TtlConfig state.
+ * @member {google.firestore.admin.v1.Field.TtlConfig.State} state
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @instance
+ */
+ TtlConfig.prototype.state = 0;
+
+ /**
+ * TtlConfig expirationOffset.
+ * @member {google.protobuf.IDuration|null|undefined} expirationOffset
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @instance
+ */
+ TtlConfig.prototype.expirationOffset = null;
+
+ /**
+ * Creates a new TtlConfig instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.ITtlConfig=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Field.TtlConfig} TtlConfig instance
+ */
+ TtlConfig.create = function create(properties) {
+ return new TtlConfig(properties);
+ };
+
+ /**
+ * Encodes the specified TtlConfig message. Does not implicitly {@link google.firestore.admin.v1.Field.TtlConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.ITtlConfig} message TtlConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TtlConfig.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state);
+ if (message.expirationOffset != null && Object.hasOwnProperty.call(message, "expirationOffset"))
+ $root.google.protobuf.Duration.encode(message.expirationOffset, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TtlConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Field.TtlConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.ITtlConfig} message TtlConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TtlConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a TtlConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Field.TtlConfig} TtlConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TtlConfig.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Field.TtlConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.state = reader.int32();
+ break;
+ }
+ case 3: {
+ message.expirationOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TtlConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Field.TtlConfig} TtlConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TtlConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TtlConfig message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TtlConfig.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.expirationOffset != null && Object.hasOwnProperty.call(message, "expirationOffset")) {
+ var error = $root.google.protobuf.Duration.verify(message.expirationOffset, long + 1);
+ if (error)
+ return "expirationOffset." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TtlConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Field.TtlConfig} TtlConfig
+ */
+ TtlConfig.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Field.TtlConfig)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Field.TtlConfig: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Field.TtlConfig();
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "ACTIVE":
+ case 2:
+ message.state = 2;
+ break;
+ case "NEEDS_REPAIR":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ if (object.expirationOffset != null) {
+ if (!$util.isObject(object.expirationOffset))
+ throw TypeError(".google.firestore.admin.v1.Field.TtlConfig.expirationOffset: object expected");
+ message.expirationOffset = $root.google.protobuf.Duration.fromObject(object.expirationOffset, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TtlConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {google.firestore.admin.v1.Field.TtlConfig} message TtlConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TtlConfig.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.expirationOffset = null;
+ }
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ object.state = options.enums === String ? $root.google.firestore.admin.v1.Field.TtlConfig.State[message.state] === undefined ? message.state : $root.google.firestore.admin.v1.Field.TtlConfig.State[message.state] : message.state;
+ if (message.expirationOffset != null && Object.hasOwnProperty.call(message, "expirationOffset"))
+ object.expirationOffset = $root.google.protobuf.Duration.toObject(message.expirationOffset, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this TtlConfig to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TtlConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TtlConfig
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Field.TtlConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TtlConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Field.TtlConfig";
+ };
+
+ /**
+ * State enum.
+ * @name google.firestore.admin.v1.Field.TtlConfig.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} ACTIVE=2 ACTIVE value
+ * @property {number} NEEDS_REPAIR=3 NEEDS_REPAIR value
+ */
+ TtlConfig.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "ACTIVE"] = 2;
+ values[valuesById[3] = "NEEDS_REPAIR"] = 3;
+ return values;
+ })();
+
+ return TtlConfig;
+ })();
+
+ return Field;
+ })();
+
+ v1.Index = (function() {
+
+ /**
+ * Properties of an Index.
+ * @memberof google.firestore.admin.v1
+ * @interface IIndex
+ * @property {string|null} [name] Index name
+ * @property {google.firestore.admin.v1.Index.QueryScope|null} [queryScope] Index queryScope
+ * @property {google.firestore.admin.v1.Index.ApiScope|null} [apiScope] Index apiScope
+ * @property {Array.|null} [fields] Index fields
+ * @property {google.firestore.admin.v1.Index.State|null} [state] Index state
+ * @property {google.firestore.admin.v1.Index.Density|null} [density] Index density
+ * @property {boolean|null} [multikey] Index multikey
+ * @property {number|null} [shardCount] Index shardCount
+ * @property {boolean|null} [unique] Index unique
+ * @property {google.firestore.admin.v1.Index.ISearchIndexOptions|null} [searchIndexOptions] Index searchIndexOptions
+ */
+
+ /**
+ * Constructs a new Index.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents an Index.
+ * @implements IIndex
+ * @constructor
+ * @param {google.firestore.admin.v1.IIndex=} [properties] Properties to set
+ */
+ function Index(properties) {
+ this.fields = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Index name.
+ * @member {string} name
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.name = "";
+
+ /**
+ * Index queryScope.
+ * @member {google.firestore.admin.v1.Index.QueryScope} queryScope
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.queryScope = 0;
+
+ /**
+ * Index apiScope.
+ * @member {google.firestore.admin.v1.Index.ApiScope} apiScope
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.apiScope = 0;
+
+ /**
+ * Index fields.
+ * @member {Array.} fields
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.fields = $util.emptyArray;
+
+ /**
+ * Index state.
+ * @member {google.firestore.admin.v1.Index.State} state
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.state = 0;
+
+ /**
+ * Index density.
+ * @member {google.firestore.admin.v1.Index.Density} density
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.density = 0;
+
+ /**
+ * Index multikey.
+ * @member {boolean} multikey
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.multikey = false;
+
+ /**
+ * Index shardCount.
+ * @member {number} shardCount
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.shardCount = 0;
+
+ /**
+ * Index unique.
+ * @member {boolean} unique
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.unique = false;
+
+ /**
+ * Index searchIndexOptions.
+ * @member {google.firestore.admin.v1.Index.ISearchIndexOptions|null|undefined} searchIndexOptions
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ */
+ Index.prototype.searchIndexOptions = null;
+
+ /**
+ * Creates a new Index instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {google.firestore.admin.v1.IIndex=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index} Index instance
+ */
+ Index.create = function create(properties) {
+ return new Index(properties);
+ };
+
+ /**
+ * Encodes the specified Index message. Does not implicitly {@link google.firestore.admin.v1.Index.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {google.firestore.admin.v1.IIndex} message Index message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Index.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.queryScope != null && Object.hasOwnProperty.call(message, "queryScope"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.queryScope);
+ if (message.fields != null && message.fields.length)
+ for (var i = 0; i < message.fields.length; ++i)
+ $root.google.firestore.admin.v1.Index.IndexField.encode(message.fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
+ if (message.apiScope != null && Object.hasOwnProperty.call(message, "apiScope"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.apiScope);
+ if (message.density != null && Object.hasOwnProperty.call(message, "density"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.density);
+ if (message.multikey != null && Object.hasOwnProperty.call(message, "multikey"))
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.multikey);
+ if (message.shardCount != null && Object.hasOwnProperty.call(message, "shardCount"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.shardCount);
+ if (message.searchIndexOptions != null && Object.hasOwnProperty.call(message, "searchIndexOptions"))
+ $root.google.firestore.admin.v1.Index.SearchIndexOptions.encode(message.searchIndexOptions, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim();
+ if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.unique);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Index message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {google.firestore.admin.v1.IIndex} message Index message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Index.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an Index message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index} Index
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Index.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.queryScope = reader.int32();
+ break;
+ }
+ case 5: {
+ message.apiScope = reader.int32();
+ break;
+ }
+ case 3: {
+ if (!(message.fields && message.fields.length))
+ message.fields = [];
+ message.fields.push($root.google.firestore.admin.v1.Index.IndexField.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 4: {
+ message.state = reader.int32();
+ break;
+ }
+ case 6: {
+ message.density = reader.int32();
+ break;
+ }
+ case 7: {
+ message.multikey = reader.bool();
+ break;
+ }
+ case 8: {
+ message.shardCount = reader.int32();
+ break;
+ }
+ case 10: {
+ message.unique = reader.bool();
+ break;
+ }
+ case 9: {
+ message.searchIndexOptions = $root.google.firestore.admin.v1.Index.SearchIndexOptions.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Index message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index} Index
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Index.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Index message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Index.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.queryScope != null && Object.hasOwnProperty.call(message, "queryScope"))
+ switch (message.queryScope) {
+ default:
+ return "queryScope: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.apiScope != null && Object.hasOwnProperty.call(message, "apiScope"))
+ switch (message.apiScope) {
+ default:
+ return "apiScope: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) {
+ if (!Array.isArray(message.fields))
+ return "fields: array expected";
+ for (var i = 0; i < message.fields.length; ++i) {
+ var error = $root.google.firestore.admin.v1.Index.IndexField.verify(message.fields[i], long + 1);
+ if (error)
+ return "fields." + error;
+ }
+ }
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.density != null && Object.hasOwnProperty.call(message, "density"))
+ switch (message.density) {
+ default:
+ return "density: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.multikey != null && Object.hasOwnProperty.call(message, "multikey"))
+ if (typeof message.multikey !== "boolean")
+ return "multikey: boolean expected";
+ if (message.shardCount != null && Object.hasOwnProperty.call(message, "shardCount"))
+ if (!$util.isInteger(message.shardCount))
+ return "shardCount: integer expected";
+ if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
+ if (typeof message.unique !== "boolean")
+ return "unique: boolean expected";
+ if (message.searchIndexOptions != null && Object.hasOwnProperty.call(message, "searchIndexOptions")) {
+ var error = $root.google.firestore.admin.v1.Index.SearchIndexOptions.verify(message.searchIndexOptions, long + 1);
+ if (error)
+ return "searchIndexOptions." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Index message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index} Index
+ */
+ Index.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.queryScope) {
+ default:
+ if (typeof object.queryScope === "number") {
+ message.queryScope = object.queryScope;
+ break;
+ }
+ break;
+ case "QUERY_SCOPE_UNSPECIFIED":
+ case 0:
+ message.queryScope = 0;
+ break;
+ case "COLLECTION":
+ case 1:
+ message.queryScope = 1;
+ break;
+ case "COLLECTION_GROUP":
+ case 2:
+ message.queryScope = 2;
+ break;
+ case "COLLECTION_RECURSIVE":
+ case 3:
+ message.queryScope = 3;
+ break;
+ }
+ switch (object.apiScope) {
+ default:
+ if (typeof object.apiScope === "number") {
+ message.apiScope = object.apiScope;
+ break;
+ }
+ break;
+ case "ANY_API":
+ case 0:
+ message.apiScope = 0;
+ break;
+ case "DATASTORE_MODE_API":
+ case 1:
+ message.apiScope = 1;
+ break;
+ case "MONGODB_COMPATIBLE_API":
+ case 2:
+ message.apiScope = 2;
+ break;
+ }
+ if (object.fields) {
+ if (!Array.isArray(object.fields))
+ throw TypeError(".google.firestore.admin.v1.Index.fields: array expected");
+ message.fields = [];
+ for (var i = 0; i < object.fields.length; ++i) {
+ if (!$util.isObject(object.fields[i]))
+ throw TypeError(".google.firestore.admin.v1.Index.fields: object expected");
+ message.fields[i] = $root.google.firestore.admin.v1.Index.IndexField.fromObject(object.fields[i], long + 1);
+ }
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "READY":
+ case 2:
+ message.state = 2;
+ break;
+ case "NEEDS_REPAIR":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ switch (object.density) {
+ default:
+ if (typeof object.density === "number") {
+ message.density = object.density;
+ break;
+ }
+ break;
+ case "DENSITY_UNSPECIFIED":
+ case 0:
+ message.density = 0;
+ break;
+ case "SPARSE_ALL":
+ case 1:
+ message.density = 1;
+ break;
+ case "SPARSE_ANY":
+ case 2:
+ message.density = 2;
+ break;
+ case "DENSE":
+ case 3:
+ message.density = 3;
+ break;
+ }
+ if (object.multikey != null)
+ message.multikey = Boolean(object.multikey);
+ if (object.shardCount != null)
+ message.shardCount = object.shardCount | 0;
+ if (object.unique != null)
+ message.unique = Boolean(object.unique);
+ if (object.searchIndexOptions != null) {
+ if (!$util.isObject(object.searchIndexOptions))
+ throw TypeError(".google.firestore.admin.v1.Index.searchIndexOptions: object expected");
+ message.searchIndexOptions = $root.google.firestore.admin.v1.Index.SearchIndexOptions.fromObject(object.searchIndexOptions, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Index message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {google.firestore.admin.v1.Index} message Index
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Index.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.fields = [];
+ if (options.defaults) {
+ object.name = "";
+ object.queryScope = options.enums === String ? "QUERY_SCOPE_UNSPECIFIED" : 0;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.apiScope = options.enums === String ? "ANY_API" : 0;
+ object.density = options.enums === String ? "DENSITY_UNSPECIFIED" : 0;
+ object.multikey = false;
+ object.shardCount = 0;
+ object.searchIndexOptions = null;
+ object.unique = false;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.queryScope != null && Object.hasOwnProperty.call(message, "queryScope"))
+ object.queryScope = options.enums === String ? $root.google.firestore.admin.v1.Index.QueryScope[message.queryScope] === undefined ? message.queryScope : $root.google.firestore.admin.v1.Index.QueryScope[message.queryScope] : message.queryScope;
+ if (message.fields && message.fields.length) {
+ object.fields = [];
+ for (var j = 0; j < message.fields.length; ++j)
+ object.fields[j] = $root.google.firestore.admin.v1.Index.IndexField.toObject(message.fields[j], options, q + 1);
+ }
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ object.state = options.enums === String ? $root.google.firestore.admin.v1.Index.State[message.state] === undefined ? message.state : $root.google.firestore.admin.v1.Index.State[message.state] : message.state;
+ if (message.apiScope != null && Object.hasOwnProperty.call(message, "apiScope"))
+ object.apiScope = options.enums === String ? $root.google.firestore.admin.v1.Index.ApiScope[message.apiScope] === undefined ? message.apiScope : $root.google.firestore.admin.v1.Index.ApiScope[message.apiScope] : message.apiScope;
+ if (message.density != null && Object.hasOwnProperty.call(message, "density"))
+ object.density = options.enums === String ? $root.google.firestore.admin.v1.Index.Density[message.density] === undefined ? message.density : $root.google.firestore.admin.v1.Index.Density[message.density] : message.density;
+ if (message.multikey != null && Object.hasOwnProperty.call(message, "multikey"))
+ object.multikey = message.multikey;
+ if (message.shardCount != null && Object.hasOwnProperty.call(message, "shardCount"))
+ object.shardCount = message.shardCount;
+ if (message.searchIndexOptions != null && Object.hasOwnProperty.call(message, "searchIndexOptions"))
+ object.searchIndexOptions = $root.google.firestore.admin.v1.Index.SearchIndexOptions.toObject(message.searchIndexOptions, options, q + 1);
+ if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
+ object.unique = message.unique;
+ return object;
+ };
+
+ /**
+ * Converts this Index to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Index.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Index
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index";
+ };
+
+ /**
+ * QueryScope enum.
+ * @name google.firestore.admin.v1.Index.QueryScope
+ * @enum {number}
+ * @property {number} QUERY_SCOPE_UNSPECIFIED=0 QUERY_SCOPE_UNSPECIFIED value
+ * @property {number} COLLECTION=1 COLLECTION value
+ * @property {number} COLLECTION_GROUP=2 COLLECTION_GROUP value
+ * @property {number} COLLECTION_RECURSIVE=3 COLLECTION_RECURSIVE value
+ */
+ Index.QueryScope = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "QUERY_SCOPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "COLLECTION"] = 1;
+ values[valuesById[2] = "COLLECTION_GROUP"] = 2;
+ values[valuesById[3] = "COLLECTION_RECURSIVE"] = 3;
+ return values;
+ })();
+
+ /**
+ * ApiScope enum.
+ * @name google.firestore.admin.v1.Index.ApiScope
+ * @enum {number}
+ * @property {number} ANY_API=0 ANY_API value
+ * @property {number} DATASTORE_MODE_API=1 DATASTORE_MODE_API value
+ * @property {number} MONGODB_COMPATIBLE_API=2 MONGODB_COMPATIBLE_API value
+ */
+ Index.ApiScope = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ANY_API"] = 0;
+ values[valuesById[1] = "DATASTORE_MODE_API"] = 1;
+ values[valuesById[2] = "MONGODB_COMPATIBLE_API"] = 2;
+ return values;
+ })();
+
+ Index.IndexField = (function() {
+
+ /**
+ * Properties of an IndexField.
+ * @memberof google.firestore.admin.v1.Index
+ * @interface IIndexField
+ * @property {string|null} [fieldPath] IndexField fieldPath
+ * @property {google.firestore.admin.v1.Index.IndexField.Order|null} [order] IndexField order
+ * @property {google.firestore.admin.v1.Index.IndexField.ArrayConfig|null} [arrayConfig] IndexField arrayConfig
+ * @property {google.firestore.admin.v1.Index.IndexField.IVectorConfig|null} [vectorConfig] IndexField vectorConfig
+ * @property {google.firestore.admin.v1.Index.IndexField.ISearchConfig|null} [searchConfig] IndexField searchConfig
+ */
+
+ /**
+ * Constructs a new IndexField.
+ * @memberof google.firestore.admin.v1.Index
+ * @classdesc Represents an IndexField.
+ * @implements IIndexField
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.IIndexField=} [properties] Properties to set
+ */
+ function IndexField(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * IndexField fieldPath.
+ * @member {string} fieldPath
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @instance
+ */
+ IndexField.prototype.fieldPath = "";
+
+ /**
+ * IndexField order.
+ * @member {google.firestore.admin.v1.Index.IndexField.Order|null|undefined} order
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @instance
+ */
+ IndexField.prototype.order = null;
+
+ /**
+ * IndexField arrayConfig.
+ * @member {google.firestore.admin.v1.Index.IndexField.ArrayConfig|null|undefined} arrayConfig
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @instance
+ */
+ IndexField.prototype.arrayConfig = null;
+
+ /**
+ * IndexField vectorConfig.
+ * @member {google.firestore.admin.v1.Index.IndexField.IVectorConfig|null|undefined} vectorConfig
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @instance
+ */
+ IndexField.prototype.vectorConfig = null;
+
+ /**
+ * IndexField searchConfig.
+ * @member {google.firestore.admin.v1.Index.IndexField.ISearchConfig|null|undefined} searchConfig
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @instance
+ */
+ IndexField.prototype.searchConfig = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * IndexField valueMode.
+ * @member {"order"|"arrayConfig"|"vectorConfig"|"searchConfig"|undefined} valueMode
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @instance
+ */
+ Object.defineProperty(IndexField.prototype, "valueMode", {
+ get: $util.oneOfGetter($oneOfFields = ["order", "arrayConfig", "vectorConfig", "searchConfig"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new IndexField instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {google.firestore.admin.v1.Index.IIndexField=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.IndexField} IndexField instance
+ */
+ IndexField.create = function create(properties) {
+ return new IndexField(properties);
+ };
+
+ /**
+ * Encodes the specified IndexField message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {google.firestore.admin.v1.Index.IIndexField} message IndexField message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IndexField.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.fieldPath != null && Object.hasOwnProperty.call(message, "fieldPath"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldPath);
+ if (message.order != null && Object.hasOwnProperty.call(message, "order"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.order);
+ if (message.arrayConfig != null && Object.hasOwnProperty.call(message, "arrayConfig"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.arrayConfig);
+ if (message.vectorConfig != null && Object.hasOwnProperty.call(message, "vectorConfig"))
+ $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.encode(message.vectorConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.searchConfig != null && Object.hasOwnProperty.call(message, "searchConfig"))
+ $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.encode(message.searchConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IndexField message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {google.firestore.admin.v1.Index.IIndexField} message IndexField message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IndexField.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an IndexField message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.IndexField} IndexField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IndexField.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.IndexField();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.fieldPath = reader.string();
+ break;
+ }
+ case 2: {
+ message.order = reader.int32();
+ break;
+ }
+ case 3: {
+ message.arrayConfig = reader.int32();
+ break;
+ }
+ case 4: {
+ message.vectorConfig = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 5: {
+ message.searchConfig = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IndexField message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.IndexField} IndexField
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IndexField.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IndexField message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IndexField.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.fieldPath != null && Object.hasOwnProperty.call(message, "fieldPath"))
+ if (!$util.isString(message.fieldPath))
+ return "fieldPath: string expected";
+ if (message.order != null && Object.hasOwnProperty.call(message, "order")) {
+ properties.valueMode = 1;
+ switch (message.order) {
+ default:
+ return "order: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ }
+ if (message.arrayConfig != null && Object.hasOwnProperty.call(message, "arrayConfig")) {
+ if (properties.valueMode === 1)
+ return "valueMode: multiple values";
+ properties.valueMode = 1;
+ switch (message.arrayConfig) {
+ default:
+ return "arrayConfig: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ if (message.vectorConfig != null && Object.hasOwnProperty.call(message, "vectorConfig")) {
+ if (properties.valueMode === 1)
+ return "valueMode: multiple values";
+ properties.valueMode = 1;
+ {
+ var error = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.verify(message.vectorConfig, long + 1);
+ if (error)
+ return "vectorConfig." + error;
+ }
+ }
+ if (message.searchConfig != null && Object.hasOwnProperty.call(message, "searchConfig")) {
+ if (properties.valueMode === 1)
+ return "valueMode: multiple values";
+ properties.valueMode = 1;
+ {
+ var error = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.verify(message.searchConfig, long + 1);
+ if (error)
+ return "searchConfig." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an IndexField message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.IndexField} IndexField
+ */
+ IndexField.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.IndexField)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index.IndexField();
+ if (object.fieldPath != null)
+ message.fieldPath = String(object.fieldPath);
+ switch (object.order) {
+ default:
+ if (typeof object.order === "number") {
+ message.order = object.order;
+ break;
+ }
+ break;
+ case "ORDER_UNSPECIFIED":
+ case 0:
+ message.order = 0;
+ break;
+ case "ASCENDING":
+ case 1:
+ message.order = 1;
+ break;
+ case "DESCENDING":
+ case 2:
+ message.order = 2;
+ break;
+ }
+ switch (object.arrayConfig) {
+ default:
+ if (typeof object.arrayConfig === "number") {
+ message.arrayConfig = object.arrayConfig;
+ break;
+ }
+ break;
+ case "ARRAY_CONFIG_UNSPECIFIED":
+ case 0:
+ message.arrayConfig = 0;
+ break;
+ case "CONTAINS":
+ case 1:
+ message.arrayConfig = 1;
+ break;
+ }
+ if (object.vectorConfig != null) {
+ if (!$util.isObject(object.vectorConfig))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.vectorConfig: object expected");
+ message.vectorConfig = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.fromObject(object.vectorConfig, long + 1);
+ }
+ if (object.searchConfig != null) {
+ if (!$util.isObject(object.searchConfig))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.searchConfig: object expected");
+ message.searchConfig = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.fromObject(object.searchConfig, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an IndexField message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField} message IndexField
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IndexField.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.fieldPath = "";
+ if (message.fieldPath != null && Object.hasOwnProperty.call(message, "fieldPath"))
+ object.fieldPath = message.fieldPath;
+ if (message.order != null && Object.hasOwnProperty.call(message, "order")) {
+ object.order = options.enums === String ? $root.google.firestore.admin.v1.Index.IndexField.Order[message.order] === undefined ? message.order : $root.google.firestore.admin.v1.Index.IndexField.Order[message.order] : message.order;
+ if (options.oneofs)
+ object.valueMode = "order";
+ }
+ if (message.arrayConfig != null && Object.hasOwnProperty.call(message, "arrayConfig")) {
+ object.arrayConfig = options.enums === String ? $root.google.firestore.admin.v1.Index.IndexField.ArrayConfig[message.arrayConfig] === undefined ? message.arrayConfig : $root.google.firestore.admin.v1.Index.IndexField.ArrayConfig[message.arrayConfig] : message.arrayConfig;
+ if (options.oneofs)
+ object.valueMode = "arrayConfig";
+ }
+ if (message.vectorConfig != null && Object.hasOwnProperty.call(message, "vectorConfig")) {
+ object.vectorConfig = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.toObject(message.vectorConfig, options, q + 1);
+ if (options.oneofs)
+ object.valueMode = "vectorConfig";
+ }
+ if (message.searchConfig != null && Object.hasOwnProperty.call(message, "searchConfig")) {
+ object.searchConfig = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.toObject(message.searchConfig, options, q + 1);
+ if (options.oneofs)
+ object.valueMode = "searchConfig";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this IndexField to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IndexField.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IndexField
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IndexField.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.IndexField";
+ };
+
+ /**
+ * Order enum.
+ * @name google.firestore.admin.v1.Index.IndexField.Order
+ * @enum {number}
+ * @property {number} ORDER_UNSPECIFIED=0 ORDER_UNSPECIFIED value
+ * @property {number} ASCENDING=1 ASCENDING value
+ * @property {number} DESCENDING=2 DESCENDING value
+ */
+ IndexField.Order = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ORDER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ASCENDING"] = 1;
+ values[valuesById[2] = "DESCENDING"] = 2;
+ return values;
+ })();
+
+ /**
+ * ArrayConfig enum.
+ * @name google.firestore.admin.v1.Index.IndexField.ArrayConfig
+ * @enum {number}
+ * @property {number} ARRAY_CONFIG_UNSPECIFIED=0 ARRAY_CONFIG_UNSPECIFIED value
+ * @property {number} CONTAINS=1 CONTAINS value
+ */
+ IndexField.ArrayConfig = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ARRAY_CONFIG_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CONTAINS"] = 1;
+ return values;
+ })();
+
+ IndexField.VectorConfig = (function() {
+
+ /**
+ * Properties of a VectorConfig.
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @interface IVectorConfig
+ * @property {number|null} [dimension] VectorConfig dimension
+ * @property {google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex|null} [flat] VectorConfig flat
+ */
+
+ /**
+ * Constructs a new VectorConfig.
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @classdesc Represents a VectorConfig.
+ * @implements IVectorConfig
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.IndexField.IVectorConfig=} [properties] Properties to set
+ */
+ function VectorConfig(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * VectorConfig dimension.
+ * @member {number} dimension
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @instance
+ */
+ VectorConfig.prototype.dimension = 0;
+
+ /**
+ * VectorConfig flat.
+ * @member {google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex|null|undefined} flat
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @instance
+ */
+ VectorConfig.prototype.flat = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * VectorConfig type.
+ * @member {"flat"|undefined} type
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @instance
+ */
+ Object.defineProperty(VectorConfig.prototype, "type", {
+ get: $util.oneOfGetter($oneOfFields = ["flat"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new VectorConfig instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.IVectorConfig=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig} VectorConfig instance
+ */
+ VectorConfig.create = function create(properties) {
+ return new VectorConfig(properties);
+ };
+
+ /**
+ * Encodes the specified VectorConfig message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.IVectorConfig} message VectorConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VectorConfig.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.dimension);
+ if (message.flat != null && Object.hasOwnProperty.call(message, "flat"))
+ $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.encode(message.flat, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VectorConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.IVectorConfig} message VectorConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VectorConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a VectorConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig} VectorConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VectorConfig.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.IndexField.VectorConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.dimension = reader.int32();
+ break;
+ }
+ case 2: {
+ message.flat = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VectorConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig} VectorConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VectorConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VectorConfig message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VectorConfig.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension"))
+ if (!$util.isInteger(message.dimension))
+ return "dimension: integer expected";
+ if (message.flat != null && Object.hasOwnProperty.call(message, "flat")) {
+ properties.type = 1;
+ {
+ var error = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.verify(message.flat, long + 1);
+ if (error)
+ return "flat." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VectorConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig} VectorConfig
+ */
+ VectorConfig.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.IndexField.VectorConfig)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.VectorConfig: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index.IndexField.VectorConfig();
+ if (object.dimension != null)
+ message.dimension = object.dimension | 0;
+ if (object.flat != null) {
+ if (!$util.isObject(object.flat))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.VectorConfig.flat: object expected");
+ message.flat = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.fromObject(object.flat, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VectorConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.VectorConfig} message VectorConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VectorConfig.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.dimension = 0;
+ if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension"))
+ object.dimension = message.dimension;
+ if (message.flat != null && Object.hasOwnProperty.call(message, "flat")) {
+ object.flat = $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.toObject(message.flat, options, q + 1);
+ if (options.oneofs)
+ object.type = "flat";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this VectorConfig to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VectorConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VectorConfig
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VectorConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.IndexField.VectorConfig";
+ };
+
+ VectorConfig.FlatIndex = (function() {
+
+ /**
+ * Properties of a FlatIndex.
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @interface IFlatIndex
+ */
+
+ /**
+ * Constructs a new FlatIndex.
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig
+ * @classdesc Represents a FlatIndex.
+ * @implements IFlatIndex
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex=} [properties] Properties to set
+ */
+ function FlatIndex(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new FlatIndex instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex} FlatIndex instance
+ */
+ FlatIndex.create = function create(properties) {
+ return new FlatIndex(properties);
+ };
+
+ /**
+ * Encodes the specified FlatIndex message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex} message FlatIndex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FlatIndex.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FlatIndex message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.VectorConfig.IFlatIndex} message FlatIndex message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FlatIndex.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a FlatIndex message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex} FlatIndex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FlatIndex.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FlatIndex message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex} FlatIndex
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FlatIndex.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FlatIndex message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FlatIndex.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ return null;
+ };
+
+ /**
+ * Creates a FlatIndex message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex} FlatIndex
+ */
+ FlatIndex.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex)
+ return object;
+ return new $root.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex();
+ };
+
+ /**
+ * Creates a plain object from a FlatIndex message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex} message FlatIndex
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FlatIndex.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this FlatIndex to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FlatIndex.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FlatIndex
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FlatIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex";
+ };
+
+ return FlatIndex;
+ })();
+
+ return VectorConfig;
+ })();
+
+ IndexField.SearchConfig = (function() {
+
+ /**
+ * Properties of a SearchConfig.
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @interface ISearchConfig
+ * @property {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec|null} [textSpec] SearchConfig textSpec
+ * @property {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec|null} [geoSpec] SearchConfig geoSpec
+ */
+
+ /**
+ * Constructs a new SearchConfig.
+ * @memberof google.firestore.admin.v1.Index.IndexField
+ * @classdesc Represents a SearchConfig.
+ * @implements ISearchConfig
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.IndexField.ISearchConfig=} [properties] Properties to set
+ */
+ function SearchConfig(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchConfig textSpec.
+ * @member {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec|null|undefined} textSpec
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @instance
+ */
+ SearchConfig.prototype.textSpec = null;
+
+ /**
+ * SearchConfig geoSpec.
+ * @member {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec|null|undefined} geoSpec
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @instance
+ */
+ SearchConfig.prototype.geoSpec = null;
+
+ /**
+ * Creates a new SearchConfig instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.ISearchConfig=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig} SearchConfig instance
+ */
+ SearchConfig.create = function create(properties) {
+ return new SearchConfig(properties);
+ };
+
+ /**
+ * Encodes the specified SearchConfig message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.ISearchConfig} message SearchConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchConfig.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.textSpec != null && Object.hasOwnProperty.call(message, "textSpec"))
+ $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.encode(message.textSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.geoSpec != null && Object.hasOwnProperty.call(message, "geoSpec"))
+ $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.encode(message.geoSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchConfig message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.ISearchConfig} message SearchConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig} SearchConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchConfig.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.textSpec = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.geoSpec = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig} SearchConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchConfig message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchConfig.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.textSpec != null && Object.hasOwnProperty.call(message, "textSpec")) {
+ var error = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.verify(message.textSpec, long + 1);
+ if (error)
+ return "textSpec." + error;
+ }
+ if (message.geoSpec != null && Object.hasOwnProperty.call(message, "geoSpec")) {
+ var error = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.verify(message.geoSpec, long + 1);
+ if (error)
+ return "geoSpec." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SearchConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig} SearchConfig
+ */
+ SearchConfig.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.IndexField.SearchConfig)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig();
+ if (object.textSpec != null) {
+ if (!$util.isObject(object.textSpec))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig.textSpec: object expected");
+ message.textSpec = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.fromObject(object.textSpec, long + 1);
+ }
+ if (object.geoSpec != null) {
+ if (!$util.isObject(object.geoSpec))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig.geoSpec: object expected");
+ message.geoSpec = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.fromObject(object.geoSpec, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig} message SearchConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchConfig.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.textSpec = null;
+ object.geoSpec = null;
+ }
+ if (message.textSpec != null && Object.hasOwnProperty.call(message, "textSpec"))
+ object.textSpec = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.toObject(message.textSpec, options, q + 1);
+ if (message.geoSpec != null && Object.hasOwnProperty.call(message, "geoSpec"))
+ object.geoSpec = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.toObject(message.geoSpec, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this SearchConfig to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchConfig
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.IndexField.SearchConfig";
+ };
+
+ /**
+ * TextIndexType enum.
+ * @name google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType
+ * @enum {number}
+ * @property {number} TEXT_INDEX_TYPE_UNSPECIFIED=0 TEXT_INDEX_TYPE_UNSPECIFIED value
+ * @property {number} TOKENIZED=1 TOKENIZED value
+ */
+ SearchConfig.TextIndexType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TEXT_INDEX_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "TOKENIZED"] = 1;
+ return values;
+ })();
+
+ /**
+ * TextMatchType enum.
+ * @name google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType
+ * @enum {number}
+ * @property {number} TEXT_MATCH_TYPE_UNSPECIFIED=0 TEXT_MATCH_TYPE_UNSPECIFIED value
+ * @property {number} MATCH_GLOBALLY=1 MATCH_GLOBALLY value
+ */
+ SearchConfig.TextMatchType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TEXT_MATCH_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "MATCH_GLOBALLY"] = 1;
+ return values;
+ })();
+
+ SearchConfig.SearchTextIndexSpec = (function() {
+
+ /**
+ * Properties of a SearchTextIndexSpec.
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @interface ISearchTextIndexSpec
+ * @property {google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType|null} [indexType] SearchTextIndexSpec indexType
+ * @property {google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType|null} [matchType] SearchTextIndexSpec matchType
+ */
+
+ /**
+ * Constructs a new SearchTextIndexSpec.
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @classdesc Represents a SearchTextIndexSpec.
+ * @implements ISearchTextIndexSpec
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec=} [properties] Properties to set
+ */
+ function SearchTextIndexSpec(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchTextIndexSpec indexType.
+ * @member {google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType} indexType
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @instance
+ */
+ SearchTextIndexSpec.prototype.indexType = 0;
+
+ /**
+ * SearchTextIndexSpec matchType.
+ * @member {google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType} matchType
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @instance
+ */
+ SearchTextIndexSpec.prototype.matchType = 0;
+
+ /**
+ * Creates a new SearchTextIndexSpec instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec} SearchTextIndexSpec instance
+ */
+ SearchTextIndexSpec.create = function create(properties) {
+ return new SearchTextIndexSpec(properties);
+ };
+
+ /**
+ * Encodes the specified SearchTextIndexSpec message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec} message SearchTextIndexSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchTextIndexSpec.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.indexType != null && Object.hasOwnProperty.call(message, "indexType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.indexType);
+ if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.matchType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchTextIndexSpec message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextIndexSpec} message SearchTextIndexSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchTextIndexSpec.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchTextIndexSpec message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec} SearchTextIndexSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchTextIndexSpec.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.indexType = reader.int32();
+ break;
+ }
+ case 2: {
+ message.matchType = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchTextIndexSpec message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec} SearchTextIndexSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchTextIndexSpec.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchTextIndexSpec message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchTextIndexSpec.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.indexType != null && Object.hasOwnProperty.call(message, "indexType"))
+ switch (message.indexType) {
+ default:
+ return "indexType: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType"))
+ switch (message.matchType) {
+ default:
+ return "matchType: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SearchTextIndexSpec message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec} SearchTextIndexSpec
+ */
+ SearchTextIndexSpec.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec();
+ switch (object.indexType) {
+ default:
+ if (typeof object.indexType === "number") {
+ message.indexType = object.indexType;
+ break;
+ }
+ break;
+ case "TEXT_INDEX_TYPE_UNSPECIFIED":
+ case 0:
+ message.indexType = 0;
+ break;
+ case "TOKENIZED":
+ case 1:
+ message.indexType = 1;
+ break;
+ }
+ switch (object.matchType) {
+ default:
+ if (typeof object.matchType === "number") {
+ message.matchType = object.matchType;
+ break;
+ }
+ break;
+ case "TEXT_MATCH_TYPE_UNSPECIFIED":
+ case 0:
+ message.matchType = 0;
+ break;
+ case "MATCH_GLOBALLY":
+ case 1:
+ message.matchType = 1;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchTextIndexSpec message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec} message SearchTextIndexSpec
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchTextIndexSpec.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.indexType = options.enums === String ? "TEXT_INDEX_TYPE_UNSPECIFIED" : 0;
+ object.matchType = options.enums === String ? "TEXT_MATCH_TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.indexType != null && Object.hasOwnProperty.call(message, "indexType"))
+ object.indexType = options.enums === String ? $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType[message.indexType] === undefined ? message.indexType : $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType[message.indexType] : message.indexType;
+ if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType"))
+ object.matchType = options.enums === String ? $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType[message.matchType] === undefined ? message.matchType : $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType[message.matchType] : message.matchType;
+ return object;
+ };
+
+ /**
+ * Converts this SearchTextIndexSpec to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchTextIndexSpec.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchTextIndexSpec
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchTextIndexSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec";
+ };
+
+ return SearchTextIndexSpec;
+ })();
+
+ SearchConfig.SearchTextSpec = (function() {
+
+ /**
+ * Properties of a SearchTextSpec.
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @interface ISearchTextSpec
+ * @property {Array.|null} [indexSpecs] SearchTextSpec indexSpecs
+ */
+
+ /**
+ * Constructs a new SearchTextSpec.
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @classdesc Represents a SearchTextSpec.
+ * @implements ISearchTextSpec
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec=} [properties] Properties to set
+ */
+ function SearchTextSpec(properties) {
+ this.indexSpecs = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchTextSpec indexSpecs.
+ * @member {Array.} indexSpecs
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @instance
+ */
+ SearchTextSpec.prototype.indexSpecs = $util.emptyArray;
+
+ /**
+ * Creates a new SearchTextSpec instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec} SearchTextSpec instance
+ */
+ SearchTextSpec.create = function create(properties) {
+ return new SearchTextSpec(properties);
+ };
+
+ /**
+ * Encodes the specified SearchTextSpec message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec} message SearchTextSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchTextSpec.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.indexSpecs != null && message.indexSpecs.length)
+ for (var i = 0; i < message.indexSpecs.length; ++i)
+ $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.encode(message.indexSpecs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchTextSpec message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchTextSpec} message SearchTextSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchTextSpec.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchTextSpec message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec} SearchTextSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchTextSpec.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.indexSpecs && message.indexSpecs.length))
+ message.indexSpecs = [];
+ message.indexSpecs.push($root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchTextSpec message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec} SearchTextSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchTextSpec.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchTextSpec message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchTextSpec.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.indexSpecs != null && Object.hasOwnProperty.call(message, "indexSpecs")) {
+ if (!Array.isArray(message.indexSpecs))
+ return "indexSpecs: array expected";
+ for (var i = 0; i < message.indexSpecs.length; ++i) {
+ var error = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.verify(message.indexSpecs[i], long + 1);
+ if (error)
+ return "indexSpecs." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SearchTextSpec message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec} SearchTextSpec
+ */
+ SearchTextSpec.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec();
+ if (object.indexSpecs) {
+ if (!Array.isArray(object.indexSpecs))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.indexSpecs: array expected");
+ message.indexSpecs = [];
+ for (var i = 0; i < object.indexSpecs.length; ++i) {
+ if (!$util.isObject(object.indexSpecs[i]))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec.indexSpecs: object expected");
+ message.indexSpecs[i] = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.fromObject(object.indexSpecs[i], long + 1);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchTextSpec message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec} message SearchTextSpec
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchTextSpec.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.indexSpecs = [];
+ if (message.indexSpecs && message.indexSpecs.length) {
+ object.indexSpecs = [];
+ for (var j = 0; j < message.indexSpecs.length; ++j)
+ object.indexSpecs[j] = $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec.toObject(message.indexSpecs[j], options, q + 1);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this SearchTextSpec to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchTextSpec.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchTextSpec
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchTextSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec";
+ };
+
+ return SearchTextSpec;
+ })();
+
+ SearchConfig.SearchGeoSpec = (function() {
+
+ /**
+ * Properties of a SearchGeoSpec.
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @interface ISearchGeoSpec
+ * @property {boolean|null} [geoJsonIndexingDisabled] SearchGeoSpec geoJsonIndexingDisabled
+ */
+
+ /**
+ * Constructs a new SearchGeoSpec.
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig
+ * @classdesc Represents a SearchGeoSpec.
+ * @implements ISearchGeoSpec
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec=} [properties] Properties to set
+ */
+ function SearchGeoSpec(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchGeoSpec geoJsonIndexingDisabled.
+ * @member {boolean} geoJsonIndexingDisabled
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @instance
+ */
+ SearchGeoSpec.prototype.geoJsonIndexingDisabled = false;
+
+ /**
+ * Creates a new SearchGeoSpec instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec} SearchGeoSpec instance
+ */
+ SearchGeoSpec.create = function create(properties) {
+ return new SearchGeoSpec(properties);
+ };
+
+ /**
+ * Encodes the specified SearchGeoSpec message. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec} message SearchGeoSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchGeoSpec.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.geoJsonIndexingDisabled != null && Object.hasOwnProperty.call(message, "geoJsonIndexingDisabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.geoJsonIndexingDisabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchGeoSpec message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.ISearchGeoSpec} message SearchGeoSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchGeoSpec.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchGeoSpec message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec} SearchGeoSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchGeoSpec.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.geoJsonIndexingDisabled = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchGeoSpec message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec} SearchGeoSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchGeoSpec.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchGeoSpec message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchGeoSpec.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.geoJsonIndexingDisabled != null && Object.hasOwnProperty.call(message, "geoJsonIndexingDisabled"))
+ if (typeof message.geoJsonIndexingDisabled !== "boolean")
+ return "geoJsonIndexingDisabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchGeoSpec message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec} SearchGeoSpec
+ */
+ SearchGeoSpec.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec();
+ if (object.geoJsonIndexingDisabled != null)
+ message.geoJsonIndexingDisabled = Boolean(object.geoJsonIndexingDisabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchGeoSpec message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec} message SearchGeoSpec
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchGeoSpec.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.geoJsonIndexingDisabled = false;
+ if (message.geoJsonIndexingDisabled != null && Object.hasOwnProperty.call(message, "geoJsonIndexingDisabled"))
+ object.geoJsonIndexingDisabled = message.geoJsonIndexingDisabled;
+ return object;
+ };
+
+ /**
+ * Converts this SearchGeoSpec to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchGeoSpec.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchGeoSpec
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchGeoSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec";
+ };
+
+ return SearchGeoSpec;
+ })();
+
+ return SearchConfig;
+ })();
+
+ return IndexField;
+ })();
+
+ /**
+ * State enum.
+ * @name google.firestore.admin.v1.Index.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} READY=2 READY value
+ * @property {number} NEEDS_REPAIR=3 NEEDS_REPAIR value
+ */
+ Index.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "READY"] = 2;
+ values[valuesById[3] = "NEEDS_REPAIR"] = 3;
+ return values;
+ })();
+
+ /**
+ * Density enum.
+ * @name google.firestore.admin.v1.Index.Density
+ * @enum {number}
+ * @property {number} DENSITY_UNSPECIFIED=0 DENSITY_UNSPECIFIED value
+ * @property {number} SPARSE_ALL=1 SPARSE_ALL value
+ * @property {number} SPARSE_ANY=2 SPARSE_ANY value
+ * @property {number} DENSE=3 DENSE value
+ */
+ Index.Density = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DENSITY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "SPARSE_ALL"] = 1;
+ values[valuesById[2] = "SPARSE_ANY"] = 2;
+ values[valuesById[3] = "DENSE"] = 3;
+ return values;
+ })();
+
+ Index.SearchIndexOptions = (function() {
+
+ /**
+ * Properties of a SearchIndexOptions.
+ * @memberof google.firestore.admin.v1.Index
+ * @interface ISearchIndexOptions
+ * @property {string|null} [textLanguage] SearchIndexOptions textLanguage
+ * @property {string|null} [textLanguageOverrideFieldPath] SearchIndexOptions textLanguageOverrideFieldPath
+ */
+
+ /**
+ * Constructs a new SearchIndexOptions.
+ * @memberof google.firestore.admin.v1.Index
+ * @classdesc Represents a SearchIndexOptions.
+ * @implements ISearchIndexOptions
+ * @constructor
+ * @param {google.firestore.admin.v1.Index.ISearchIndexOptions=} [properties] Properties to set
+ */
+ function SearchIndexOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchIndexOptions textLanguage.
+ * @member {string} textLanguage
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @instance
+ */
+ SearchIndexOptions.prototype.textLanguage = "";
+
+ /**
+ * SearchIndexOptions textLanguageOverrideFieldPath.
+ * @member {string} textLanguageOverrideFieldPath
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @instance
+ */
+ SearchIndexOptions.prototype.textLanguageOverrideFieldPath = "";
+
+ /**
+ * Creates a new SearchIndexOptions instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {google.firestore.admin.v1.Index.ISearchIndexOptions=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.Index.SearchIndexOptions} SearchIndexOptions instance
+ */
+ SearchIndexOptions.create = function create(properties) {
+ return new SearchIndexOptions(properties);
+ };
+
+ /**
+ * Encodes the specified SearchIndexOptions message. Does not implicitly {@link google.firestore.admin.v1.Index.SearchIndexOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {google.firestore.admin.v1.Index.ISearchIndexOptions} message SearchIndexOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchIndexOptions.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.textLanguage != null && Object.hasOwnProperty.call(message, "textLanguage"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.textLanguage);
+ if (message.textLanguageOverrideFieldPath != null && Object.hasOwnProperty.call(message, "textLanguageOverrideFieldPath"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.textLanguageOverrideFieldPath);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchIndexOptions message, length delimited. Does not implicitly {@link google.firestore.admin.v1.Index.SearchIndexOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {google.firestore.admin.v1.Index.ISearchIndexOptions} message SearchIndexOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchIndexOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchIndexOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.Index.SearchIndexOptions} SearchIndexOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchIndexOptions.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.Index.SearchIndexOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.textLanguage = reader.string();
+ break;
+ }
+ case 2: {
+ message.textLanguageOverrideFieldPath = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchIndexOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.Index.SearchIndexOptions} SearchIndexOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchIndexOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchIndexOptions message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchIndexOptions.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.textLanguage != null && Object.hasOwnProperty.call(message, "textLanguage"))
+ if (!$util.isString(message.textLanguage))
+ return "textLanguage: string expected";
+ if (message.textLanguageOverrideFieldPath != null && Object.hasOwnProperty.call(message, "textLanguageOverrideFieldPath"))
+ if (!$util.isString(message.textLanguageOverrideFieldPath))
+ return "textLanguageOverrideFieldPath: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchIndexOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.Index.SearchIndexOptions} SearchIndexOptions
+ */
+ SearchIndexOptions.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.Index.SearchIndexOptions)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.Index.SearchIndexOptions: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.Index.SearchIndexOptions();
+ if (object.textLanguage != null)
+ message.textLanguage = String(object.textLanguage);
+ if (object.textLanguageOverrideFieldPath != null)
+ message.textLanguageOverrideFieldPath = String(object.textLanguageOverrideFieldPath);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchIndexOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {google.firestore.admin.v1.Index.SearchIndexOptions} message SearchIndexOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchIndexOptions.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.textLanguage = "";
+ object.textLanguageOverrideFieldPath = "";
+ }
+ if (message.textLanguage != null && Object.hasOwnProperty.call(message, "textLanguage"))
+ object.textLanguage = message.textLanguage;
+ if (message.textLanguageOverrideFieldPath != null && Object.hasOwnProperty.call(message, "textLanguageOverrideFieldPath"))
+ object.textLanguageOverrideFieldPath = message.textLanguageOverrideFieldPath;
+ return object;
+ };
+
+ /**
+ * Converts this SearchIndexOptions to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchIndexOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchIndexOptions
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.Index.SearchIndexOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchIndexOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.Index.SearchIndexOptions";
+ };
+
+ return SearchIndexOptions;
+ })();
+
+ return Index;
+ })();
+
+ v1.FirestoreAdmin = (function() {
+
+ /**
+ * Constructs a new FirestoreAdmin service.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a FirestoreAdmin
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function FirestoreAdmin(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (FirestoreAdmin.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FirestoreAdmin;
+
+ /**
+ * Creates new FirestoreAdmin service using the specified rpc implementation.
+ * @function create
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {FirestoreAdmin} RPC service. Useful where requests and/or responses are streamed.
+ */
+ FirestoreAdmin.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createIndex}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef CreateIndexCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateIndex.
+ * @function createIndex
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateIndexRequest} request CreateIndexRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.createIndex = function createIndex(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, createIndex, $root.google.firestore.admin.v1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateIndex" });
+
+ /**
+ * Calls CreateIndex.
+ * @function createIndex
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateIndexRequest} request CreateIndexRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listIndexes}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ListIndexesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.ListIndexesResponse} [response] ListIndexesResponse
+ */
+
+ /**
+ * Calls ListIndexes.
+ * @function listIndexes
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListIndexesRequest} request ListIndexesRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.listIndexes = function listIndexes(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listIndexes, $root.google.firestore.admin.v1.ListIndexesRequest, $root.google.firestore.admin.v1.ListIndexesResponse, request, callback);
+ }, "name", { value: "ListIndexes" });
+
+ /**
+ * Calls ListIndexes.
+ * @function listIndexes
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListIndexesRequest} request ListIndexesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getIndex}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef GetIndexCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.Index} [response] Index
+ */
+
+ /**
+ * Calls GetIndex.
+ * @function getIndex
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetIndexRequest} request GetIndexRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.GetIndexCallback} callback Node-style callback called with the error, if any, and Index
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.getIndex = function getIndex(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getIndex, $root.google.firestore.admin.v1.GetIndexRequest, $root.google.firestore.admin.v1.Index, request, callback);
+ }, "name", { value: "GetIndex" });
+
+ /**
+ * Calls GetIndex.
+ * @function getIndex
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetIndexRequest} request GetIndexRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteIndex}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef DeleteIndexCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteIndex.
+ * @function deleteIndex
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.deleteIndex = function deleteIndex(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteIndex, $root.google.firestore.admin.v1.DeleteIndexRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteIndex" });
+
+ /**
+ * Calls DeleteIndex.
+ * @function deleteIndex
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getField}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef GetFieldCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.Field} [response] Field
+ */
+
+ /**
+ * Calls GetField.
+ * @function getField
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetFieldRequest} request GetFieldRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.GetFieldCallback} callback Node-style callback called with the error, if any, and Field
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.getField = function getField(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getField, $root.google.firestore.admin.v1.GetFieldRequest, $root.google.firestore.admin.v1.Field, request, callback);
+ }, "name", { value: "GetField" });
+
+ /**
+ * Calls GetField.
+ * @function getField
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetFieldRequest} request GetFieldRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|updateField}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef UpdateFieldCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateField.
+ * @function updateField
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IUpdateFieldRequest} request UpdateFieldRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.UpdateFieldCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.updateField = function updateField(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, updateField, $root.google.firestore.admin.v1.UpdateFieldRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateField" });
+
+ /**
+ * Calls UpdateField.
+ * @function updateField
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IUpdateFieldRequest} request UpdateFieldRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listFields}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ListFieldsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.ListFieldsResponse} [response] ListFieldsResponse
+ */
+
+ /**
+ * Calls ListFields.
+ * @function listFields
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListFieldsRequest} request ListFieldsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ListFieldsCallback} callback Node-style callback called with the error, if any, and ListFieldsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.listFields = function listFields(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listFields, $root.google.firestore.admin.v1.ListFieldsRequest, $root.google.firestore.admin.v1.ListFieldsResponse, request, callback);
+ }, "name", { value: "ListFields" });
+
+ /**
+ * Calls ListFields.
+ * @function listFields
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListFieldsRequest} request ListFieldsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|exportDocuments}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ExportDocumentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ExportDocuments.
+ * @function exportDocuments
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IExportDocumentsRequest} request ExportDocumentsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ExportDocumentsCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.exportDocuments = function exportDocuments(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, exportDocuments, $root.google.firestore.admin.v1.ExportDocumentsRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ExportDocuments" });
+
+ /**
+ * Calls ExportDocuments.
+ * @function exportDocuments
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IExportDocumentsRequest} request ExportDocumentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|importDocuments}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ImportDocumentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ImportDocuments.
+ * @function importDocuments
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IImportDocumentsRequest} request ImportDocumentsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ImportDocumentsCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.importDocuments = function importDocuments(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, importDocuments, $root.google.firestore.admin.v1.ImportDocumentsRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ImportDocuments" });
+
+ /**
+ * Calls ImportDocuments.
+ * @function importDocuments
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IImportDocumentsRequest} request ImportDocumentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|bulkDeleteDocuments}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef BulkDeleteDocumentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls BulkDeleteDocuments.
+ * @function bulkDeleteDocuments
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IBulkDeleteDocumentsRequest} request BulkDeleteDocumentsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocumentsCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.bulkDeleteDocuments = function bulkDeleteDocuments(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, bulkDeleteDocuments, $root.google.firestore.admin.v1.BulkDeleteDocumentsRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "BulkDeleteDocuments" });
+
+ /**
+ * Calls BulkDeleteDocuments.
+ * @function bulkDeleteDocuments
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IBulkDeleteDocumentsRequest} request BulkDeleteDocumentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createDatabase}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef CreateDatabaseCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateDatabase.
+ * @function createDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateDatabaseRequest} request CreateDatabaseRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.CreateDatabaseCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.createDatabase = function createDatabase(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, createDatabase, $root.google.firestore.admin.v1.CreateDatabaseRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateDatabase" });
+
+ /**
+ * Calls CreateDatabase.
+ * @function createDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateDatabaseRequest} request CreateDatabaseRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getDatabase}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef GetDatabaseCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.Database} [response] Database
+ */
+
+ /**
+ * Calls GetDatabase.
+ * @function getDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetDatabaseRequest} request GetDatabaseRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.GetDatabaseCallback} callback Node-style callback called with the error, if any, and Database
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.getDatabase = function getDatabase(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getDatabase, $root.google.firestore.admin.v1.GetDatabaseRequest, $root.google.firestore.admin.v1.Database, request, callback);
+ }, "name", { value: "GetDatabase" });
+
+ /**
+ * Calls GetDatabase.
+ * @function getDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetDatabaseRequest} request GetDatabaseRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listDatabases}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ListDatabasesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.ListDatabasesResponse} [response] ListDatabasesResponse
+ */
+
+ /**
+ * Calls ListDatabases.
+ * @function listDatabases
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListDatabasesRequest} request ListDatabasesRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ListDatabasesCallback} callback Node-style callback called with the error, if any, and ListDatabasesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.listDatabases = function listDatabases(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listDatabases, $root.google.firestore.admin.v1.ListDatabasesRequest, $root.google.firestore.admin.v1.ListDatabasesResponse, request, callback);
+ }, "name", { value: "ListDatabases" });
+
+ /**
+ * Calls ListDatabases.
+ * @function listDatabases
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListDatabasesRequest} request ListDatabasesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|updateDatabase}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef UpdateDatabaseCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateDatabase.
+ * @function updateDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IUpdateDatabaseRequest} request UpdateDatabaseRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.UpdateDatabaseCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.updateDatabase = function updateDatabase(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, updateDatabase, $root.google.firestore.admin.v1.UpdateDatabaseRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateDatabase" });
+
+ /**
+ * Calls UpdateDatabase.
+ * @function updateDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IUpdateDatabaseRequest} request UpdateDatabaseRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteDatabase}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef DeleteDatabaseCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteDatabase.
+ * @function deleteDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteDatabaseRequest} request DeleteDatabaseRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.DeleteDatabaseCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.deleteDatabase = function deleteDatabase(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteDatabase, $root.google.firestore.admin.v1.DeleteDatabaseRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteDatabase" });
+
+ /**
+ * Calls DeleteDatabase.
+ * @function deleteDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteDatabaseRequest} request DeleteDatabaseRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createUserCreds}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef CreateUserCredsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.UserCreds} [response] UserCreds
+ */
+
+ /**
+ * Calls CreateUserCreds.
+ * @function createUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateUserCredsRequest} request CreateUserCredsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.CreateUserCredsCallback} callback Node-style callback called with the error, if any, and UserCreds
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.createUserCreds = function createUserCreds(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, createUserCreds, $root.google.firestore.admin.v1.CreateUserCredsRequest, $root.google.firestore.admin.v1.UserCreds, request, callback);
+ }, "name", { value: "CreateUserCreds" });
+
+ /**
+ * Calls CreateUserCreds.
+ * @function createUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateUserCredsRequest} request CreateUserCredsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getUserCreds}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef GetUserCredsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.UserCreds} [response] UserCreds
+ */
+
+ /**
+ * Calls GetUserCreds.
+ * @function getUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetUserCredsRequest} request GetUserCredsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.GetUserCredsCallback} callback Node-style callback called with the error, if any, and UserCreds
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.getUserCreds = function getUserCreds(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getUserCreds, $root.google.firestore.admin.v1.GetUserCredsRequest, $root.google.firestore.admin.v1.UserCreds, request, callback);
+ }, "name", { value: "GetUserCreds" });
+
+ /**
+ * Calls GetUserCreds.
+ * @function getUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetUserCredsRequest} request GetUserCredsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listUserCreds}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ListUserCredsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.ListUserCredsResponse} [response] ListUserCredsResponse
+ */
+
+ /**
+ * Calls ListUserCreds.
+ * @function listUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListUserCredsRequest} request ListUserCredsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ListUserCredsCallback} callback Node-style callback called with the error, if any, and ListUserCredsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.listUserCreds = function listUserCreds(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listUserCreds, $root.google.firestore.admin.v1.ListUserCredsRequest, $root.google.firestore.admin.v1.ListUserCredsResponse, request, callback);
+ }, "name", { value: "ListUserCreds" });
+
+ /**
+ * Calls ListUserCreds.
+ * @function listUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListUserCredsRequest} request ListUserCredsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|enableUserCreds}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef EnableUserCredsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.UserCreds} [response] UserCreds
+ */
+
+ /**
+ * Calls EnableUserCreds.
+ * @function enableUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IEnableUserCredsRequest} request EnableUserCredsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.EnableUserCredsCallback} callback Node-style callback called with the error, if any, and UserCreds
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.enableUserCreds = function enableUserCreds(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, enableUserCreds, $root.google.firestore.admin.v1.EnableUserCredsRequest, $root.google.firestore.admin.v1.UserCreds, request, callback);
+ }, "name", { value: "EnableUserCreds" });
+
+ /**
+ * Calls EnableUserCreds.
+ * @function enableUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IEnableUserCredsRequest} request EnableUserCredsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|disableUserCreds}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef DisableUserCredsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.UserCreds} [response] UserCreds
+ */
+
+ /**
+ * Calls DisableUserCreds.
+ * @function disableUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDisableUserCredsRequest} request DisableUserCredsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.DisableUserCredsCallback} callback Node-style callback called with the error, if any, and UserCreds
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.disableUserCreds = function disableUserCreds(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, disableUserCreds, $root.google.firestore.admin.v1.DisableUserCredsRequest, $root.google.firestore.admin.v1.UserCreds, request, callback);
+ }, "name", { value: "DisableUserCreds" });
+
+ /**
+ * Calls DisableUserCreds.
+ * @function disableUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDisableUserCredsRequest} request DisableUserCredsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|resetUserPassword}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ResetUserPasswordCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.UserCreds} [response] UserCreds
+ */
+
+ /**
+ * Calls ResetUserPassword.
+ * @function resetUserPassword
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IResetUserPasswordRequest} request ResetUserPasswordRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ResetUserPasswordCallback} callback Node-style callback called with the error, if any, and UserCreds
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.resetUserPassword = function resetUserPassword(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, resetUserPassword, $root.google.firestore.admin.v1.ResetUserPasswordRequest, $root.google.firestore.admin.v1.UserCreds, request, callback);
+ }, "name", { value: "ResetUserPassword" });
+
+ /**
+ * Calls ResetUserPassword.
+ * @function resetUserPassword
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IResetUserPasswordRequest} request ResetUserPasswordRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteUserCreds}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef DeleteUserCredsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteUserCreds.
+ * @function deleteUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteUserCredsRequest} request DeleteUserCredsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.DeleteUserCredsCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.deleteUserCreds = function deleteUserCreds(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteUserCreds, $root.google.firestore.admin.v1.DeleteUserCredsRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteUserCreds" });
+
+ /**
+ * Calls DeleteUserCreds.
+ * @function deleteUserCreds
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteUserCredsRequest} request DeleteUserCredsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getBackup}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef GetBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.Backup} [response] Backup
+ */
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.GetBackupCallback} callback Node-style callback called with the error, if any, and Backup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.getBackup = function getBackup(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getBackup, $root.google.firestore.admin.v1.GetBackupRequest, $root.google.firestore.admin.v1.Backup, request, callback);
+ }, "name", { value: "GetBackup" });
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listBackups}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ListBackupsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.ListBackupsResponse} [response] ListBackupsResponse
+ */
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ListBackupsCallback} callback Node-style callback called with the error, if any, and ListBackupsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.listBackups = function listBackups(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listBackups, $root.google.firestore.admin.v1.ListBackupsRequest, $root.google.firestore.admin.v1.ListBackupsResponse, request, callback);
+ }, "name", { value: "ListBackups" });
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteBackup}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef DeleteBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.DeleteBackupCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.deleteBackup = function deleteBackup(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteBackup, $root.google.firestore.admin.v1.DeleteBackupRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteBackup" });
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|restoreDatabase}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef RestoreDatabaseCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RestoreDatabase.
+ * @function restoreDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IRestoreDatabaseRequest} request RestoreDatabaseRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.RestoreDatabaseCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.restoreDatabase = function restoreDatabase(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, restoreDatabase, $root.google.firestore.admin.v1.RestoreDatabaseRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RestoreDatabase" });
+
+ /**
+ * Calls RestoreDatabase.
+ * @function restoreDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IRestoreDatabaseRequest} request RestoreDatabaseRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|createBackupSchedule}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef CreateBackupScheduleCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.BackupSchedule} [response] BackupSchedule
+ */
+
+ /**
+ * Calls CreateBackupSchedule.
+ * @function createBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateBackupScheduleRequest} request CreateBackupScheduleRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.CreateBackupScheduleCallback} callback Node-style callback called with the error, if any, and BackupSchedule
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.createBackupSchedule = function createBackupSchedule(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, createBackupSchedule, $root.google.firestore.admin.v1.CreateBackupScheduleRequest, $root.google.firestore.admin.v1.BackupSchedule, request, callback);
+ }, "name", { value: "CreateBackupSchedule" });
+
+ /**
+ * Calls CreateBackupSchedule.
+ * @function createBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICreateBackupScheduleRequest} request CreateBackupScheduleRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|getBackupSchedule}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef GetBackupScheduleCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.BackupSchedule} [response] BackupSchedule
+ */
+
+ /**
+ * Calls GetBackupSchedule.
+ * @function getBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetBackupScheduleRequest} request GetBackupScheduleRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.GetBackupScheduleCallback} callback Node-style callback called with the error, if any, and BackupSchedule
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.getBackupSchedule = function getBackupSchedule(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getBackupSchedule, $root.google.firestore.admin.v1.GetBackupScheduleRequest, $root.google.firestore.admin.v1.BackupSchedule, request, callback);
+ }, "name", { value: "GetBackupSchedule" });
+
+ /**
+ * Calls GetBackupSchedule.
+ * @function getBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IGetBackupScheduleRequest} request GetBackupScheduleRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|listBackupSchedules}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef ListBackupSchedulesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.ListBackupSchedulesResponse} [response] ListBackupSchedulesResponse
+ */
+
+ /**
+ * Calls ListBackupSchedules.
+ * @function listBackupSchedules
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListBackupSchedulesRequest} request ListBackupSchedulesRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.ListBackupSchedulesCallback} callback Node-style callback called with the error, if any, and ListBackupSchedulesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.listBackupSchedules = function listBackupSchedules(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listBackupSchedules, $root.google.firestore.admin.v1.ListBackupSchedulesRequest, $root.google.firestore.admin.v1.ListBackupSchedulesResponse, request, callback);
+ }, "name", { value: "ListBackupSchedules" });
+
+ /**
+ * Calls ListBackupSchedules.
+ * @function listBackupSchedules
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IListBackupSchedulesRequest} request ListBackupSchedulesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|updateBackupSchedule}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef UpdateBackupScheduleCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.admin.v1.BackupSchedule} [response] BackupSchedule
+ */
+
+ /**
+ * Calls UpdateBackupSchedule.
+ * @function updateBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IUpdateBackupScheduleRequest} request UpdateBackupScheduleRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.UpdateBackupScheduleCallback} callback Node-style callback called with the error, if any, and BackupSchedule
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.updateBackupSchedule = function updateBackupSchedule(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, updateBackupSchedule, $root.google.firestore.admin.v1.UpdateBackupScheduleRequest, $root.google.firestore.admin.v1.BackupSchedule, request, callback);
+ }, "name", { value: "UpdateBackupSchedule" });
+
+ /**
+ * Calls UpdateBackupSchedule.
+ * @function updateBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IUpdateBackupScheduleRequest} request UpdateBackupScheduleRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|deleteBackupSchedule}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef DeleteBackupScheduleCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteBackupSchedule.
+ * @function deleteBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteBackupScheduleRequest} request DeleteBackupScheduleRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.DeleteBackupScheduleCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.deleteBackupSchedule = function deleteBackupSchedule(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteBackupSchedule, $root.google.firestore.admin.v1.DeleteBackupScheduleRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteBackupSchedule" });
+
+ /**
+ * Calls DeleteBackupSchedule.
+ * @function deleteBackupSchedule
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.IDeleteBackupScheduleRequest} request DeleteBackupScheduleRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin|cloneDatabase}.
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @typedef CloneDatabaseCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CloneDatabase.
+ * @function cloneDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICloneDatabaseRequest} request CloneDatabaseRequest message or plain object
+ * @param {google.firestore.admin.v1.FirestoreAdmin.CloneDatabaseCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FirestoreAdmin.prototype.cloneDatabase = function cloneDatabase(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, cloneDatabase, $root.google.firestore.admin.v1.CloneDatabaseRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CloneDatabase" });
+
+ /**
+ * Calls CloneDatabase.
+ * @function cloneDatabase
+ * @memberof google.firestore.admin.v1.FirestoreAdmin
+ * @instance
+ * @param {google.firestore.admin.v1.ICloneDatabaseRequest} request CloneDatabaseRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return FirestoreAdmin;
+ })();
+
+ v1.ListDatabasesRequest = (function() {
+
+ /**
+ * Properties of a ListDatabasesRequest.
+ * @memberof google.firestore.admin.v1
+ * @interface IListDatabasesRequest
+ * @property {string|null} [parent] ListDatabasesRequest parent
+ * @property {boolean|null} [showDeleted] ListDatabasesRequest showDeleted
+ */
+
+ /**
+ * Constructs a new ListDatabasesRequest.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a ListDatabasesRequest.
+ * @implements IListDatabasesRequest
+ * @constructor
+ * @param {google.firestore.admin.v1.IListDatabasesRequest=} [properties] Properties to set
+ */
+ function ListDatabasesRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListDatabasesRequest parent.
+ * @member {string} parent
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @instance
+ */
+ ListDatabasesRequest.prototype.parent = "";
+
+ /**
+ * ListDatabasesRequest showDeleted.
+ * @member {boolean} showDeleted
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @instance
+ */
+ ListDatabasesRequest.prototype.showDeleted = false;
+
+ /**
+ * Creates a new ListDatabasesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {google.firestore.admin.v1.IListDatabasesRequest=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.ListDatabasesRequest} ListDatabasesRequest instance
+ */
+ ListDatabasesRequest.create = function create(properties) {
+ return new ListDatabasesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListDatabasesRequest message. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {google.firestore.admin.v1.IListDatabasesRequest} message ListDatabasesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatabasesRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.showDeleted);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDatabasesRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {google.firestore.admin.v1.IListDatabasesRequest} message ListDatabasesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatabasesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDatabasesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.ListDatabasesRequest} ListDatabasesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatabasesRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.ListDatabasesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 4: {
+ message.showDeleted = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDatabasesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.ListDatabasesRequest} ListDatabasesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatabasesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDatabasesRequest message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDatabasesRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted"))
+ if (typeof message.showDeleted !== "boolean")
+ return "showDeleted: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDatabasesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.ListDatabasesRequest} ListDatabasesRequest
+ */
+ ListDatabasesRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.ListDatabasesRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.ListDatabasesRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.ListDatabasesRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.showDeleted != null)
+ message.showDeleted = Boolean(object.showDeleted);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDatabasesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {google.firestore.admin.v1.ListDatabasesRequest} message ListDatabasesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDatabasesRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.showDeleted = false;
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.showDeleted != null && Object.hasOwnProperty.call(message, "showDeleted"))
+ object.showDeleted = message.showDeleted;
+ return object;
+ };
+
+ /**
+ * Converts this ListDatabasesRequest to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDatabasesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDatabasesRequest
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDatabasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.ListDatabasesRequest";
+ };
+
+ return ListDatabasesRequest;
+ })();
+
+ v1.CreateDatabaseRequest = (function() {
+
+ /**
+ * Properties of a CreateDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @interface ICreateDatabaseRequest
+ * @property {string|null} [parent] CreateDatabaseRequest parent
+ * @property {google.firestore.admin.v1.IDatabase|null} [database] CreateDatabaseRequest database
+ * @property {string|null} [databaseId] CreateDatabaseRequest databaseId
+ */
+
+ /**
+ * Constructs a new CreateDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a CreateDatabaseRequest.
+ * @implements ICreateDatabaseRequest
+ * @constructor
+ * @param {google.firestore.admin.v1.ICreateDatabaseRequest=} [properties] Properties to set
+ */
+ function CreateDatabaseRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CreateDatabaseRequest parent.
+ * @member {string} parent
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @instance
+ */
+ CreateDatabaseRequest.prototype.parent = "";
+
+ /**
+ * CreateDatabaseRequest database.
+ * @member {google.firestore.admin.v1.IDatabase|null|undefined} database
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @instance
+ */
+ CreateDatabaseRequest.prototype.database = null;
+
+ /**
+ * CreateDatabaseRequest databaseId.
+ * @member {string} databaseId
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @instance
+ */
+ CreateDatabaseRequest.prototype.databaseId = "";
+
+ /**
+ * Creates a new CreateDatabaseRequest instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.ICreateDatabaseRequest=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.CreateDatabaseRequest} CreateDatabaseRequest instance
+ */
+ CreateDatabaseRequest.create = function create(properties) {
+ return new CreateDatabaseRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.ICreateDatabaseRequest} message CreateDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDatabaseRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
+ $root.google.firestore.admin.v1.Database.encode(message.database, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.databaseId != null && Object.hasOwnProperty.call(message, "databaseId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.databaseId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.ICreateDatabaseRequest} message CreateDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDatabaseRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateDatabaseRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.CreateDatabaseRequest} CreateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDatabaseRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.CreateDatabaseRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.database = $root.google.firestore.admin.v1.Database.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.databaseId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.CreateDatabaseRequest} CreateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDatabaseRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateDatabaseRequest message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateDatabaseRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.database != null && Object.hasOwnProperty.call(message, "database")) {
+ var error = $root.google.firestore.admin.v1.Database.verify(message.database, long + 1);
+ if (error)
+ return "database." + error;
+ }
+ if (message.databaseId != null && Object.hasOwnProperty.call(message, "databaseId"))
+ if (!$util.isString(message.databaseId))
+ return "databaseId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.CreateDatabaseRequest} CreateDatabaseRequest
+ */
+ CreateDatabaseRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.CreateDatabaseRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.CreateDatabaseRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.CreateDatabaseRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.database != null) {
+ if (!$util.isObject(object.database))
+ throw TypeError(".google.firestore.admin.v1.CreateDatabaseRequest.database: object expected");
+ message.database = $root.google.firestore.admin.v1.Database.fromObject(object.database, long + 1);
+ }
+ if (object.databaseId != null)
+ message.databaseId = String(object.databaseId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateDatabaseRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.CreateDatabaseRequest} message CreateDatabaseRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateDatabaseRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.database = null;
+ object.databaseId = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
+ object.database = $root.google.firestore.admin.v1.Database.toObject(message.database, options, q + 1);
+ if (message.databaseId != null && Object.hasOwnProperty.call(message, "databaseId"))
+ object.databaseId = message.databaseId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateDatabaseRequest to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateDatabaseRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateDatabaseRequest
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.CreateDatabaseRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateDatabaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.CreateDatabaseRequest";
+ };
+
+ return CreateDatabaseRequest;
+ })();
+
+ v1.CreateDatabaseMetadata = (function() {
+
+ /**
+ * Properties of a CreateDatabaseMetadata.
+ * @memberof google.firestore.admin.v1
+ * @interface ICreateDatabaseMetadata
+ */
+
+ /**
+ * Constructs a new CreateDatabaseMetadata.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a CreateDatabaseMetadata.
+ * @implements ICreateDatabaseMetadata
+ * @constructor
+ * @param {google.firestore.admin.v1.ICreateDatabaseMetadata=} [properties] Properties to set
+ */
+ function CreateDatabaseMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new CreateDatabaseMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.ICreateDatabaseMetadata=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.CreateDatabaseMetadata} CreateDatabaseMetadata instance
+ */
+ CreateDatabaseMetadata.create = function create(properties) {
+ return new CreateDatabaseMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified CreateDatabaseMetadata message. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.ICreateDatabaseMetadata} message CreateDatabaseMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDatabaseMetadata.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateDatabaseMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.CreateDatabaseMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.ICreateDatabaseMetadata} message CreateDatabaseMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateDatabaseMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateDatabaseMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.CreateDatabaseMetadata} CreateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDatabaseMetadata.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.CreateDatabaseMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateDatabaseMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.CreateDatabaseMetadata} CreateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateDatabaseMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateDatabaseMetadata message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateDatabaseMetadata.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ return null;
+ };
+
+ /**
+ * Creates a CreateDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.CreateDatabaseMetadata} CreateDatabaseMetadata
+ */
+ CreateDatabaseMetadata.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.CreateDatabaseMetadata)
+ return object;
+ return new $root.google.firestore.admin.v1.CreateDatabaseMetadata();
+ };
+
+ /**
+ * Creates a plain object from a CreateDatabaseMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.CreateDatabaseMetadata} message CreateDatabaseMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateDatabaseMetadata.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this CreateDatabaseMetadata to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateDatabaseMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateDatabaseMetadata
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.CreateDatabaseMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateDatabaseMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.CreateDatabaseMetadata";
+ };
+
+ return CreateDatabaseMetadata;
+ })();
+
+ v1.ListDatabasesResponse = (function() {
+
+ /**
+ * Properties of a ListDatabasesResponse.
+ * @memberof google.firestore.admin.v1
+ * @interface IListDatabasesResponse
+ * @property {Array.|null} [databases] ListDatabasesResponse databases
+ * @property {Array.|null} [unreachable] ListDatabasesResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListDatabasesResponse.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a ListDatabasesResponse.
+ * @implements IListDatabasesResponse
+ * @constructor
+ * @param {google.firestore.admin.v1.IListDatabasesResponse=} [properties] Properties to set
+ */
+ function ListDatabasesResponse(properties) {
+ this.databases = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListDatabasesResponse databases.
+ * @member {Array.} databases
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @instance
+ */
+ ListDatabasesResponse.prototype.databases = $util.emptyArray;
+
+ /**
+ * ListDatabasesResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @instance
+ */
+ ListDatabasesResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListDatabasesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {google.firestore.admin.v1.IListDatabasesResponse=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.ListDatabasesResponse} ListDatabasesResponse instance
+ */
+ ListDatabasesResponse.create = function create(properties) {
+ return new ListDatabasesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListDatabasesResponse message. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {google.firestore.admin.v1.IListDatabasesResponse} message ListDatabasesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatabasesResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.databases != null && message.databases.length)
+ for (var i = 0; i < message.databases.length; ++i)
+ $root.google.firestore.admin.v1.Database.encode(message.databases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDatabasesResponse message, length delimited. Does not implicitly {@link google.firestore.admin.v1.ListDatabasesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {google.firestore.admin.v1.IListDatabasesResponse} message ListDatabasesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatabasesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDatabasesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.ListDatabasesResponse} ListDatabasesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatabasesResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.ListDatabasesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.databases && message.databases.length))
+ message.databases = [];
+ message.databases.push($root.google.firestore.admin.v1.Database.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDatabasesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.ListDatabasesResponse} ListDatabasesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatabasesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDatabasesResponse message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDatabasesResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.databases != null && Object.hasOwnProperty.call(message, "databases")) {
+ if (!Array.isArray(message.databases))
+ return "databases: array expected";
+ for (var i = 0; i < message.databases.length; ++i) {
+ var error = $root.google.firestore.admin.v1.Database.verify(message.databases[i], long + 1);
+ if (error)
+ return "databases." + error;
+ }
+ }
+ if (message.unreachable != null && Object.hasOwnProperty.call(message, "unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListDatabasesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.ListDatabasesResponse} ListDatabasesResponse
+ */
+ ListDatabasesResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.ListDatabasesResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.ListDatabasesResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.ListDatabasesResponse();
+ if (object.databases) {
+ if (!Array.isArray(object.databases))
+ throw TypeError(".google.firestore.admin.v1.ListDatabasesResponse.databases: array expected");
+ message.databases = [];
+ for (var i = 0; i < object.databases.length; ++i) {
+ if (!$util.isObject(object.databases[i]))
+ throw TypeError(".google.firestore.admin.v1.ListDatabasesResponse.databases: object expected");
+ message.databases[i] = $root.google.firestore.admin.v1.Database.fromObject(object.databases[i], long + 1);
+ }
+ }
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.firestore.admin.v1.ListDatabasesResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDatabasesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {google.firestore.admin.v1.ListDatabasesResponse} message ListDatabasesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDatabasesResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.databases = [];
+ object.unreachable = [];
+ }
+ if (message.databases && message.databases.length) {
+ object.databases = [];
+ for (var j = 0; j < message.databases.length; ++j)
+ object.databases[j] = $root.google.firestore.admin.v1.Database.toObject(message.databases[j], options, q + 1);
+ }
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListDatabasesResponse to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDatabasesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDatabasesResponse
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.ListDatabasesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDatabasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.ListDatabasesResponse";
+ };
+
+ return ListDatabasesResponse;
+ })();
+
+ v1.GetDatabaseRequest = (function() {
+
+ /**
+ * Properties of a GetDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @interface IGetDatabaseRequest
+ * @property {string|null} [name] GetDatabaseRequest name
+ */
+
+ /**
+ * Constructs a new GetDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a GetDatabaseRequest.
+ * @implements IGetDatabaseRequest
+ * @constructor
+ * @param {google.firestore.admin.v1.IGetDatabaseRequest=} [properties] Properties to set
+ */
+ function GetDatabaseRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetDatabaseRequest name.
+ * @member {string} name
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @instance
+ */
+ GetDatabaseRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetDatabaseRequest instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IGetDatabaseRequest=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.GetDatabaseRequest} GetDatabaseRequest instance
+ */
+ GetDatabaseRequest.create = function create(properties) {
+ return new GetDatabaseRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.GetDatabaseRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IGetDatabaseRequest} message GetDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDatabaseRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.GetDatabaseRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IGetDatabaseRequest} message GetDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDatabaseRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetDatabaseRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.GetDatabaseRequest} GetDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDatabaseRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.GetDatabaseRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.GetDatabaseRequest} GetDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDatabaseRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetDatabaseRequest message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetDatabaseRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.GetDatabaseRequest} GetDatabaseRequest
+ */
+ GetDatabaseRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.GetDatabaseRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.GetDatabaseRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.GetDatabaseRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetDatabaseRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.GetDatabaseRequest} message GetDatabaseRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetDatabaseRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetDatabaseRequest to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetDatabaseRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetDatabaseRequest
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.GetDatabaseRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetDatabaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.GetDatabaseRequest";
+ };
+
+ return GetDatabaseRequest;
+ })();
+
+ v1.UpdateDatabaseRequest = (function() {
+
+ /**
+ * Properties of an UpdateDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @interface IUpdateDatabaseRequest
+ * @property {google.firestore.admin.v1.IDatabase|null} [database] UpdateDatabaseRequest database
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDatabaseRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents an UpdateDatabaseRequest.
+ * @implements IUpdateDatabaseRequest
+ * @constructor
+ * @param {google.firestore.admin.v1.IUpdateDatabaseRequest=} [properties] Properties to set
+ */
+ function UpdateDatabaseRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * UpdateDatabaseRequest database.
+ * @member {google.firestore.admin.v1.IDatabase|null|undefined} database
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @instance
+ */
+ UpdateDatabaseRequest.prototype.database = null;
+
+ /**
+ * UpdateDatabaseRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @instance
+ */
+ UpdateDatabaseRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateDatabaseRequest instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IUpdateDatabaseRequest=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.UpdateDatabaseRequest} UpdateDatabaseRequest instance
+ */
+ UpdateDatabaseRequest.create = function create(properties) {
+ return new UpdateDatabaseRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IUpdateDatabaseRequest} message UpdateDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDatabaseRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
+ $root.google.firestore.admin.v1.Database.encode(message.database, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IUpdateDatabaseRequest} message UpdateDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDatabaseRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateDatabaseRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.UpdateDatabaseRequest} UpdateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDatabaseRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.UpdateDatabaseRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.database = $root.google.firestore.admin.v1.Database.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.UpdateDatabaseRequest} UpdateDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDatabaseRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateDatabaseRequest message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateDatabaseRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.database != null && Object.hasOwnProperty.call(message, "database")) {
+ var error = $root.google.firestore.admin.v1.Database.verify(message.database, long + 1);
+ if (error)
+ return "database." + error;
+ }
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask, long + 1);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.UpdateDatabaseRequest} UpdateDatabaseRequest
+ */
+ UpdateDatabaseRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.UpdateDatabaseRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.UpdateDatabaseRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.UpdateDatabaseRequest();
+ if (object.database != null) {
+ if (!$util.isObject(object.database))
+ throw TypeError(".google.firestore.admin.v1.UpdateDatabaseRequest.database: object expected");
+ message.database = $root.google.firestore.admin.v1.Database.fromObject(object.database, long + 1);
+ }
+ if (object.updateMask != null) {
+ if (!$util.isObject(object.updateMask))
+ throw TypeError(".google.firestore.admin.v1.UpdateDatabaseRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateDatabaseRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.UpdateDatabaseRequest} message UpdateDatabaseRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateDatabaseRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.database = null;
+ object.updateMask = null;
+ }
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
+ object.database = $root.google.firestore.admin.v1.Database.toObject(message.database, options, q + 1);
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateDatabaseRequest to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateDatabaseRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateDatabaseRequest
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.UpdateDatabaseRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateDatabaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.UpdateDatabaseRequest";
+ };
+
+ return UpdateDatabaseRequest;
+ })();
+
+ v1.UpdateDatabaseMetadata = (function() {
+
+ /**
+ * Properties of an UpdateDatabaseMetadata.
+ * @memberof google.firestore.admin.v1
+ * @interface IUpdateDatabaseMetadata
+ */
+
+ /**
+ * Constructs a new UpdateDatabaseMetadata.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents an UpdateDatabaseMetadata.
+ * @implements IUpdateDatabaseMetadata
+ * @constructor
+ * @param {google.firestore.admin.v1.IUpdateDatabaseMetadata=} [properties] Properties to set
+ */
+ function UpdateDatabaseMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new UpdateDatabaseMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.IUpdateDatabaseMetadata=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.UpdateDatabaseMetadata} UpdateDatabaseMetadata instance
+ */
+ UpdateDatabaseMetadata.create = function create(properties) {
+ return new UpdateDatabaseMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateDatabaseMetadata message. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.IUpdateDatabaseMetadata} message UpdateDatabaseMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDatabaseMetadata.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateDatabaseMetadata message, length delimited. Does not implicitly {@link google.firestore.admin.v1.UpdateDatabaseMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.IUpdateDatabaseMetadata} message UpdateDatabaseMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateDatabaseMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateDatabaseMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.UpdateDatabaseMetadata} UpdateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDatabaseMetadata.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.UpdateDatabaseMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateDatabaseMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.UpdateDatabaseMetadata} UpdateDatabaseMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateDatabaseMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateDatabaseMetadata message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateDatabaseMetadata.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.UpdateDatabaseMetadata} UpdateDatabaseMetadata
+ */
+ UpdateDatabaseMetadata.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.UpdateDatabaseMetadata)
+ return object;
+ return new $root.google.firestore.admin.v1.UpdateDatabaseMetadata();
+ };
+
+ /**
+ * Creates a plain object from an UpdateDatabaseMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {google.firestore.admin.v1.UpdateDatabaseMetadata} message UpdateDatabaseMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateDatabaseMetadata.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this UpdateDatabaseMetadata to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateDatabaseMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateDatabaseMetadata
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.UpdateDatabaseMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateDatabaseMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.UpdateDatabaseMetadata";
+ };
+
+ return UpdateDatabaseMetadata;
+ })();
+
+ v1.DeleteDatabaseRequest = (function() {
+
+ /**
+ * Properties of a DeleteDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @interface IDeleteDatabaseRequest
+ * @property {string|null} [name] DeleteDatabaseRequest name
+ * @property {string|null} [etag] DeleteDatabaseRequest etag
+ */
+
+ /**
+ * Constructs a new DeleteDatabaseRequest.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a DeleteDatabaseRequest.
+ * @implements IDeleteDatabaseRequest
+ * @constructor
+ * @param {google.firestore.admin.v1.IDeleteDatabaseRequest=} [properties] Properties to set
+ */
+ function DeleteDatabaseRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DeleteDatabaseRequest name.
+ * @member {string} name
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @instance
+ */
+ DeleteDatabaseRequest.prototype.name = "";
+
+ /**
+ * DeleteDatabaseRequest etag.
+ * @member {string} etag
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @instance
+ */
+ DeleteDatabaseRequest.prototype.etag = "";
+
+ /**
+ * Creates a new DeleteDatabaseRequest instance using the specified properties.
+ * @function create
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IDeleteDatabaseRequest=} [properties] Properties to set
+ * @returns {google.firestore.admin.v1.DeleteDatabaseRequest} DeleteDatabaseRequest instance
+ */
+ DeleteDatabaseRequest.create = function create(properties) {
+ return new DeleteDatabaseRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteDatabaseRequest message. Does not implicitly {@link google.firestore.admin.v1.DeleteDatabaseRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IDeleteDatabaseRequest} message DeleteDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDatabaseRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteDatabaseRequest message, length delimited. Does not implicitly {@link google.firestore.admin.v1.DeleteDatabaseRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.IDeleteDatabaseRequest} message DeleteDatabaseRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDatabaseRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteDatabaseRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.firestore.admin.v1.DeleteDatabaseRequest} DeleteDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDatabaseRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.firestore.admin.v1.DeleteDatabaseRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.etag = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteDatabaseRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.firestore.admin.v1.DeleteDatabaseRequest} DeleteDatabaseRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDatabaseRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteDatabaseRequest message.
+ * @function verify
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteDatabaseRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteDatabaseRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.DeleteDatabaseRequest} DeleteDatabaseRequest
+ */
+ DeleteDatabaseRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.firestore.admin.v1.DeleteDatabaseRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.firestore.admin.v1.DeleteDatabaseRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.firestore.admin.v1.DeleteDatabaseRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteDatabaseRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @static
+ * @param {google.firestore.admin.v1.DeleteDatabaseRequest} message DeleteDatabaseRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteDatabaseRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.etag = "";
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ object.etag = message.etag;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteDatabaseRequest to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.DeleteDatabaseRequest
+ * @instance
+ * @returns {Object.