diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 34bb2086d..460f67f2b 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
- digest: sha256:68e1cece0d6d3336c4f1cb9d2857b020af5574dff6da6349293d1c6d4eea82d8
-# created: 2024-05-31T15:46:42.989947733Z
+ digest: sha256:a5af6af827a9fffba373151e1453b0498da288024cdd16477900dd42857a42e0
+# created: 2024-09-20T20:26:11.126243246Z
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 000000000..022ad3f3a
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,99 @@
+name: Bug Report
+description: Create a report to help us improve
+labels:
+ - bug
+body:
+ - type: markdown
+ attributes:
+ value: >
+ **PLEASE READ**: If you have a support contract with Google, please
+ create an issue in the [support
+ console](https://cloud.google.com/support/) instead of filing on GitHub.
+ This will ensure a timely response. Otherwise, please make sure to
+ follow the steps below.
+ - type: checkboxes
+ attributes:
+ label: Please make sure you have searched for information in the following
+ guides.
+ options:
+ - label: "Search the issues already opened:
+ https://github.com/GoogleCloudPlatform/google-cloud-node/issues"
+ required: true
+ - label: "Search StackOverflow:
+ http://stackoverflow.com/questions/tagged/google-cloud-platform+nod\
+ e.js"
+ required: true
+ - label: "Check our Troubleshooting guide:
+ https://googlecloudplatform.github.io/google-cloud-node/#/docs/guid\
+ es/troubleshooting"
+ required: true
+ - label: "Check our FAQ:
+ https://googlecloudplatform.github.io/google-cloud-node/#/docs/guid\
+ es/faq"
+ required: true
+ - label: "Check our libraries HOW-TO:
+ https://github.com/googleapis/gax-nodejs/blob/main/client-libraries\
+ .md"
+ required: true
+ - label: "Check out our authentication guide:
+ https://github.com/googleapis/google-auth-library-nodejs"
+ required: true
+ - label: "Check out handwritten samples for many of our APIs:
+ https://github.com/GoogleCloudPlatform/nodejs-docs-samples"
+ required: true
+ - type: textarea
+ attributes:
+ label: >
+ A screenshot that you have tested with "Try this API".
+ description: >
+ As our client libraries are mostly autogenerated, we kindly request
+ that you test whether your issue is with the client library, or with the
+ API itself. To do so, please search for your API
+ here: https://developers.google.com/apis-explorer and attempt to
+ reproduce the issue in the given method. Please include a screenshot of
+ the response in "Try this API". This response should NOT match the current
+ behavior you are experiencing. If the behavior is the same, it means
+ that you are likely experiencing a bug with the API itself. In that
+ case, please submit an issue to the API team, either by submitting an
+ issue in its issue tracker https://cloud.google.com/support/docs/issue-trackers, or by
+ submitting an issue in its linked tracker in the .repo-metadata.json
+ file https://issuetracker.google.com/savedsearches/5337669
+ validations:
+ required: true
+ - type: input
+ attributes:
+ label: >
+ Link to the code that reproduces this issue. A link to a **public** Github Repository or gist with a minimal
+ reproduction.
+ description: >
+ **Skipping this or providing an invalid link will result in the issue being closed**
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: >
+ A step-by-step description of how to reproduce the issue, based on
+ the linked reproduction.
+ description: >
+ Screenshots can be provided in the issue body below.
+ placeholder: |
+ 1. Start the application in development (next dev)
+ 2. Click X
+ 3. Y will happen
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: A clear and concise description of what the bug is, and what you
+ expected to happen.
+ placeholder: Following the steps from the previous section, I expected A to
+ happen, but I observed B instead
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
+ placeholder: 'Documentation here(link) states that B should happen instead of A'
+ validations:
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/documentation_request.yml b/.github/ISSUE_TEMPLATE/documentation_request.yml
new file mode 100644
index 000000000..24443e355
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/documentation_request.yml
@@ -0,0 +1,53 @@
+name: Documentation Requests
+description: Requests for more information
+body:
+ - type: markdown
+ attributes:
+ value: >
+ Please use this issue type to log documentation requests against the library itself.
+ These requests should involve documentation on Github (`.md` files), and should relate to the library
+ itself. If you have questions or documentation requests for an API, please
+ reach out to the API tracker itself.
+
+ Please submit an issue to the API team, either by submitting an
+ issue in its issue tracker https://cloud.google.com/support/docs/issue-trackers), or by
+ submitting an issue in its linked tracker in the .repo-metadata.json
+ file in the API under packages/* ([example](https://issuetracker.google.com/savedsearches/5337669)).
+ You can also submit a request to documentation on cloud.google.com itself with the "Send Feedback"
+ on the bottom of the page.
+
+
+ Please note that documentation requests and questions for specific APIs
+ will be closed.
+ - type: checkboxes
+ attributes:
+ label: Please make sure you have searched for information in the following
+ guides.
+ options:
+ - label: "Search the issues already opened:
+ https://github.com/GoogleCloudPlatform/google-cloud-node/issues"
+ required: true
+ - label: "Check our Troubleshooting guide:
+ https://googlecloudplatform.github.io/google-cloud-node/#/docs/guid\
+ es/troubleshooting"
+ required: true
+ - label: "Check our FAQ:
+ https://googlecloudplatform.github.io/google-cloud-node/#/docs/guid\
+ es/faq"
+ required: true
+ - label: "Check our libraries HOW-TO:
+ https://github.com/googleapis/gax-nodejs/blob/main/client-libraries\
+ .md"
+ required: true
+ - label: "Check out our authentication guide:
+ https://github.com/googleapis/google-auth-library-nodejs"
+ required: true
+ - label: "Check out handwritten samples for many of our APIs:
+ https://github.com/GoogleCloudPlatform/nodejs-docs-samples"
+ required: true
+ - type: textarea
+ attributes:
+ label: >
+ Documentation Request
+ validations:
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 000000000..4598e16f9
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,53 @@
+name: Feature Request
+description: Suggest an idea for this library
+labels:
+ - feature request
+body:
+ - type: markdown
+ attributes:
+ value: >
+ **PLEASE READ**: If you have a support contract with Google, please
+ create an issue in the [support
+ console](https://cloud.google.com/support/) instead of filing on GitHub.
+ This will ensure a timely response. Otherwise, please make sure to
+ follow the steps below.
+ - type: textarea
+ attributes:
+ label: >
+ A screenshot that you have tested with "Try this API".
+ description: >
+ As our client libraries are mostly autogenerated, we kindly request
+ that you test whether your feature request is with the client library, or with the
+ API itself. To do so, please search for your API
+ here: https://developers.google.com/apis-explorer and attempt to
+ reproduce the issue in the given method. Please include a screenshot of
+ the response in "Try this API". This response should NOT match the current
+ behavior you are experiencing. If the behavior is the same, it means
+ that you are likely requesting a feature for the API itself. In that
+ case, please submit an issue to the API team, either by submitting an
+ issue in its issue tracker https://cloud.google.com/support/docs/issue-trackers, or by
+ submitting an issue in its linked tracker in the .repo-metadata.json
+ file in the API under packages/* ([example](https://issuetracker.google.com/savedsearches/5337669))
+
+ Example of library specific issues would be: retry strategies, authentication questions, or issues with typings.
+ Examples of API issues would include: expanding method parameter types, adding functionality to an API.
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: >
+ What would you like to see in the library?
+ description: >
+ Screenshots can be provided in the issue body below.
+ placeholder: |
+ 1. Set up authentication like so
+ 2. Run the program like so
+ 3. X would be nice to happen
+
+ - type: textarea
+ attributes:
+ label: Describe alternatives you've considered
+
+ - type: textarea
+ attributes:
+ label: Additional context/notes
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/processs_request.md b/.github/ISSUE_TEMPLATE/processs_request.md
new file mode 100644
index 000000000..9f88fc1f3
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/processs_request.md
@@ -0,0 +1,5 @@
+---
+name: Process Request
+about: Submit a process request to the library. Process requests are any requests related to library infrastructure, including CI/CD, publishing, releasing, etc. This issue template should primarily used by internal members.
+
+---
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/questions.md b/.github/ISSUE_TEMPLATE/questions.md
new file mode 100644
index 000000000..62c1dd1b9
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/questions.md
@@ -0,0 +1,8 @@
+---
+name: Question
+about: If you have a question, please use Discussions
+
+---
+
+If you have a general question that goes beyond the library itself, we encourage you to use [Discussions](https://github.com//discussions)
+to engage with fellow community members!
diff --git a/.github/auto-approve.yml b/.github/auto-approve.yml
index ec51b072d..7cba0af63 100644
--- a/.github/auto-approve.yml
+++ b/.github/auto-approve.yml
@@ -1,4 +1,2 @@
processes:
- - "NodeDependency"
- - "OwlBotTemplateChangesNode"
- - "OwlBotPRsNode"
\ No newline at end of file
+ - "NodeDependency"
\ No newline at end of file
diff --git a/.github/scripts/close-invalid-link.cjs b/.github/scripts/close-invalid-link.cjs
new file mode 100644
index 000000000..ba7d51372
--- /dev/null
+++ b/.github/scripts/close-invalid-link.cjs
@@ -0,0 +1,53 @@
+// Copyright 2024 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.
+
+async function closeIssue(github, owner, repo, number) {
+ await github.rest.issues.createComment({
+ owner: owner,
+ repo: repo,
+ issue_number: number,
+ body: 'Issue was opened with an invalid reproduction link. Please make sure the repository is a valid, publicly-accessible github repository, and make sure the url is complete (example: https://github.com/googleapis/google-cloud-node)'
+ });
+ await github.rest.issues.update({
+ owner: owner,
+ repo: repo,
+ issue_number: number,
+ state: 'closed'
+ });
+}
+module.exports = async ({github, context}) => {
+ const owner = context.repo.owner;
+ const repo = context.repo.repo;
+ const number = context.issue.number;
+
+ const issue = await github.rest.issues.get({
+ owner: owner,
+ repo: repo,
+ issue_number: number,
+ });
+
+ const isBugTemplate = issue.data.body.includes('Link to the code that reproduces this issue');
+
+ if (isBugTemplate) {
+ try {
+ const link = issue.data.body.split('\n')[18].match(/(https?:\/\/g?i?s?t?\.?github.com\/.*)/);
+ const isValidLink = (await fetch(link)).ok;
+ if (!isValidLink) {
+ await closeIssue(github, owner, repo, number);
+ }
+ } catch (err) {
+ await closeIssue(github, owner, repo, number);
+ }
+ }
+};
diff --git a/.github/scripts/close-unresponsive.cjs b/.github/scripts/close-unresponsive.cjs
new file mode 100644
index 000000000..142dc1265
--- /dev/null
+++ b/.github/scripts/close-unresponsive.cjs
@@ -0,0 +1,69 @@
+// Copyright 2024 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.
+
+function labeledEvent(data) {
+ return data.event === 'labeled' && data.label.name === 'needs more info';
+ }
+
+ const numberOfDaysLimit = 15;
+ const close_message = `This has been closed since a request for information has \
+ not been answered for ${numberOfDaysLimit} days. It can be reopened when the \
+ requested information is provided.`;
+
+ module.exports = async ({github, context}) => {
+ const owner = context.repo.owner;
+ const repo = context.repo.repo;
+
+ const issues = await github.rest.issues.listForRepo({
+ owner: owner,
+ repo: repo,
+ labels: 'needs more info',
+ });
+ const numbers = issues.data.map((e) => e.number);
+
+ for (const number of numbers) {
+ const events = await github.paginate(
+ github.rest.issues.listEventsForTimeline,
+ {
+ owner: owner,
+ repo: repo,
+ issue_number: number,
+ },
+ (response) => response.data.filter(labeledEvent)
+ );
+
+ const latest_response_label = events[events.length - 1];
+
+ const created_at = new Date(latest_response_label.created_at);
+ const now = new Date();
+ const diff = now - created_at;
+ const diffDays = diff / (1000 * 60 * 60 * 24);
+
+ if (diffDays > numberOfDaysLimit) {
+ await github.rest.issues.update({
+ owner: owner,
+ repo: repo,
+ issue_number: number,
+ state: 'closed',
+ });
+
+ await github.rest.issues.createComment({
+ owner: owner,
+ repo: repo,
+ issue_number: number,
+ body: close_message,
+ });
+ }
+ }
+ };
diff --git a/.github/scripts/remove-response-label.cjs b/.github/scripts/remove-response-label.cjs
new file mode 100644
index 000000000..887cf349e
--- /dev/null
+++ b/.github/scripts/remove-response-label.cjs
@@ -0,0 +1,33 @@
+// Copyright 2024 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.
+
+module.exports = async ({ github, context }) => {
+ const commenter = context.actor;
+ const issue = await github.rest.issues.get({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: context.issue.number,
+ });
+ const author = issue.data.user.login;
+ const labels = issue.data.labels.map((e) => e.name);
+
+ if (author === commenter && labels.includes('needs more info')) {
+ await github.rest.issues.removeLabel({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: context.issue.number,
+ name: 'needs more info',
+ });
+ }
+ };
diff --git a/.github/workflows/issues-no-repro.yaml b/.github/workflows/issues-no-repro.yaml
new file mode 100644
index 000000000..442a46bcc
--- /dev/null
+++ b/.github/workflows/issues-no-repro.yaml
@@ -0,0 +1,18 @@
+name: invalid_link
+on:
+ issues:
+ types: [opened, reopened]
+
+jobs:
+ close:
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/github-script@v7
+ with:
+ script: |
+ const script = require('./.github/scripts/close-invalid-link.cjs')
+ await script({github, context})
diff --git a/.github/workflows/response.yaml b/.github/workflows/response.yaml
new file mode 100644
index 000000000..6ed37326f
--- /dev/null
+++ b/.github/workflows/response.yaml
@@ -0,0 +1,35 @@
+name: no_response
+on:
+ schedule:
+ - cron: '30 1 * * *' # Run every day at 01:30
+ workflow_dispatch:
+ issue_comment:
+
+jobs:
+ close:
+ if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/github-script@v7
+ with:
+ script: |
+ const script = require('./.github/scripts/close-unresponsive.cjs')
+ await script({github, context})
+
+ remove_label:
+ if: github.event_name == 'issue_comment'
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/github-script@v7
+ with:
+ script: |
+ const script = require('./.github/scripts/remove-response-label.cjs')
+ await script({github, context})
diff --git a/.idea/runConfigurations/System_Test.xml b/.idea/runConfigurations/System_Test.xml
index fde3707ba..9dad0feea 100644
--- a/.idea/runConfigurations/System_Test.xml
+++ b/.idea/runConfigurations/System_Test.xml
@@ -10,8 +10,8 @@
bdd
--require ts-node/register/type-check --no-cache --timeout 60000
- TEST_FILE
- $PROJECT_DIR$/dev/system-test/firestore.ts
+ PATTERN
+ $PROJECT_DIR$/dev/system-test/*.js $PROJECT_DIR$/dev/system-test/*.ts
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d3013fc89..57e34cc6a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,22 @@
[1]: https://www.npmjs.com/package/@google-cloud/firestore?activeTab=versions
+## [7.10.0](https://github.com/googleapis/nodejs-firestore/compare/v7.9.0...v7.10.0) (2024-09-05)
+
+
+### Features
+
+* Expose proto changes for the bulk delete api ([23ce891](https://github.com/googleapis/nodejs-firestore/commit/23ce89175ce315648ce9af3994cba0decc48ba47))
+* Expose the proto changes to support FindNearest.distance_result_field parameter and the FindNearest.distance_threshold parameter ([23ce891](https://github.com/googleapis/nodejs-firestore/commit/23ce89175ce315648ce9af3994cba0decc48ba47))
+* Return computed distance and set distance thresholds on VectorQueries ([#2090](https://github.com/googleapis/nodejs-firestore/issues/2090)) ([b5ca84f](https://github.com/googleapis/nodejs-firestore/commit/b5ca84f076ca0668e90ca3fc7dd878f732ccd956))
+
+## [7.9.0](https://github.com/googleapis/nodejs-firestore/compare/v7.8.0...v7.9.0) (2024-06-25)
+
+
+### Features
+
+* Update FirebaseFirestore.v1 and FirebaseFirestore.v1beta1 auto-gen types ([6732d4d](https://github.com/googleapis/nodejs-firestore/commit/6732d4da3c5ea851dccb0515757fbfb521f21410))
+
## [7.8.0](https://github.com/googleapis/nodejs-firestore/compare/v7.7.0...v7.8.0) (2024-05-28)
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 2add2547a..a044123a3 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -91,4 +91,4 @@ harassment or threats to anyone's safety, we may take action without notice.
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
available at
-https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
\ No newline at end of file
+https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
diff --git a/README.md b/README.md
index 87ca81d88..e4a568405 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
1. [Select or create a Cloud Platform project][projects].
1. [Enable the Cloud Firestore API][enable_api].
-1. [Set up authentication with a service account][auth] so you can access the
+1. [Set up authentication][auth] so you can access the
API from your local workstation.
### Installing the client library
@@ -178,4 +178,4 @@ See [LICENSE](https://github.com/googleapis/nodejs-firestore/blob/main/LICENSE)
[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/getting-started
+[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
diff --git a/api-report/firestore.api.md b/api-report/firestore.api.md
index 5f9978015..3a146aef2 100644
--- a/api-report/firestore.api.md
+++ b/api-report/firestore.api.md
@@ -4,24 +4,23 @@
```ts
-///
-
import * as $protobuf from 'protobufjs';
import { DocumentData } from '@google-cloud/firestore';
import { Duplex } from 'stream';
import * as firestore from '@google-cloud/firestore';
import { GoogleError } from 'google-gax';
import { Readable } from 'stream';
+import { Span as Span_2 } from '@opentelemetry/api';
// @public
export class Aggregate {
- constructor(alias: string, aggregateType: AggregateType, fieldPath?: string | FieldPath | undefined);
+ constructor(alias: string, aggregateType: AggregateType, fieldPath?: (string | FieldPath) | undefined);
// (undocumented)
readonly aggregateType: AggregateType;
// (undocumented)
readonly alias: string;
// (undocumented)
- readonly fieldPath?: string | FieldPath | undefined;
+ readonly fieldPath?: (string | FieldPath) | undefined;
// Warning: (ae-forgotten-export) The symbol "google" needs to be exported by the entry point index.d.ts
//
// @internal
@@ -920,6 +919,11 @@ class Firestore implements firestore.Firestore {
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
toJSON(): object;
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+ // Warning: (ae-forgotten-export) The symbol "TraceUtil" needs to be exported by the entry point index.d.ts
+ //
+ // @internal
+ _traceUtil: TraceUtil;
+ // Warning: (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
//
// @internal
unregisterListener(): void;
@@ -1039,10 +1043,14 @@ export class Query, options: {
limit: number;
distanceMeasure: 'EUCLIDEAN' | 'COSINE' | 'DOT_PRODUCT';
}): VectorQuery;
+ findNearest(options: VectorQueryOptions): VectorQuery;
+ // (undocumented)
+ _findNearest(options: VectorQueryOptions): VectorQuery;
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@type" is not defined in this configuration
@@ -1449,15 +1457,18 @@ export class Transaction implements firestore.Transaction {
// @public
export class VectorQuery implements firestore.VectorQuery {
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
- // Warning: (ae-forgotten-export) The symbol "VectorQueryOptions" needs to be exported by the entry point index.d.ts
//
// @internal
- constructor(_query: Query, vectorField: string | firestore.FieldPath, queryVector: firestore.VectorValue | Array, options: VectorQueryOptions);
+ constructor(_query: Query, _options: VectorQueryOptions);
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
//
// @internal
_createSnapshot(readTime: Timestamp, size: number, docs: () => Array>, changes: () => Array>): VectorQuerySnapshot;
+ // Warning: (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
+ explain(options?: firestore.ExplainOptions): Promise>>;
get(): Promise>;
+ // (undocumented)
+ _getResponse(explainOptions?: firestore.ExplainOptions): Promise>>;
isEqual(other: firestore.VectorQuery): boolean;
get query(): Query;
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
@@ -1475,7 +1486,17 @@ export class VectorQuery;
+ vectorField: string | firestore.FieldPath;
}
// @public
@@ -1559,6 +1580,8 @@ export class WriteBatch implements firestore.WriteBatch {
// Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
delete(documentRef: firestore.DocumentReference, precondition?: firestore.Precondition): WriteBatch;
+ // (undocumented)
+ protected readonly _firestore: Firestore;
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
//
// @internal
@@ -1609,81 +1632,82 @@ export class WriteResult implements firestore.WriteResult {
// Warnings were encountered during analysis:
//
+// build/src/aggregate.d.ts:48:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
// build/src/aggregate.d.ts:49:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/aggregate.d.ts:50:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/bulk-writer.d.ts:50:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:84:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:147:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:154:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:161:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:169:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:184:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:191:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:200:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:218:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:230:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:237:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:488:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/bulk-writer.d.ts:491:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:497:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:504:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:510:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bulk-writer.d.ts:517:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/bundle.d.ts:20:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/filter.d.ts:121:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/filter.d.ts:156:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:49:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:83:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:146:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:153:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:160:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:168:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:183:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:190:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:199:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:217:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:229:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:236:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:487:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/bulk-writer.d.ts:490:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:496:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:503:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:509:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bulk-writer.d.ts:516:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/bundle.d.ts:19:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/filter.d.ts:120:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/filter.d.ts:155:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// build/src/index.d.ts:292:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// build/src/index.d.ts:312:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// build/src/index.d.ts:319:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:334:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:341:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:350:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:358:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:365:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:374:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:857:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:876:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:878:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/index.d.ts:880:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/index.d.ts:881:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/index.d.ts:891:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/index.d.ts:893:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/index.d.ts:894:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/index.d.ts:896:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/index.d.ts:897:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/path.d.ts:30:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/path.d.ts:32:4 - (tsdoc-undefined-tag) The TSDoc tag "@class" is not defined in this configuration
-// build/src/path.d.ts:120:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/path.d.ts:312:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:340:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:347:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:356:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:364:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:371:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:380:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:864:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:883:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:885:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/index.d.ts:887:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/index.d.ts:888:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/index.d.ts:898:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/index.d.ts:900:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/index.d.ts:901:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/index.d.ts:903:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/index.d.ts:904:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/path.d.ts:29:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/path.d.ts:31:4 - (tsdoc-undefined-tag) The TSDoc tag "@class" is not defined in this configuration
+// build/src/path.d.ts:119:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/path.d.ts:311:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// build/src/rate-limiter.d.ts:13:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/reference/aggregate-query.d.ts:87:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/aggregate-query.d.ts:85:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// build/src/reference/field-filter-internal.d.ts:24:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// build/src/reference/field-filter-internal.d.ts:26:4 - (tsdoc-undefined-tag) The TSDoc tag "@class" is not defined in this configuration
// build/src/reference/field-order.d.ts:22:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// build/src/reference/field-order.d.ts:24:4 - (tsdoc-undefined-tag) The TSDoc tag "@class" is not defined in this configuration
-// build/src/reference/query-options.d.ts:28:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/reference/query.d.ts:393:8 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
-// build/src/reference/query.d.ts:399:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/reference/query.d.ts:401:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/reference/query.d.ts:409:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/reference/query.d.ts:411:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/reference/query.d.ts:411:15 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
-// build/src/reference/query.d.ts:413:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/reference/query.d.ts:413:15 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
-// build/src/reference/query.d.ts:415:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/reference/query.d.ts:417:24 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
-// build/src/reference/query.d.ts:417:17 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
-// build/src/reference/query.d.ts:426:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/reference/query.d.ts:428:8 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
-// build/src/reference/query.d.ts:430:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/reference/query.d.ts:616:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
-// build/src/reference/query.d.ts:617:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/reference/vector-query.d.ts:52:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/reference/vector-query.d.ts:57:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/serializer.d.ts:26:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/serializer.d.ts:36:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/write-batch.d.ts:86:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
-// build/src/write-batch.d.ts:109:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/query-options.d.ts:27:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/query.d.ts:425:8 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
+// build/src/reference/query.d.ts:431:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/query.d.ts:433:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/reference/query.d.ts:441:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/query.d.ts:443:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/reference/query.d.ts:443:15 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
+// build/src/reference/query.d.ts:445:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/reference/query.d.ts:445:15 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
+// build/src/reference/query.d.ts:447:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/reference/query.d.ts:449:24 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
+// build/src/reference/query.d.ts:449:17 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
+// build/src/reference/query.d.ts:458:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/reference/query.d.ts:460:8 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
+// build/src/reference/query.d.ts:462:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/query.d.ts:648:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
+// build/src/reference/query.d.ts:649:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/vector-query.d.ts:50:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/vector-query.d.ts:55:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/reference/vector-query.d.ts:60:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/serializer.d.ts:25:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/serializer.d.ts:35:4 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/write-batch.d.ts:85:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
+// build/src/write-batch.d.ts:108:8 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
// (No @packageDocumentation comment for this package)
diff --git a/dev/conformance/runner.ts b/dev/conformance/runner.ts
index 3ade3a1f5..b660b0d2f 100644
--- a/dev/conformance/runner.ts
+++ b/dev/conformance/runner.ts
@@ -524,13 +524,14 @@ function runTest(spec: ConformanceProto) {
* as strings to a proper protobuf type since protobufJS does not support it at
* the moment.
*/
-function normalizeTimestamp(obj: {[key: string]: {}}) {
+function normalizeTimestamp(obj: Record) {
const fieldNames = ['updateTime', 'createTime', 'readTime'];
for (const key of Object.keys(obj)) {
if (fieldNames.includes(key) && typeof obj[key] === 'string') {
obj[key] = convertTimestamp(obj[key] as string);
} else if (typeof obj[key] === 'object') {
- normalizeTimestamp(obj[key]);
+ // @ts-ignore
+ normalizeTimestamp(obj[key] as Record);
}
}
}
@@ -563,7 +564,7 @@ function convertTimestamp(text: string): {[key: string]: number} {
* Value type, but the 'limit' field in 'query' has Int32Value type, resulting
* in the need for an extra layer of specificity.
*/
-function normalizeInt32Value(obj: {[key: string]: {}}, parent = '') {
+function normalizeInt32Value(obj: Record, parent = '') {
const fieldNames = ['limit'];
const parentNames = ['query'];
for (const key of Object.keys(obj)) {
@@ -576,7 +577,8 @@ function normalizeInt32Value(obj: {[key: string]: {}}, parent = '') {
value: obj[key],
};
} else if (typeof obj[key] === 'object') {
- normalizeInt32Value(obj[key], key);
+ // @ts-ignore
+ normalizeInt32Value(obj[key] as Record, key);
}
}
}
diff --git a/dev/protos/admin_v1.json b/dev/protos/admin_v1.json
index 1e62ed1e5..531dcec3a 100644
--- a/dev/protos/admin_v1.json
+++ b/dev/protos/admin_v1.json
@@ -633,6 +633,34 @@
}
]
},
+ "BulkDeleteDocuments": {
+ "requestType": "BulkDeleteDocumentsRequest",
+ "responseType": "google.longrunning.Operation",
+ "options": {
+ "(google.api.http).post": "/v1/{name=projects/*/databases/*}:bulkDeleteDocuments",
+ "(google.api.http).body": "*",
+ "(google.api.method_signature)": "name",
+ "(google.longrunning.operation_info).response_type": "BulkDeleteDocumentsResponse",
+ "(google.longrunning.operation_info).metadata_type": "BulkDeleteDocumentsMetadata"
+ },
+ "parsedOptions": [
+ {
+ "(google.api.http)": {
+ "post": "/v1/{name=projects/*/databases/*}:bulkDeleteDocuments",
+ "body": "*"
+ }
+ },
+ {
+ "(google.api.method_signature)": "name"
+ },
+ {
+ "(google.longrunning.operation_info)": {
+ "response_type": "BulkDeleteDocumentsResponse",
+ "metadata_type": "BulkDeleteDocumentsMetadata"
+ }
+ }
+ ]
+ },
"CreateDatabase": {
"requestType": "CreateDatabaseRequest",
"responseType": "google.longrunning.Operation",
@@ -934,6 +962,10 @@
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).child_type": "firestore.googleapis.com/Database"
}
+ },
+ "showDeleted": {
+ "type": "bool",
+ "id": 4
}
}
},
@@ -1308,6 +1340,37 @@
}
}
},
+ "BulkDeleteDocumentsRequest": {
+ "fields": {
+ "name": {
+ "type": "string",
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "REQUIRED",
+ "(google.api.resource_reference).type": "firestore.googleapis.com/Database"
+ }
+ },
+ "collectionIds": {
+ "rule": "repeated",
+ "type": "string",
+ "id": 2,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
+ },
+ "namespaceIds": {
+ "rule": "repeated",
+ "type": "string",
+ "id": 3,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
+ }
+ }
+ },
+ "BulkDeleteDocumentsResponse": {
+ "fields": {}
+ },
"GetBackupRequest": {
"fields": {
"name": {
@@ -1570,6 +1633,44 @@
}
}
},
+ "BulkDeleteDocumentsMetadata": {
+ "fields": {
+ "startTime": {
+ "type": "google.protobuf.Timestamp",
+ "id": 1
+ },
+ "endTime": {
+ "type": "google.protobuf.Timestamp",
+ "id": 2
+ },
+ "operationState": {
+ "type": "OperationState",
+ "id": 3
+ },
+ "progressDocuments": {
+ "type": "Progress",
+ "id": 4
+ },
+ "progressBytes": {
+ "type": "Progress",
+ "id": 5
+ },
+ "collectionIds": {
+ "rule": "repeated",
+ "type": "string",
+ "id": 6
+ },
+ "namespaceIds": {
+ "rule": "repeated",
+ "type": "string",
+ "id": 7
+ },
+ "snapshotTime": {
+ "type": "google.protobuf.Timestamp",
+ "id": 8
+ }
+ }
+ },
"ExportDocumentsResponse": {
"fields": {
"outputUriPrefix": {
@@ -2230,7 +2331,6 @@
"Edition": {
"values": {
"EDITION_UNKNOWN": 0,
- "EDITION_LEGACY": 900,
"EDITION_PROTO2": 998,
"EDITION_PROTO3": 999,
"EDITION_2023": 1000,
@@ -2956,10 +3056,6 @@
"type": "FeatureSet",
"id": 21
},
- "featureSupport": {
- "type": "FeatureSupport",
- "id": 22
- },
"uninterpretedOption": {
"rule": "repeated",
"type": "UninterpretedOption",
@@ -3029,26 +3125,6 @@
"id": 2
}
}
- },
- "FeatureSupport": {
- "fields": {
- "editionIntroduced": {
- "type": "Edition",
- "id": 1
- },
- "editionDeprecated": {
- "type": "Edition",
- "id": 2
- },
- "deprecationWarning": {
- "type": "string",
- "id": 3
- },
- "editionRemoved": {
- "type": "Edition",
- "id": 4
- }
- }
}
}
},
@@ -3272,7 +3348,6 @@
"options": {
"retention": "RETENTION_RUNTIME",
"targets": "TARGET_TYPE_FILE",
- "feature_support.edition_introduced": "EDITION_2023",
"edition_defaults.edition": "EDITION_2023",
"edition_defaults.value": "EXPLICIT"
}
@@ -3283,7 +3358,6 @@
"options": {
"retention": "RETENTION_RUNTIME",
"targets": "TARGET_TYPE_FILE",
- "feature_support.edition_introduced": "EDITION_2023",
"edition_defaults.edition": "EDITION_PROTO3",
"edition_defaults.value": "OPEN"
}
@@ -3294,7 +3368,6 @@
"options": {
"retention": "RETENTION_RUNTIME",
"targets": "TARGET_TYPE_FILE",
- "feature_support.edition_introduced": "EDITION_2023",
"edition_defaults.edition": "EDITION_PROTO3",
"edition_defaults.value": "PACKED"
}
@@ -3305,7 +3378,6 @@
"options": {
"retention": "RETENTION_RUNTIME",
"targets": "TARGET_TYPE_FILE",
- "feature_support.edition_introduced": "EDITION_2023",
"edition_defaults.edition": "EDITION_PROTO3",
"edition_defaults.value": "VERIFY"
}
@@ -3316,7 +3388,6 @@
"options": {
"retention": "RETENTION_RUNTIME",
"targets": "TARGET_TYPE_FILE",
- "feature_support.edition_introduced": "EDITION_2023",
"edition_defaults.edition": "EDITION_PROTO2",
"edition_defaults.value": "LENGTH_PREFIXED"
}
@@ -3327,7 +3398,6 @@
"options": {
"retention": "RETENTION_RUNTIME",
"targets": "TARGET_TYPE_FILE",
- "feature_support.edition_introduced": "EDITION_2023",
"edition_defaults.edition": "EDITION_PROTO3",
"edition_defaults.value": "ALLOW"
}
@@ -3336,7 +3406,15 @@
"extensions": [
[
1000,
- 9994
+ 1000
+ ],
+ [
+ 1001,
+ 1001
+ ],
+ [
+ 1002,
+ 1002
],
[
9995,
@@ -3422,13 +3500,9 @@
"type": "Edition",
"id": 3
},
- "overridableFeatures": {
+ "features": {
"type": "FeatureSet",
- "id": 4
- },
- "fixedFeatures": {
- "type": "FeatureSet",
- "id": 5
+ "id": 2
}
}
}
diff --git a/dev/protos/firestore_admin_v1_proto_api.d.ts b/dev/protos/firestore_admin_v1_proto_api.d.ts
index 4e73f8002..a326cbb3b 100644
--- a/dev/protos/firestore_admin_v1_proto_api.d.ts
+++ b/dev/protos/firestore_admin_v1_proto_api.d.ts
@@ -918,6 +918,20 @@ export namespace google {
*/
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
@@ -1180,6 +1194,13 @@ export namespace google {
*/
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
@@ -1284,6 +1305,9 @@ export namespace google {
/** ListDatabasesRequest parent */
parent?: (string|null);
+
+ /** ListDatabasesRequest showDeleted */
+ showDeleted?: (boolean|null);
}
/** Represents a ListDatabasesRequest. */
@@ -1298,6 +1322,9 @@ export namespace google {
/** ListDatabasesRequest parent. */
public parent: string;
+ /** ListDatabasesRequest showDeleted. */
+ public showDeleted: boolean;
+
/**
* Creates a ListDatabasesRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
@@ -2653,6 +2680,108 @@ export namespace google {
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 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 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 {
@@ -3384,6 +3513,96 @@ export namespace google {
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|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;
+
+ /** 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 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 {
@@ -5044,7 +5263,7 @@ export namespace google {
/** Edition enum. */
type Edition =
- "EDITION_UNKNOWN"| "EDITION_LEGACY"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
+ "EDITION_UNKNOWN"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
/** Properties of a FileDescriptorProto. */
interface IFileDescriptorProto {
@@ -6334,9 +6553,6 @@ export namespace google {
/** FieldOptions features */
features?: (google.protobuf.IFeatureSet|null);
- /** FieldOptions featureSupport */
- featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
-
/** FieldOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
@@ -6392,9 +6608,6 @@ export namespace google {
/** FieldOptions features. */
public features?: (google.protobuf.IFeatureSet|null);
- /** FieldOptions featureSupport. */
- public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
-
/** FieldOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -6498,72 +6711,6 @@ export namespace google {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
-
- /** Properties of a FeatureSupport. */
- interface IFeatureSupport {
-
- /** FeatureSupport editionIntroduced */
- editionIntroduced?: (google.protobuf.Edition|null);
-
- /** FeatureSupport editionDeprecated */
- editionDeprecated?: (google.protobuf.Edition|null);
-
- /** FeatureSupport deprecationWarning */
- deprecationWarning?: (string|null);
-
- /** FeatureSupport editionRemoved */
- editionRemoved?: (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;
-
- /** FeatureSupport editionDeprecated. */
- public editionDeprecated: google.protobuf.Edition;
-
- /** FeatureSupport deprecationWarning. */
- public deprecationWarning: string;
-
- /** FeatureSupport editionRemoved. */
- public editionRemoved: google.protobuf.Edition;
-
- /**
- * 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. */
@@ -7223,11 +7370,8 @@ export namespace google {
/** FeatureSetEditionDefault edition */
edition?: (google.protobuf.Edition|null);
- /** FeatureSetEditionDefault overridableFeatures */
- overridableFeatures?: (google.protobuf.IFeatureSet|null);
-
- /** FeatureSetEditionDefault fixedFeatures */
- fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ /** FeatureSetEditionDefault features */
+ features?: (google.protobuf.IFeatureSet|null);
}
/** Represents a FeatureSetEditionDefault. */
@@ -7242,11 +7386,8 @@ export namespace google {
/** FeatureSetEditionDefault edition. */
public edition: google.protobuf.Edition;
- /** FeatureSetEditionDefault overridableFeatures. */
- public overridableFeatures?: (google.protobuf.IFeatureSet|null);
-
- /** FeatureSetEditionDefault fixedFeatures. */
- public fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ /** FeatureSetEditionDefault features. */
+ public features?: (google.protobuf.IFeatureSet|null);
/**
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
diff --git a/dev/protos/firestore_admin_v1_proto_api.js b/dev/protos/firestore_admin_v1_proto_api.js
index 5f2e03b07..1f923e0b4 100644
--- a/dev/protos/firestore_admin_v1_proto_api.js
+++ b/dev/protos/firestore_admin_v1_proto_api.js
@@ -2389,6 +2389,39 @@
* @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 this.rpcCall(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
@@ -2861,6 +2894,7 @@
* @memberof google.firestore.admin.v1
* @interface IListDatabasesRequest
* @property {string|null} [parent] ListDatabasesRequest parent
+ * @property {boolean|null} [showDeleted] ListDatabasesRequest showDeleted
*/
/**
@@ -2886,6 +2920,14 @@
*/
ListDatabasesRequest.prototype.parent = "";
+ /**
+ * ListDatabasesRequest showDeleted.
+ * @member {boolean} showDeleted
+ * @memberof google.firestore.admin.v1.ListDatabasesRequest
+ * @instance
+ */
+ ListDatabasesRequest.prototype.showDeleted = false;
+
/**
* Creates a ListDatabasesRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
@@ -2900,6 +2942,8 @@
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;
};
@@ -2916,10 +2960,14 @@
if (!options)
options = {};
var object = {};
- if (options.defaults)
+ if (options.defaults) {
object.parent = "";
+ object.showDeleted = false;
+ }
if (message.parent != null && message.hasOwnProperty("parent"))
object.parent = message.parent;
+ if (message.showDeleted != null && message.hasOwnProperty("showDeleted"))
+ object.showDeleted = message.showDeleted;
return object;
};
@@ -5822,6 +5870,231 @@
return ImportDocumentsRequest;
})();
+ v1.BulkDeleteDocumentsRequest = (function() {
+
+ /**
+ * Properties of a BulkDeleteDocumentsRequest.
+ * @memberof google.firestore.admin.v1
+ * @interface IBulkDeleteDocumentsRequest
+ * @property {string|null} [name] BulkDeleteDocumentsRequest name
+ * @property {Array.|null} [collectionIds] BulkDeleteDocumentsRequest collectionIds
+ * @property {Array.|null} [namespaceIds] BulkDeleteDocumentsRequest namespaceIds
+ */
+
+ /**
+ * Constructs a new BulkDeleteDocumentsRequest.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a BulkDeleteDocumentsRequest.
+ * @implements IBulkDeleteDocumentsRequest
+ * @constructor
+ * @param {google.firestore.admin.v1.IBulkDeleteDocumentsRequest=} [properties] Properties to set
+ */
+ function BulkDeleteDocumentsRequest(properties) {
+ this.collectionIds = [];
+ this.namespaceIds = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * BulkDeleteDocumentsRequest name.
+ * @member {string} name
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsRequest
+ * @instance
+ */
+ BulkDeleteDocumentsRequest.prototype.name = "";
+
+ /**
+ * BulkDeleteDocumentsRequest collectionIds.
+ * @member {Array.} collectionIds
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsRequest
+ * @instance
+ */
+ BulkDeleteDocumentsRequest.prototype.collectionIds = $util.emptyArray;
+
+ /**
+ * BulkDeleteDocumentsRequest namespaceIds.
+ * @member {Array.} namespaceIds
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsRequest
+ * @instance
+ */
+ BulkDeleteDocumentsRequest.prototype.namespaceIds = $util.emptyArray;
+
+ /**
+ * Creates a BulkDeleteDocumentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.BulkDeleteDocumentsRequest} BulkDeleteDocumentsRequest
+ */
+ BulkDeleteDocumentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.admin.v1.BulkDeleteDocumentsRequest)
+ return object;
+ var message = new $root.google.firestore.admin.v1.BulkDeleteDocumentsRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.collectionIds) {
+ if (!Array.isArray(object.collectionIds))
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsRequest.collectionIds: array expected");
+ message.collectionIds = [];
+ for (var i = 0; i < object.collectionIds.length; ++i)
+ message.collectionIds[i] = String(object.collectionIds[i]);
+ }
+ if (object.namespaceIds) {
+ if (!Array.isArray(object.namespaceIds))
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsRequest.namespaceIds: array expected");
+ message.namespaceIds = [];
+ for (var i = 0; i < object.namespaceIds.length; ++i)
+ message.namespaceIds[i] = String(object.namespaceIds[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BulkDeleteDocumentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsRequest
+ * @static
+ * @param {google.firestore.admin.v1.BulkDeleteDocumentsRequest} message BulkDeleteDocumentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BulkDeleteDocumentsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.collectionIds = [];
+ object.namespaceIds = [];
+ }
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.collectionIds && message.collectionIds.length) {
+ object.collectionIds = [];
+ for (var j = 0; j < message.collectionIds.length; ++j)
+ object.collectionIds[j] = message.collectionIds[j];
+ }
+ if (message.namespaceIds && message.namespaceIds.length) {
+ object.namespaceIds = [];
+ for (var j = 0; j < message.namespaceIds.length; ++j)
+ object.namespaceIds[j] = message.namespaceIds[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this BulkDeleteDocumentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BulkDeleteDocumentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BulkDeleteDocumentsRequest
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BulkDeleteDocumentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.BulkDeleteDocumentsRequest";
+ };
+
+ return BulkDeleteDocumentsRequest;
+ })();
+
+ v1.BulkDeleteDocumentsResponse = (function() {
+
+ /**
+ * Properties of a BulkDeleteDocumentsResponse.
+ * @memberof google.firestore.admin.v1
+ * @interface IBulkDeleteDocumentsResponse
+ */
+
+ /**
+ * Constructs a new BulkDeleteDocumentsResponse.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a BulkDeleteDocumentsResponse.
+ * @implements IBulkDeleteDocumentsResponse
+ * @constructor
+ * @param {google.firestore.admin.v1.IBulkDeleteDocumentsResponse=} [properties] Properties to set
+ */
+ function BulkDeleteDocumentsResponse(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a BulkDeleteDocumentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.BulkDeleteDocumentsResponse} BulkDeleteDocumentsResponse
+ */
+ BulkDeleteDocumentsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.admin.v1.BulkDeleteDocumentsResponse)
+ return object;
+ return new $root.google.firestore.admin.v1.BulkDeleteDocumentsResponse();
+ };
+
+ /**
+ * Creates a plain object from a BulkDeleteDocumentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsResponse
+ * @static
+ * @param {google.firestore.admin.v1.BulkDeleteDocumentsResponse} message BulkDeleteDocumentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BulkDeleteDocumentsResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this BulkDeleteDocumentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BulkDeleteDocumentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BulkDeleteDocumentsResponse
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BulkDeleteDocumentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.BulkDeleteDocumentsResponse";
+ };
+
+ return BulkDeleteDocumentsResponse;
+ })();
+
v1.GetBackupRequest = (function() {
/**
@@ -7504,44 +7777,311 @@
* @memberof google.firestore.admin.v1.ImportDocumentsMetadata
* @instance
*/
- ImportDocumentsMetadata.prototype.collectionIds = $util.emptyArray;
+ ImportDocumentsMetadata.prototype.collectionIds = $util.emptyArray;
+
+ /**
+ * ImportDocumentsMetadata inputUriPrefix.
+ * @member {string} inputUriPrefix
+ * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @instance
+ */
+ ImportDocumentsMetadata.prototype.inputUriPrefix = "";
+
+ /**
+ * ImportDocumentsMetadata namespaceIds.
+ * @member {Array.} namespaceIds
+ * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @instance
+ */
+ ImportDocumentsMetadata.prototype.namespaceIds = $util.emptyArray;
+
+ /**
+ * Creates an ImportDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.admin.v1.ImportDocumentsMetadata} ImportDocumentsMetadata
+ */
+ ImportDocumentsMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.admin.v1.ImportDocumentsMetadata)
+ return object;
+ var message = new $root.google.firestore.admin.v1.ImportDocumentsMetadata();
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ switch (object.operationState) {
+ default:
+ if (typeof object.operationState === "number") {
+ message.operationState = object.operationState;
+ break;
+ }
+ break;
+ case "OPERATION_STATE_UNSPECIFIED":
+ case 0:
+ message.operationState = 0;
+ break;
+ case "INITIALIZING":
+ case 1:
+ message.operationState = 1;
+ break;
+ case "PROCESSING":
+ case 2:
+ message.operationState = 2;
+ break;
+ case "CANCELLING":
+ case 3:
+ message.operationState = 3;
+ break;
+ case "FINALIZING":
+ case 4:
+ message.operationState = 4;
+ break;
+ case "SUCCESSFUL":
+ case 5:
+ message.operationState = 5;
+ break;
+ case "FAILED":
+ case 6:
+ message.operationState = 6;
+ break;
+ case "CANCELLED":
+ case 7:
+ message.operationState = 7;
+ break;
+ }
+ if (object.progressDocuments != null) {
+ if (typeof object.progressDocuments !== "object")
+ throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.progressDocuments: object expected");
+ message.progressDocuments = $root.google.firestore.admin.v1.Progress.fromObject(object.progressDocuments);
+ }
+ if (object.progressBytes != null) {
+ if (typeof object.progressBytes !== "object")
+ throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.progressBytes: object expected");
+ message.progressBytes = $root.google.firestore.admin.v1.Progress.fromObject(object.progressBytes);
+ }
+ if (object.collectionIds) {
+ if (!Array.isArray(object.collectionIds))
+ throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.collectionIds: array expected");
+ message.collectionIds = [];
+ for (var i = 0; i < object.collectionIds.length; ++i)
+ message.collectionIds[i] = String(object.collectionIds[i]);
+ }
+ if (object.inputUriPrefix != null)
+ message.inputUriPrefix = String(object.inputUriPrefix);
+ if (object.namespaceIds) {
+ if (!Array.isArray(object.namespaceIds))
+ throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.namespaceIds: array expected");
+ message.namespaceIds = [];
+ for (var i = 0; i < object.namespaceIds.length; ++i)
+ message.namespaceIds[i] = String(object.namespaceIds[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImportDocumentsMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @static
+ * @param {google.firestore.admin.v1.ImportDocumentsMetadata} message ImportDocumentsMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImportDocumentsMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.collectionIds = [];
+ object.namespaceIds = [];
+ }
+ if (options.defaults) {
+ object.startTime = null;
+ object.endTime = null;
+ object.operationState = options.enums === String ? "OPERATION_STATE_UNSPECIFIED" : 0;
+ object.progressDocuments = null;
+ object.progressBytes = null;
+ object.inputUriPrefix = "";
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.operationState != null && message.hasOwnProperty("operationState"))
+ object.operationState = options.enums === String ? $root.google.firestore.admin.v1.OperationState[message.operationState] === undefined ? message.operationState : $root.google.firestore.admin.v1.OperationState[message.operationState] : message.operationState;
+ if (message.progressDocuments != null && message.hasOwnProperty("progressDocuments"))
+ object.progressDocuments = $root.google.firestore.admin.v1.Progress.toObject(message.progressDocuments, options);
+ if (message.progressBytes != null && message.hasOwnProperty("progressBytes"))
+ object.progressBytes = $root.google.firestore.admin.v1.Progress.toObject(message.progressBytes, options);
+ if (message.collectionIds && message.collectionIds.length) {
+ object.collectionIds = [];
+ for (var j = 0; j < message.collectionIds.length; ++j)
+ object.collectionIds[j] = message.collectionIds[j];
+ }
+ if (message.inputUriPrefix != null && message.hasOwnProperty("inputUriPrefix"))
+ object.inputUriPrefix = message.inputUriPrefix;
+ if (message.namespaceIds && message.namespaceIds.length) {
+ object.namespaceIds = [];
+ for (var j = 0; j < message.namespaceIds.length; ++j)
+ object.namespaceIds[j] = message.namespaceIds[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ImportDocumentsMetadata to JSON.
+ * @function toJSON
+ * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImportDocumentsMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImportDocumentsMetadata
+ * @function getTypeUrl
+ * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImportDocumentsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.admin.v1.ImportDocumentsMetadata";
+ };
+
+ return ImportDocumentsMetadata;
+ })();
+
+ v1.BulkDeleteDocumentsMetadata = (function() {
+
+ /**
+ * Properties of a BulkDeleteDocumentsMetadata.
+ * @memberof google.firestore.admin.v1
+ * @interface IBulkDeleteDocumentsMetadata
+ * @property {google.protobuf.ITimestamp|null} [startTime] BulkDeleteDocumentsMetadata startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] BulkDeleteDocumentsMetadata endTime
+ * @property {google.firestore.admin.v1.OperationState|null} [operationState] BulkDeleteDocumentsMetadata operationState
+ * @property {google.firestore.admin.v1.IProgress|null} [progressDocuments] BulkDeleteDocumentsMetadata progressDocuments
+ * @property {google.firestore.admin.v1.IProgress|null} [progressBytes] BulkDeleteDocumentsMetadata progressBytes
+ * @property {Array.|null} [collectionIds] BulkDeleteDocumentsMetadata collectionIds
+ * @property {Array.|null} [namespaceIds] BulkDeleteDocumentsMetadata namespaceIds
+ * @property {google.protobuf.ITimestamp|null} [snapshotTime] BulkDeleteDocumentsMetadata snapshotTime
+ */
+
+ /**
+ * Constructs a new BulkDeleteDocumentsMetadata.
+ * @memberof google.firestore.admin.v1
+ * @classdesc Represents a BulkDeleteDocumentsMetadata.
+ * @implements IBulkDeleteDocumentsMetadata
+ * @constructor
+ * @param {google.firestore.admin.v1.IBulkDeleteDocumentsMetadata=} [properties] Properties to set
+ */
+ function BulkDeleteDocumentsMetadata(properties) {
+ this.collectionIds = [];
+ this.namespaceIds = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * BulkDeleteDocumentsMetadata startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
+ * @instance
+ */
+ BulkDeleteDocumentsMetadata.prototype.startTime = null;
+
+ /**
+ * BulkDeleteDocumentsMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
+ * @instance
+ */
+ BulkDeleteDocumentsMetadata.prototype.endTime = null;
+
+ /**
+ * BulkDeleteDocumentsMetadata operationState.
+ * @member {google.firestore.admin.v1.OperationState} operationState
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
+ * @instance
+ */
+ BulkDeleteDocumentsMetadata.prototype.operationState = 0;
+
+ /**
+ * BulkDeleteDocumentsMetadata progressDocuments.
+ * @member {google.firestore.admin.v1.IProgress|null|undefined} progressDocuments
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
+ * @instance
+ */
+ BulkDeleteDocumentsMetadata.prototype.progressDocuments = null;
+
+ /**
+ * BulkDeleteDocumentsMetadata progressBytes.
+ * @member {google.firestore.admin.v1.IProgress|null|undefined} progressBytes
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
+ * @instance
+ */
+ BulkDeleteDocumentsMetadata.prototype.progressBytes = null;
+
+ /**
+ * BulkDeleteDocumentsMetadata collectionIds.
+ * @member {Array.} collectionIds
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
+ * @instance
+ */
+ BulkDeleteDocumentsMetadata.prototype.collectionIds = $util.emptyArray;
/**
- * ImportDocumentsMetadata inputUriPrefix.
- * @member {string} inputUriPrefix
- * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * BulkDeleteDocumentsMetadata namespaceIds.
+ * @member {Array.} namespaceIds
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
* @instance
*/
- ImportDocumentsMetadata.prototype.inputUriPrefix = "";
+ BulkDeleteDocumentsMetadata.prototype.namespaceIds = $util.emptyArray;
/**
- * ImportDocumentsMetadata namespaceIds.
- * @member {Array.} namespaceIds
- * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * BulkDeleteDocumentsMetadata snapshotTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} snapshotTime
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
* @instance
*/
- ImportDocumentsMetadata.prototype.namespaceIds = $util.emptyArray;
+ BulkDeleteDocumentsMetadata.prototype.snapshotTime = null;
/**
- * Creates an ImportDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
+ * Creates a BulkDeleteDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
* @static
* @param {Object.} object Plain object
- * @returns {google.firestore.admin.v1.ImportDocumentsMetadata} ImportDocumentsMetadata
+ * @returns {google.firestore.admin.v1.BulkDeleteDocumentsMetadata} BulkDeleteDocumentsMetadata
*/
- ImportDocumentsMetadata.fromObject = function fromObject(object) {
- if (object instanceof $root.google.firestore.admin.v1.ImportDocumentsMetadata)
+ BulkDeleteDocumentsMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.admin.v1.BulkDeleteDocumentsMetadata)
return object;
- var message = new $root.google.firestore.admin.v1.ImportDocumentsMetadata();
+ var message = new $root.google.firestore.admin.v1.BulkDeleteDocumentsMetadata();
if (object.startTime != null) {
if (typeof object.startTime !== "object")
- throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.startTime: object expected");
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsMetadata.startTime: object expected");
message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
}
if (object.endTime != null) {
if (typeof object.endTime !== "object")
- throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.endTime: object expected");
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsMetadata.endTime: object expected");
message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
}
switch (object.operationState) {
@@ -7586,43 +8126,46 @@
}
if (object.progressDocuments != null) {
if (typeof object.progressDocuments !== "object")
- throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.progressDocuments: object expected");
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsMetadata.progressDocuments: object expected");
message.progressDocuments = $root.google.firestore.admin.v1.Progress.fromObject(object.progressDocuments);
}
if (object.progressBytes != null) {
if (typeof object.progressBytes !== "object")
- throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.progressBytes: object expected");
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsMetadata.progressBytes: object expected");
message.progressBytes = $root.google.firestore.admin.v1.Progress.fromObject(object.progressBytes);
}
if (object.collectionIds) {
if (!Array.isArray(object.collectionIds))
- throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.collectionIds: array expected");
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsMetadata.collectionIds: array expected");
message.collectionIds = [];
for (var i = 0; i < object.collectionIds.length; ++i)
message.collectionIds[i] = String(object.collectionIds[i]);
}
- if (object.inputUriPrefix != null)
- message.inputUriPrefix = String(object.inputUriPrefix);
if (object.namespaceIds) {
if (!Array.isArray(object.namespaceIds))
- throw TypeError(".google.firestore.admin.v1.ImportDocumentsMetadata.namespaceIds: array expected");
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsMetadata.namespaceIds: array expected");
message.namespaceIds = [];
for (var i = 0; i < object.namespaceIds.length; ++i)
message.namespaceIds[i] = String(object.namespaceIds[i]);
}
+ if (object.snapshotTime != null) {
+ if (typeof object.snapshotTime !== "object")
+ throw TypeError(".google.firestore.admin.v1.BulkDeleteDocumentsMetadata.snapshotTime: object expected");
+ message.snapshotTime = $root.google.protobuf.Timestamp.fromObject(object.snapshotTime);
+ }
return message;
};
/**
- * Creates a plain object from an ImportDocumentsMetadata message. Also converts values to other types if specified.
+ * Creates a plain object from a BulkDeleteDocumentsMetadata message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
* @static
- * @param {google.firestore.admin.v1.ImportDocumentsMetadata} message ImportDocumentsMetadata
+ * @param {google.firestore.admin.v1.BulkDeleteDocumentsMetadata} message BulkDeleteDocumentsMetadata
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ImportDocumentsMetadata.toObject = function toObject(message, options) {
+ BulkDeleteDocumentsMetadata.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
@@ -7636,7 +8179,7 @@
object.operationState = options.enums === String ? "OPERATION_STATE_UNSPECIFIED" : 0;
object.progressDocuments = null;
object.progressBytes = null;
- object.inputUriPrefix = "";
+ object.snapshotTime = null;
}
if (message.startTime != null && message.hasOwnProperty("startTime"))
object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
@@ -7653,43 +8196,43 @@
for (var j = 0; j < message.collectionIds.length; ++j)
object.collectionIds[j] = message.collectionIds[j];
}
- if (message.inputUriPrefix != null && message.hasOwnProperty("inputUriPrefix"))
- object.inputUriPrefix = message.inputUriPrefix;
if (message.namespaceIds && message.namespaceIds.length) {
object.namespaceIds = [];
for (var j = 0; j < message.namespaceIds.length; ++j)
object.namespaceIds[j] = message.namespaceIds[j];
}
+ if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime"))
+ object.snapshotTime = $root.google.protobuf.Timestamp.toObject(message.snapshotTime, options);
return object;
};
/**
- * Converts this ImportDocumentsMetadata to JSON.
+ * Converts this BulkDeleteDocumentsMetadata to JSON.
* @function toJSON
- * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
* @instance
* @returns {Object.} JSON object
*/
- ImportDocumentsMetadata.prototype.toJSON = function toJSON() {
+ BulkDeleteDocumentsMetadata.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for ImportDocumentsMetadata
+ * Gets the default type url for BulkDeleteDocumentsMetadata
* @function getTypeUrl
- * @memberof google.firestore.admin.v1.ImportDocumentsMetadata
+ * @memberof google.firestore.admin.v1.BulkDeleteDocumentsMetadata
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ImportDocumentsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ BulkDeleteDocumentsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/google.firestore.admin.v1.ImportDocumentsMetadata";
+ return typeUrlPrefix + "/google.firestore.admin.v1.BulkDeleteDocumentsMetadata";
};
- return ImportDocumentsMetadata;
+ return BulkDeleteDocumentsMetadata;
})();
v1.ExportDocumentsResponse = (function() {
@@ -11804,7 +12347,6 @@
* @name google.protobuf.Edition
* @enum {string}
* @property {string} EDITION_UNKNOWN=EDITION_UNKNOWN EDITION_UNKNOWN value
- * @property {string} EDITION_LEGACY=EDITION_LEGACY EDITION_LEGACY value
* @property {string} EDITION_PROTO2=EDITION_PROTO2 EDITION_PROTO2 value
* @property {string} EDITION_PROTO3=EDITION_PROTO3 EDITION_PROTO3 value
* @property {string} EDITION_2023=EDITION_2023 EDITION_2023 value
@@ -11819,7 +12361,6 @@
protobuf.Edition = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "EDITION_UNKNOWN"] = "EDITION_UNKNOWN";
- values[valuesById[900] = "EDITION_LEGACY"] = "EDITION_LEGACY";
values[valuesById[998] = "EDITION_PROTO2"] = "EDITION_PROTO2";
values[valuesById[999] = "EDITION_PROTO3"] = "EDITION_PROTO3";
values[valuesById[1000] = "EDITION_2023"] = "EDITION_2023";
@@ -12080,10 +12621,6 @@
case 0:
message.edition = 0;
break;
- case "EDITION_LEGACY":
- case 900:
- message.edition = 900;
- break;
case "EDITION_PROTO2":
case 998:
message.edition = 998;
@@ -15113,7 +15650,6 @@
* @property {Array.|null} [targets] FieldOptions targets
* @property {Array.|null} [editionDefaults] FieldOptions editionDefaults
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
- * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
* @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption
* @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -15234,14 +15770,6 @@
*/
FieldOptions.prototype.features = null;
- /**
- * FieldOptions featureSupport.
- * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
- * @memberof google.protobuf.FieldOptions
- * @instance
- */
- FieldOptions.prototype.featureSupport = null;
-
/**
* FieldOptions uninterpretedOption.
* @member {Array.} uninterpretedOption
@@ -15418,11 +15946,6 @@
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
}
- if (object.featureSupport != null) {
- if (typeof object.featureSupport !== "object")
- throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
- message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
- }
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -15520,7 +16043,6 @@
object.debugRedact = false;
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
object.features = null;
- object.featureSupport = null;
object[".google.api.resourceReference"] = null;
}
if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -15553,8 +16075,6 @@
}
if (message.features != null && message.hasOwnProperty("features"))
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
- if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
- object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -15738,10 +16258,6 @@
case 0:
message.edition = 0;
break;
- case "EDITION_LEGACY":
- case 900:
- message.edition = 900;
- break;
case "EDITION_PROTO2":
case 998:
message.edition = 998;
@@ -15841,309 +16357,6 @@
return EditionDefault;
})();
- FieldOptions.FeatureSupport = (function() {
-
- /**
- * Properties of a FeatureSupport.
- * @memberof google.protobuf.FieldOptions
- * @interface IFeatureSupport
- * @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
- * @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
- * @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
- * @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
- */
-
- /**
- * Constructs a new FeatureSupport.
- * @memberof google.protobuf.FieldOptions
- * @classdesc Represents a FeatureSupport.
- * @implements IFeatureSupport
- * @constructor
- * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
- */
- function FeatureSupport(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
-
- /**
- * FeatureSupport editionIntroduced.
- * @member {google.protobuf.Edition} editionIntroduced
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @instance
- */
- FeatureSupport.prototype.editionIntroduced = 0;
-
- /**
- * FeatureSupport editionDeprecated.
- * @member {google.protobuf.Edition} editionDeprecated
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @instance
- */
- FeatureSupport.prototype.editionDeprecated = 0;
-
- /**
- * FeatureSupport deprecationWarning.
- * @member {string} deprecationWarning
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @instance
- */
- FeatureSupport.prototype.deprecationWarning = "";
-
- /**
- * FeatureSupport editionRemoved.
- * @member {google.protobuf.Edition} editionRemoved
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @instance
- */
- FeatureSupport.prototype.editionRemoved = 0;
-
- /**
- * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
- */
- FeatureSupport.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
- return object;
- var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
- switch (object.editionIntroduced) {
- default:
- if (typeof object.editionIntroduced === "number") {
- message.editionIntroduced = object.editionIntroduced;
- break;
- }
- break;
- case "EDITION_UNKNOWN":
- case 0:
- message.editionIntroduced = 0;
- break;
- case "EDITION_LEGACY":
- case 900:
- message.editionIntroduced = 900;
- break;
- case "EDITION_PROTO2":
- case 998:
- message.editionIntroduced = 998;
- break;
- case "EDITION_PROTO3":
- case 999:
- message.editionIntroduced = 999;
- break;
- case "EDITION_2023":
- case 1000:
- message.editionIntroduced = 1000;
- break;
- case "EDITION_2024":
- case 1001:
- message.editionIntroduced = 1001;
- break;
- case "EDITION_1_TEST_ONLY":
- case 1:
- message.editionIntroduced = 1;
- break;
- case "EDITION_2_TEST_ONLY":
- case 2:
- message.editionIntroduced = 2;
- break;
- case "EDITION_99997_TEST_ONLY":
- case 99997:
- message.editionIntroduced = 99997;
- break;
- case "EDITION_99998_TEST_ONLY":
- case 99998:
- message.editionIntroduced = 99998;
- break;
- case "EDITION_99999_TEST_ONLY":
- case 99999:
- message.editionIntroduced = 99999;
- break;
- case "EDITION_MAX":
- case 2147483647:
- message.editionIntroduced = 2147483647;
- break;
- }
- switch (object.editionDeprecated) {
- default:
- if (typeof object.editionDeprecated === "number") {
- message.editionDeprecated = object.editionDeprecated;
- break;
- }
- break;
- case "EDITION_UNKNOWN":
- case 0:
- message.editionDeprecated = 0;
- break;
- case "EDITION_LEGACY":
- case 900:
- message.editionDeprecated = 900;
- break;
- case "EDITION_PROTO2":
- case 998:
- message.editionDeprecated = 998;
- break;
- case "EDITION_PROTO3":
- case 999:
- message.editionDeprecated = 999;
- break;
- case "EDITION_2023":
- case 1000:
- message.editionDeprecated = 1000;
- break;
- case "EDITION_2024":
- case 1001:
- message.editionDeprecated = 1001;
- break;
- case "EDITION_1_TEST_ONLY":
- case 1:
- message.editionDeprecated = 1;
- break;
- case "EDITION_2_TEST_ONLY":
- case 2:
- message.editionDeprecated = 2;
- break;
- case "EDITION_99997_TEST_ONLY":
- case 99997:
- message.editionDeprecated = 99997;
- break;
- case "EDITION_99998_TEST_ONLY":
- case 99998:
- message.editionDeprecated = 99998;
- break;
- case "EDITION_99999_TEST_ONLY":
- case 99999:
- message.editionDeprecated = 99999;
- break;
- case "EDITION_MAX":
- case 2147483647:
- message.editionDeprecated = 2147483647;
- break;
- }
- if (object.deprecationWarning != null)
- message.deprecationWarning = String(object.deprecationWarning);
- switch (object.editionRemoved) {
- default:
- if (typeof object.editionRemoved === "number") {
- message.editionRemoved = object.editionRemoved;
- break;
- }
- break;
- case "EDITION_UNKNOWN":
- case 0:
- message.editionRemoved = 0;
- break;
- case "EDITION_LEGACY":
- case 900:
- message.editionRemoved = 900;
- break;
- case "EDITION_PROTO2":
- case 998:
- message.editionRemoved = 998;
- break;
- case "EDITION_PROTO3":
- case 999:
- message.editionRemoved = 999;
- break;
- case "EDITION_2023":
- case 1000:
- message.editionRemoved = 1000;
- break;
- case "EDITION_2024":
- case 1001:
- message.editionRemoved = 1001;
- break;
- case "EDITION_1_TEST_ONLY":
- case 1:
- message.editionRemoved = 1;
- break;
- case "EDITION_2_TEST_ONLY":
- case 2:
- message.editionRemoved = 2;
- break;
- case "EDITION_99997_TEST_ONLY":
- case 99997:
- message.editionRemoved = 99997;
- break;
- case "EDITION_99998_TEST_ONLY":
- case 99998:
- message.editionRemoved = 99998;
- break;
- case "EDITION_99999_TEST_ONLY":
- case 99999:
- message.editionRemoved = 99999;
- break;
- case "EDITION_MAX":
- case 2147483647:
- message.editionRemoved = 2147483647;
- break;
- }
- return message;
- };
-
- /**
- * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @static
- * @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- FeatureSupport.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
- object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
- object.deprecationWarning = "";
- object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
- }
- if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
- object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
- if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
- object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
- if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
- object.deprecationWarning = message.deprecationWarning;
- if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
- object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
- return object;
- };
-
- /**
- * Converts this FeatureSupport to JSON.
- * @function toJSON
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @instance
- * @returns {Object.} JSON object
- */
- FeatureSupport.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for FeatureSupport
- * @function getTypeUrl
- * @memberof google.protobuf.FieldOptions.FeatureSupport
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
- };
-
- return FeatureSupport;
- })();
-
return FieldOptions;
})();
@@ -17846,10 +18059,6 @@
case 0:
message.minimumEdition = 0;
break;
- case "EDITION_LEGACY":
- case 900:
- message.minimumEdition = 900;
- break;
case "EDITION_PROTO2":
case 998:
message.minimumEdition = 998;
@@ -17902,10 +18111,6 @@
case 0:
message.maximumEdition = 0;
break;
- case "EDITION_LEGACY":
- case 900:
- message.maximumEdition = 900;
- break;
case "EDITION_PROTO2":
case 998:
message.maximumEdition = 998;
@@ -18014,8 +18219,7 @@
* @memberof google.protobuf.FeatureSetDefaults
* @interface IFeatureSetEditionDefault
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
- * @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
- * @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
+ * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
*/
/**
@@ -18042,20 +18246,12 @@
FeatureSetEditionDefault.prototype.edition = 0;
/**
- * FeatureSetEditionDefault overridableFeatures.
- * @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
- * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
- * @instance
- */
- FeatureSetEditionDefault.prototype.overridableFeatures = null;
-
- /**
- * FeatureSetEditionDefault fixedFeatures.
- * @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
+ * FeatureSetEditionDefault features.
+ * @member {google.protobuf.IFeatureSet|null|undefined} features
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
* @instance
*/
- FeatureSetEditionDefault.prototype.fixedFeatures = null;
+ FeatureSetEditionDefault.prototype.features = null;
/**
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
@@ -18080,10 +18276,6 @@
case 0:
message.edition = 0;
break;
- case "EDITION_LEGACY":
- case 900:
- message.edition = 900;
- break;
case "EDITION_PROTO2":
case 998:
message.edition = 998;
@@ -18125,15 +18317,10 @@
message.edition = 2147483647;
break;
}
- if (object.overridableFeatures != null) {
- if (typeof object.overridableFeatures !== "object")
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
- message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
- }
- if (object.fixedFeatures != null) {
- if (typeof object.fixedFeatures !== "object")
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
- message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
+ if (object.features != null) {
+ if (typeof object.features !== "object")
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
+ message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
}
return message;
};
@@ -18152,16 +18339,13 @@
options = {};
var object = {};
if (options.defaults) {
+ object.features = null;
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
- object.overridableFeatures = null;
- object.fixedFeatures = null;
}
+ if (message.features != null && message.hasOwnProperty("features"))
+ object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.edition != null && message.hasOwnProperty("edition"))
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
- if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
- object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
- if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
- object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
return object;
};
diff --git a/dev/protos/firestore_v1_proto_api.d.ts b/dev/protos/firestore_v1_proto_api.d.ts
index ac9a6bc1a..c8f989169 100644
--- a/dev/protos/firestore_v1_proto_api.d.ts
+++ b/dev/protos/firestore_v1_proto_api.d.ts
@@ -360,9521 +360,9857 @@ export namespace firestore {
/** Namespace google. */
export namespace google {
- /** Namespace protobuf. */
- namespace protobuf {
+ /** Namespace firestore. */
+ namespace firestore {
- /** Properties of a Struct. */
- interface IStruct {
+ /** Namespace v1. */
+ namespace v1 {
- /** Struct fields */
- fields?: ({ [k: string]: google.protobuf.IValue }|null);
- }
+ /** Properties of an AggregationResult. */
+ interface IAggregationResult {
- /** Represents a Struct. */
- class Struct implements IStruct {
+ /** AggregationResult aggregateFields */
+ aggregateFields?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
- /**
- * Constructs a new Struct.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IStruct);
+ /** Represents an AggregationResult. */
+ class AggregationResult implements IAggregationResult {
- /** Struct fields. */
- public fields: { [k: string]: google.protobuf.IValue };
+ /**
+ * Constructs a new AggregationResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IAggregationResult);
- /**
- * 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;
+ /** AggregationResult aggregateFields. */
+ public aggregateFields: { [k: string]: google.firestore.v1.IValue };
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this Struct to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this AggregationResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of a Value. */
- interface IValue {
+ /**
+ * 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;
+ }
- /** Value nullValue */
- nullValue?: (google.protobuf.NullValue|null);
+ /** Properties of a Document. */
+ interface IDocument {
- /** Value numberValue */
- numberValue?: (number|null);
+ /** Document name */
+ name?: (string|null);
- /** Value stringValue */
- stringValue?: (string|null);
+ /** Document fields */
+ fields?: ({ [k: string]: google.firestore.v1.IValue }|null);
- /** Value boolValue */
- boolValue?: (boolean|null);
+ /** Document createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
- /** Value structValue */
- structValue?: (google.protobuf.IStruct|null);
+ /** Document updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
- /** Value listValue */
- listValue?: (google.protobuf.IListValue|null);
- }
+ /** Represents a Document. */
+ class Document implements IDocument {
- /** Represents a Value. */
- class Value implements IValue {
+ /**
+ * Constructs a new Document.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocument);
- /**
- * Constructs a new Value.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IValue);
+ /** Document name. */
+ public name: string;
- /** Value nullValue. */
- public nullValue?: (google.protobuf.NullValue|null);
+ /** Document fields. */
+ public fields: { [k: string]: google.firestore.v1.IValue };
- /** Value numberValue. */
- public numberValue?: (number|null);
+ /** Document createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
- /** Value stringValue. */
- public stringValue?: (string|null);
+ /** Document updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
- /** Value boolValue. */
- public boolValue?: (boolean|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;
- /** Value structValue. */
- public structValue?: (google.protobuf.IStruct|null);
+ /**
+ * 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 };
- /** Value listValue. */
- public listValue?: (google.protobuf.IListValue|null);
+ /**
+ * Converts this Document to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Value kind. */
- public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+ /**
+ * 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;
+ }
- /**
- * 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;
+ /** Properties of a Value. */
+ interface IValue {
- /**
- * 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 };
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|null);
- /**
- * Converts this Value to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Value booleanValue */
+ booleanValue?: (boolean|null);
- /**
- * 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;
- }
+ /** Value integerValue */
+ integerValue?: (number|string|null);
- /** NullValue enum. */
- type NullValue =
- "NULL_VALUE";
+ /** Value doubleValue */
+ doubleValue?: (number|null);
- /** Properties of a ListValue. */
- interface IListValue {
+ /** Value timestampValue */
+ timestampValue?: (google.protobuf.ITimestamp|null);
- /** ListValue values */
- values?: (google.protobuf.IValue[]|null);
- }
+ /** Value stringValue */
+ stringValue?: (string|null);
- /** Represents a ListValue. */
- class ListValue implements IListValue {
+ /** Value bytesValue */
+ bytesValue?: (Uint8Array|null);
- /**
- * Constructs a new ListValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IListValue);
+ /** Value referenceValue */
+ referenceValue?: (string|null);
- /** ListValue values. */
- public values: google.protobuf.IValue[];
+ /** Value geoPointValue */
+ geoPointValue?: (google.type.ILatLng|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;
+ /** Value arrayValue */
+ arrayValue?: (google.firestore.v1.IArrayValue|null);
- /**
- * 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 };
+ /** Value mapValue */
+ mapValue?: (google.firestore.v1.IMapValue|null);
- /**
- * Converts this ListValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Value fieldReferenceValue */
+ fieldReferenceValue?: (string|null);
- /**
- * 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 Timestamp. */
- interface ITimestamp {
-
- /** Timestamp seconds */
- seconds?: (number|string|null);
+ /** Value functionValue */
+ functionValue?: (google.firestore.v1.IFunction|null);
- /** Timestamp nanos */
- nanos?: (number|null);
- }
+ /** Value pipelineValue */
+ pipelineValue?: (google.firestore.v1.IPipeline|null);
+ }
- /** Represents a Timestamp. */
- class Timestamp implements ITimestamp {
+ /** Represents a Value. */
+ class Value implements IValue {
- /**
- * Constructs a new Timestamp.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.ITimestamp);
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IValue);
- /** Timestamp seconds. */
- public seconds: (number|string);
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|null);
- /** Timestamp nanos. */
- public nanos: number;
+ /** Value booleanValue. */
+ public booleanValue?: (boolean|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;
+ /** Value integerValue. */
+ public integerValue?: (number|string|null);
- /**
- * 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 };
+ /** Value doubleValue. */
+ public doubleValue?: (number|null);
- /**
- * Converts this Timestamp to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Value timestampValue. */
+ public timestampValue?: (google.protobuf.ITimestamp|null);
- /**
- * 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;
- }
+ /** Value stringValue. */
+ public stringValue?: (string|null);
- /** Properties of a FileDescriptorSet. */
- interface IFileDescriptorSet {
+ /** Value bytesValue. */
+ public bytesValue?: (Uint8Array|null);
- /** FileDescriptorSet file */
- file?: (google.protobuf.IFileDescriptorProto[]|null);
- }
+ /** Value referenceValue. */
+ public referenceValue?: (string|null);
- /** Represents a FileDescriptorSet. */
- class FileDescriptorSet implements IFileDescriptorSet {
+ /** Value geoPointValue. */
+ public geoPointValue?: (google.type.ILatLng|null);
- /**
- * Constructs a new FileDescriptorSet.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFileDescriptorSet);
+ /** Value arrayValue. */
+ public arrayValue?: (google.firestore.v1.IArrayValue|null);
- /** FileDescriptorSet file. */
- public file: google.protobuf.IFileDescriptorProto[];
+ /** Value mapValue. */
+ public mapValue?: (google.firestore.v1.IMapValue|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;
+ /** Value fieldReferenceValue. */
+ public fieldReferenceValue?: (string|null);
- /**
- * 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 };
+ /** Value functionValue. */
+ public functionValue?: (google.firestore.v1.IFunction|null);
- /**
- * Converts this FileDescriptorSet to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Value pipelineValue. */
+ public pipelineValue?: (google.firestore.v1.IPipeline|null);
- /**
- * 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;
- }
+ /** Value valueType. */
+ public valueType?: ("nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"stringValue"|"bytesValue"|"referenceValue"|"geoPointValue"|"arrayValue"|"mapValue"|"fieldReferenceValue"|"functionValue"|"pipelineValue");
- /** Edition enum. */
- type Edition =
- "EDITION_UNKNOWN"| "EDITION_LEGACY"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
+ /**
+ * 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;
- /** Properties of a FileDescriptorProto. */
- interface IFileDescriptorProto {
+ /**
+ * 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 };
- /** FileDescriptorProto name */
- name?: (string|null);
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FileDescriptorProto package */
- "package"?: (string|null);
+ /**
+ * 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;
+ }
- /** FileDescriptorProto dependency */
- dependency?: (string[]|null);
+ /** Properties of an ArrayValue. */
+ interface IArrayValue {
- /** FileDescriptorProto publicDependency */
- publicDependency?: (number[]|null);
+ /** ArrayValue values */
+ values?: (google.firestore.v1.IValue[]|null);
+ }
- /** FileDescriptorProto weakDependency */
- weakDependency?: (number[]|null);
+ /** Represents an ArrayValue. */
+ class ArrayValue implements IArrayValue {
- /** FileDescriptorProto messageType */
- messageType?: (google.protobuf.IDescriptorProto[]|null);
+ /**
+ * Constructs a new ArrayValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IArrayValue);
- /** FileDescriptorProto enumType */
- enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+ /** ArrayValue values. */
+ public values: google.firestore.v1.IValue[];
- /** FileDescriptorProto service */
- service?: (google.protobuf.IServiceDescriptorProto[]|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;
- /** FileDescriptorProto extension */
- extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+ /**
+ * 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 };
- /** FileDescriptorProto options */
- options?: (google.protobuf.IFileOptions|null);
+ /**
+ * Converts this ArrayValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FileDescriptorProto sourceCodeInfo */
- sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+ /**
+ * 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;
+ }
- /** FileDescriptorProto syntax */
- syntax?: (string|null);
+ /** Properties of a MapValue. */
+ interface IMapValue {
- /** FileDescriptorProto edition */
- edition?: (google.protobuf.Edition|null);
- }
+ /** MapValue fields */
+ fields?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
- /** Represents a FileDescriptorProto. */
- class FileDescriptorProto implements IFileDescriptorProto {
+ /** Represents a MapValue. */
+ class MapValue implements IMapValue {
- /**
- * Constructs a new FileDescriptorProto.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFileDescriptorProto);
+ /**
+ * Constructs a new MapValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IMapValue);
- /** FileDescriptorProto name. */
- public name: string;
+ /** MapValue fields. */
+ public fields: { [k: string]: google.firestore.v1.IValue };
- /** FileDescriptorProto package. */
- public package: string;
+ /**
+ * 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;
- /** FileDescriptorProto dependency. */
- public dependency: string[];
+ /**
+ * 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 };
- /** FileDescriptorProto publicDependency. */
- public publicDependency: number[];
-
- /** FileDescriptorProto weakDependency. */
- public weakDependency: number[];
-
- /** 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;
-
- /**
- * 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);
- }
-
- /** 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[];
-
- /**
- * 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;
- }
+ /**
+ * Converts this MapValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- namespace DescriptorProto {
+ /**
+ * 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 an ExtensionRange. */
- interface IExtensionRange {
+ /** Properties of a Function. */
+ interface IFunction {
- /** ExtensionRange start */
- start?: (number|null);
+ /** Function name */
+ name?: (string|null);
- /** ExtensionRange end */
- end?: (number|null);
+ /** Function args */
+ args?: (google.firestore.v1.IValue[]|null);
- /** ExtensionRange options */
- options?: (google.protobuf.IExtensionRangeOptions|null);
+ /** Function options */
+ options?: ({ [k: string]: google.firestore.v1.IValue }|null);
}
- /** Represents an ExtensionRange. */
- class ExtensionRange implements IExtensionRange {
+ /** Represents a Function. */
+ class Function implements IFunction {
/**
- * Constructs a new ExtensionRange.
+ * Constructs a new Function.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+ constructor(properties?: google.firestore.v1.IFunction);
- /** ExtensionRange start. */
- public start: number;
+ /** Function name. */
+ public name: string;
- /** ExtensionRange end. */
- public end: number;
+ /** Function args. */
+ public args: google.firestore.v1.IValue[];
- /** ExtensionRange options. */
- public options?: (google.protobuf.IExtensionRangeOptions|null);
+ /** Function options. */
+ public options: { [k: string]: google.firestore.v1.IValue };
/**
- * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * Creates a Function message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ExtensionRange
+ * @returns Function
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Function;
/**
- * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
- * @param message ExtensionRange
+ * 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.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.Function, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ExtensionRange to JSON.
+ * Converts this Function to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ExtensionRange
+ * 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 ReservedRange. */
- interface IReservedRange {
-
- /** ReservedRange start */
- start?: (number|null);
+ /** Properties of a Pipeline. */
+ interface IPipeline {
- /** ReservedRange end */
- end?: (number|null);
+ /** Pipeline stages */
+ stages?: (google.firestore.v1.Pipeline.IStage[]|null);
}
- /** Represents a ReservedRange. */
- class ReservedRange implements IReservedRange {
+ /** Represents a Pipeline. */
+ class Pipeline implements IPipeline {
/**
- * Constructs a new ReservedRange.
+ * Constructs a new Pipeline.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+ constructor(properties?: google.firestore.v1.IPipeline);
- /** ReservedRange start. */
- public start: number;
-
- /** ReservedRange end. */
- public end: number;
+ /** Pipeline stages. */
+ public stages: google.firestore.v1.Pipeline.IStage[];
/**
- * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * Creates a Pipeline message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ReservedRange
+ * @returns Pipeline
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Pipeline;
/**
- * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
- * @param message ReservedRange
+ * 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.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.Pipeline, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ReservedRange to JSON.
+ * Converts this Pipeline to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ReservedRange
+ * 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;
}
- }
- /** Properties of an ExtensionRangeOptions. */
- interface IExtensionRangeOptions {
+ namespace Pipeline {
- /** ExtensionRangeOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /** Properties of a Stage. */
+ interface IStage {
- /** ExtensionRangeOptions declaration */
- declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+ /** Stage name */
+ name?: (string|null);
- /** ExtensionRangeOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /** Stage args */
+ args?: (google.firestore.v1.IValue[]|null);
- /** ExtensionRangeOptions verification */
- verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|null);
- }
+ /** Stage options */
+ options?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ }
- /** Represents an ExtensionRangeOptions. */
- class ExtensionRangeOptions implements IExtensionRangeOptions {
+ /** Represents a Stage. */
+ class Stage implements IStage {
- /**
- * Constructs a new ExtensionRangeOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IExtensionRangeOptions);
+ /**
+ * Constructs a new Stage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.Pipeline.IStage);
- /** ExtensionRangeOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** Stage name. */
+ public name: string;
- /** ExtensionRangeOptions declaration. */
- public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+ /** Stage args. */
+ public args: google.firestore.v1.IValue[];
- /** ExtensionRangeOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** Stage options. */
+ public options: { [k: string]: google.firestore.v1.IValue };
- /** ExtensionRangeOptions verification. */
- public verification: google.protobuf.ExtensionRangeOptions.VerificationState;
-
- /**
- * 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 {
+ /**
+ * 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;
- /** Properties of a Declaration. */
- interface IDeclaration {
+ /**
+ * 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 };
- /** Declaration number */
- number?: (number|null);
+ /**
+ * Converts this Stage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Declaration fullName */
- fullName?: (string|null);
+ /**
+ * 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;
+ }
+ }
- /** Declaration type */
- type?: (string|null);
+ /** Properties of a BitSequence. */
+ interface IBitSequence {
- /** Declaration reserved */
- reserved?: (boolean|null);
+ /** BitSequence bitmap */
+ bitmap?: (Uint8Array|null);
- /** Declaration repeated */
- repeated?: (boolean|null);
+ /** BitSequence padding */
+ padding?: (number|null);
}
- /** Represents a Declaration. */
- class Declaration implements IDeclaration {
+ /** Represents a BitSequence. */
+ class BitSequence implements IBitSequence {
/**
- * Constructs a new Declaration.
+ * Constructs a new BitSequence.
* @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;
+ constructor(properties?: google.firestore.v1.IBitSequence);
- /** Declaration reserved. */
- public reserved: boolean;
+ /** BitSequence bitmap. */
+ public bitmap: Uint8Array;
- /** Declaration repeated. */
- public repeated: boolean;
+ /** BitSequence padding. */
+ public padding: number;
/**
- * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * Creates a BitSequence message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Declaration
+ * @returns BitSequence
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BitSequence;
/**
- * Creates a plain object from a Declaration message. Also converts values to other types if specified.
- * @param message Declaration
+ * 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.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.BitSequence, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Declaration to JSON.
+ * Converts this BitSequence to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Declaration
+ * 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;
}
- /** VerificationState enum. */
- type VerificationState =
- "DECLARATION"| "UNVERIFIED";
- }
-
- /** Properties of a FieldDescriptorProto. */
- interface IFieldDescriptorProto {
+ /** Properties of a BloomFilter. */
+ interface IBloomFilter {
- /** FieldDescriptorProto name */
- name?: (string|null);
+ /** BloomFilter bits */
+ bits?: (google.firestore.v1.IBitSequence|null);
- /** FieldDescriptorProto number */
- number?: (number|null);
+ /** BloomFilter hashCount */
+ hashCount?: (number|null);
+ }
- /** FieldDescriptorProto label */
- label?: (google.protobuf.FieldDescriptorProto.Label|null);
+ /** Represents a BloomFilter. */
+ class BloomFilter implements IBloomFilter {
- /** FieldDescriptorProto type */
- type?: (google.protobuf.FieldDescriptorProto.Type|null);
+ /**
+ * Constructs a new BloomFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBloomFilter);
- /** FieldDescriptorProto typeName */
- typeName?: (string|null);
+ /** BloomFilter bits. */
+ public bits?: (google.firestore.v1.IBitSequence|null);
- /** FieldDescriptorProto extendee */
- extendee?: (string|null);
+ /** BloomFilter hashCount. */
+ public hashCount: number;
- /** FieldDescriptorProto defaultValue */
- defaultValue?: (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;
- /** FieldDescriptorProto oneofIndex */
- oneofIndex?: (number|null);
+ /**
+ * 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 };
- /** FieldDescriptorProto jsonName */
- jsonName?: (string|null);
+ /**
+ * Converts this BloomFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FieldDescriptorProto options */
- options?: (google.protobuf.IFieldOptions|null);
+ /**
+ * 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;
+ }
- /** FieldDescriptorProto proto3Optional */
- proto3Optional?: (boolean|null);
- }
+ /** Properties of a DocumentMask. */
+ interface IDocumentMask {
- /** Represents a FieldDescriptorProto. */
- class FieldDescriptorProto implements IFieldDescriptorProto {
+ /** DocumentMask fieldPaths */
+ fieldPaths?: (string[]|null);
+ }
- /**
- * Constructs a new FieldDescriptorProto.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFieldDescriptorProto);
+ /** Represents a DocumentMask. */
+ class DocumentMask implements IDocumentMask {
- /** FieldDescriptorProto name. */
- public name: string;
+ /**
+ * Constructs a new DocumentMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDocumentMask);
- /** FieldDescriptorProto number. */
- public number: number;
+ /** DocumentMask fieldPaths. */
+ public fieldPaths: string[];
- /** FieldDescriptorProto label. */
- public label: google.protobuf.FieldDescriptorProto.Label;
+ /**
+ * 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;
- /** FieldDescriptorProto type. */
- public type: google.protobuf.FieldDescriptorProto.Type;
+ /**
+ * 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 };
- /** FieldDescriptorProto typeName. */
- public typeName: string;
+ /**
+ * Converts this DocumentMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FieldDescriptorProto extendee. */
- public extendee: string;
+ /**
+ * 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;
+ }
- /** FieldDescriptorProto defaultValue. */
- public defaultValue: string;
+ /** Properties of a Precondition. */
+ interface IPrecondition {
- /** FieldDescriptorProto oneofIndex. */
- public oneofIndex: number;
+ /** Precondition exists */
+ exists?: (boolean|null);
- /** FieldDescriptorProto jsonName. */
- public jsonName: string;
+ /** Precondition updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
- /** FieldDescriptorProto options. */
- public options?: (google.protobuf.IFieldOptions|null);
+ /** Represents a Precondition. */
+ class Precondition implements IPrecondition {
- /** FieldDescriptorProto proto3Optional. */
- public proto3Optional: boolean;
-
- /**
- * 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. */
- type Type =
- "TYPE_DOUBLE"| "TYPE_FLOAT"| "TYPE_INT64"| "TYPE_UINT64"| "TYPE_INT32"| "TYPE_FIXED64"| "TYPE_FIXED32"| "TYPE_BOOL"| "TYPE_STRING"| "TYPE_GROUP"| "TYPE_MESSAGE"| "TYPE_BYTES"| "TYPE_UINT32"| "TYPE_ENUM"| "TYPE_SFIXED32"| "TYPE_SFIXED64"| "TYPE_SINT32"| "TYPE_SINT64";
-
- /** Label enum. */
- type Label =
- "LABEL_OPTIONAL"| "LABEL_REPEATED"| "LABEL_REQUIRED";
- }
-
- /** 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 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);
- }
-
- /** 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);
+ /**
+ * Constructs a new Precondition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPrecondition);
- /** EnumDescriptorProto reservedRange. */
- public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+ /** Precondition exists. */
+ public exists?: (boolean|null);
- /** EnumDescriptorProto reservedName. */
- public reservedName: string[];
+ /** Precondition updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|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;
+ /** Precondition conditionType. */
+ public conditionType?: ("exists"|"updateTime");
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this EnumDescriptorProto to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this Precondition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- namespace EnumDescriptorProto {
+ /**
+ * 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 an EnumReservedRange. */
- interface IEnumReservedRange {
+ /** Properties of a TransactionOptions. */
+ interface ITransactionOptions {
- /** EnumReservedRange start */
- start?: (number|null);
+ /** TransactionOptions readOnly */
+ readOnly?: (google.firestore.v1.TransactionOptions.IReadOnly|null);
- /** EnumReservedRange end */
- end?: (number|null);
+ /** TransactionOptions readWrite */
+ readWrite?: (google.firestore.v1.TransactionOptions.IReadWrite|null);
}
- /** Represents an EnumReservedRange. */
- class EnumReservedRange implements IEnumReservedRange {
+ /** Represents a TransactionOptions. */
+ class TransactionOptions implements ITransactionOptions {
/**
- * Constructs a new EnumReservedRange.
+ * Constructs a new TransactionOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+ constructor(properties?: google.firestore.v1.ITransactionOptions);
- /** EnumReservedRange start. */
- public start: number;
+ /** TransactionOptions readOnly. */
+ public readOnly?: (google.firestore.v1.TransactionOptions.IReadOnly|null);
- /** EnumReservedRange end. */
- public end: number;
+ /** TransactionOptions readWrite. */
+ public readWrite?: (google.firestore.v1.TransactionOptions.IReadWrite|null);
+
+ /** TransactionOptions mode. */
+ public mode?: ("readOnly"|"readWrite");
/**
- * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns EnumReservedRange
+ * @returns TransactionOptions
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.TransactionOptions;
/**
- * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
- * @param message EnumReservedRange
+ * 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.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.TransactionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this EnumReservedRange to JSON.
+ * Converts this TransactionOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for EnumReservedRange
+ * 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;
}
- }
- /** Properties of an EnumValueDescriptorProto. */
- interface IEnumValueDescriptorProto {
+ namespace TransactionOptions {
- /** EnumValueDescriptorProto name */
- name?: (string|null);
+ /** Properties of a ReadWrite. */
+ interface IReadWrite {
- /** EnumValueDescriptorProto number */
- number?: (number|null);
+ /** ReadWrite retryTransaction */
+ retryTransaction?: (Uint8Array|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;
+
+ /**
+ * 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 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;
+ }
+ }
+
+ /** 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);
+
+ /**
+ * 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|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|null);
+
+ /** GetDocumentRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** GetDocumentRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"readTime");
+
+ /**
+ * 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|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|null);
+
+ /** ListDocumentsRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListDocumentsRequest showMissing. */
+ public showMissing: boolean;
+
+ /** ListDocumentsRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"readTime");
+
+ /**
+ * 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 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 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);
+ }
- /** EnumValueDescriptorProto options */
- options?: (google.protobuf.IEnumValueOptions|null);
- }
+ /** Represents an UpdateDocumentRequest. */
+ class UpdateDocumentRequest implements IUpdateDocumentRequest {
- /** Represents an EnumValueDescriptorProto. */
- class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+ /**
+ * Constructs a new UpdateDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IUpdateDocumentRequest);
- /**
- * Constructs a new EnumValueDescriptorProto.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+ /** UpdateDocumentRequest document. */
+ public document?: (google.firestore.v1.IDocument|null);
- /** EnumValueDescriptorProto name. */
- public name: string;
+ /** UpdateDocumentRequest updateMask. */
+ public updateMask?: (google.firestore.v1.IDocumentMask|null);
- /** EnumValueDescriptorProto number. */
- public number: number;
+ /** UpdateDocumentRequest mask. */
+ public mask?: (google.firestore.v1.IDocumentMask|null);
- /** EnumValueDescriptorProto options. */
- public options?: (google.protobuf.IEnumValueOptions|null);
+ /** UpdateDocumentRequest currentDocument. */
+ public currentDocument?: (google.firestore.v1.IPrecondition|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 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 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 };
+ /**
+ * 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 EnumValueDescriptorProto to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this UpdateDocumentRequest 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;
- }
+ /**
+ * 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 ServiceDescriptorProto. */
- interface IServiceDescriptorProto {
+ /** Properties of a DeleteDocumentRequest. */
+ interface IDeleteDocumentRequest {
- /** ServiceDescriptorProto name */
- name?: (string|null);
+ /** DeleteDocumentRequest name */
+ name?: (string|null);
- /** ServiceDescriptorProto method */
- method?: (google.protobuf.IMethodDescriptorProto[]|null);
+ /** DeleteDocumentRequest currentDocument */
+ currentDocument?: (google.firestore.v1.IPrecondition|null);
+ }
- /** ServiceDescriptorProto options */
- options?: (google.protobuf.IServiceOptions|null);
- }
+ /** Represents a DeleteDocumentRequest. */
+ class DeleteDocumentRequest implements IDeleteDocumentRequest {
- /** Represents a ServiceDescriptorProto. */
- class ServiceDescriptorProto implements IServiceDescriptorProto {
+ /**
+ * Constructs a new DeleteDocumentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IDeleteDocumentRequest);
- /**
- * Constructs a new ServiceDescriptorProto.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IServiceDescriptorProto);
+ /** DeleteDocumentRequest name. */
+ public name: string;
- /** ServiceDescriptorProto name. */
- public name: string;
+ /** DeleteDocumentRequest currentDocument. */
+ public currentDocument?: (google.firestore.v1.IPrecondition|null);
- /** ServiceDescriptorProto method. */
- public method: google.protobuf.IMethodDescriptorProto[];
+ /**
+ * 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;
- /** ServiceDescriptorProto options. */
- public options?: (google.protobuf.IServiceOptions|null);
+ /**
+ * 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|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|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 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|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);
- /**
- * 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;
+ /** BatchGetDocumentsResponse missing. */
+ public missing?: (string|null);
- /**
- * 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 };
+ /** BatchGetDocumentsResponse transaction. */
+ public transaction: Uint8Array;
- /**
- * Converts this ServiceDescriptorProto to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** BatchGetDocumentsResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /**
- * 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;
- }
+ /** BatchGetDocumentsResponse result. */
+ public result?: ("found"|"missing");
- /** Properties of a MethodDescriptorProto. */
- interface IMethodDescriptorProto {
+ /**
+ * 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;
- /** MethodDescriptorProto name */
- name?: (string|null);
+ /**
+ * 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 };
- /** MethodDescriptorProto inputType */
- inputType?: (string|null);
+ /**
+ * Converts this BatchGetDocumentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** MethodDescriptorProto outputType */
- outputType?: (string|null);
+ /**
+ * 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;
+ }
- /** MethodDescriptorProto options */
- options?: (google.protobuf.IMethodOptions|null);
+ /** Properties of a BeginTransactionRequest. */
+ interface IBeginTransactionRequest {
- /** MethodDescriptorProto clientStreaming */
- clientStreaming?: (boolean|null);
+ /** BeginTransactionRequest database */
+ database?: (string|null);
- /** MethodDescriptorProto serverStreaming */
- serverStreaming?: (boolean|null);
- }
+ /** BeginTransactionRequest options */
+ options?: (google.firestore.v1.ITransactionOptions|null);
+ }
- /** Represents a MethodDescriptorProto. */
- class MethodDescriptorProto implements IMethodDescriptorProto {
+ /** Represents a BeginTransactionRequest. */
+ class BeginTransactionRequest implements IBeginTransactionRequest {
- /**
- * Constructs a new MethodDescriptorProto.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IMethodDescriptorProto);
+ /**
+ * Constructs a new BeginTransactionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBeginTransactionRequest);
- /** MethodDescriptorProto name. */
- public name: string;
+ /** BeginTransactionRequest database. */
+ public database: string;
- /** MethodDescriptorProto inputType. */
- public inputType: string;
+ /** BeginTransactionRequest options. */
+ public options?: (google.firestore.v1.ITransactionOptions|null);
- /** MethodDescriptorProto outputType. */
- public outputType: string;
+ /**
+ * 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;
- /** MethodDescriptorProto options. */
- public options?: (google.protobuf.IMethodOptions|null);
+ /**
+ * 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 };
- /** MethodDescriptorProto clientStreaming. */
- public clientStreaming: boolean;
+ /**
+ * Converts this BeginTransactionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** MethodDescriptorProto serverStreaming. */
- public serverStreaming: boolean;
+ /**
+ * 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;
+ }
- /**
- * 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;
+ /** Properties of a BeginTransactionResponse. */
+ interface IBeginTransactionResponse {
- /**
- * 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 };
+ /** BeginTransactionResponse transaction */
+ transaction?: (Uint8Array|null);
+ }
- /**
- * Converts this MethodDescriptorProto to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Represents a BeginTransactionResponse. */
+ class BeginTransactionResponse implements IBeginTransactionResponse {
- /**
- * 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;
- }
+ /**
+ * Constructs a new BeginTransactionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBeginTransactionResponse);
- /** Properties of a FileOptions. */
- interface IFileOptions {
+ /** BeginTransactionResponse transaction. */
+ public transaction: Uint8Array;
- /** FileOptions javaPackage */
- javaPackage?: (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;
- /** FileOptions javaOuterClassname */
- javaOuterClassname?: (string|null);
+ /**
+ * 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 };
- /** FileOptions javaMultipleFiles */
- javaMultipleFiles?: (boolean|null);
+ /**
+ * Converts this BeginTransactionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FileOptions javaGenerateEqualsAndHash */
- javaGenerateEqualsAndHash?: (boolean|null);
+ /**
+ * 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;
+ }
- /** FileOptions javaStringCheckUtf8 */
- javaStringCheckUtf8?: (boolean|null);
+ /** Properties of a CommitRequest. */
+ interface ICommitRequest {
- /** FileOptions optimizeFor */
- optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null);
+ /** CommitRequest database */
+ database?: (string|null);
- /** FileOptions goPackage */
- goPackage?: (string|null);
+ /** CommitRequest writes */
+ writes?: (google.firestore.v1.IWrite[]|null);
- /** FileOptions ccGenericServices */
- ccGenericServices?: (boolean|null);
+ /** CommitRequest transaction */
+ transaction?: (Uint8Array|null);
+ }
- /** FileOptions javaGenericServices */
- javaGenericServices?: (boolean|null);
+ /** Represents a CommitRequest. */
+ class CommitRequest implements ICommitRequest {
- /** FileOptions pyGenericServices */
- pyGenericServices?: (boolean|null);
+ /**
+ * Constructs a new CommitRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ICommitRequest);
- /** FileOptions deprecated */
- deprecated?: (boolean|null);
+ /** CommitRequest database. */
+ public database: string;
- /** FileOptions ccEnableArenas */
- ccEnableArenas?: (boolean|null);
+ /** CommitRequest writes. */
+ public writes: google.firestore.v1.IWrite[];
- /** FileOptions objcClassPrefix */
- objcClassPrefix?: (string|null);
+ /** CommitRequest transaction. */
+ public transaction: Uint8Array;
- /** FileOptions csharpNamespace */
- csharpNamespace?: (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;
- /** FileOptions swiftPrefix */
- swiftPrefix?: (string|null);
+ /**
+ * 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 };
- /** FileOptions phpClassPrefix */
- phpClassPrefix?: (string|null);
+ /**
+ * Converts this CommitRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FileOptions phpNamespace */
- phpNamespace?: (string|null);
+ /**
+ * 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;
+ }
- /** FileOptions phpMetadataNamespace */
- phpMetadataNamespace?: (string|null);
+ /** Properties of a CommitResponse. */
+ interface ICommitResponse {
- /** FileOptions rubyPackage */
- rubyPackage?: (string|null);
+ /** CommitResponse writeResults */
+ writeResults?: (google.firestore.v1.IWriteResult[]|null);
- /** FileOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /** CommitResponse commitTime */
+ commitTime?: (google.protobuf.ITimestamp|null);
+ }
- /** FileOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /** Represents a CommitResponse. */
+ class CommitResponse implements ICommitResponse {
- /** FileOptions .google.api.resourceDefinition */
- ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
- }
+ /**
+ * Constructs a new CommitResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ICommitResponse);
- /** Represents a FileOptions. */
- class FileOptions implements IFileOptions {
+ /** CommitResponse writeResults. */
+ public writeResults: google.firestore.v1.IWriteResult[];
- /**
- * Constructs a new FileOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFileOptions);
+ /** CommitResponse commitTime. */
+ public commitTime?: (google.protobuf.ITimestamp|null);
- /** FileOptions javaPackage. */
- public javaPackage: string;
+ /**
+ * 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;
- /** FileOptions javaOuterClassname. */
- public javaOuterClassname: string;
+ /**
+ * 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 };
- /** FileOptions javaMultipleFiles. */
- public javaMultipleFiles: boolean;
+ /**
+ * Converts this CommitResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FileOptions javaGenerateEqualsAndHash. */
- public javaGenerateEqualsAndHash: boolean;
+ /**
+ * 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;
+ }
- /** FileOptions javaStringCheckUtf8. */
- public javaStringCheckUtf8: boolean;
+ /** Properties of a RollbackRequest. */
+ interface IRollbackRequest {
- /** FileOptions optimizeFor. */
- public optimizeFor: google.protobuf.FileOptions.OptimizeMode;
+ /** RollbackRequest database */
+ database?: (string|null);
- /** FileOptions goPackage. */
- public goPackage: string;
+ /** RollbackRequest transaction */
+ transaction?: (Uint8Array|null);
+ }
- /** FileOptions ccGenericServices. */
- public ccGenericServices: boolean;
+ /** Represents a RollbackRequest. */
+ class RollbackRequest implements IRollbackRequest {
- /** FileOptions javaGenericServices. */
- public javaGenericServices: boolean;
+ /**
+ * Constructs a new RollbackRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRollbackRequest);
- /** FileOptions pyGenericServices. */
- public pyGenericServices: boolean;
+ /** RollbackRequest database. */
+ public database: string;
- /** FileOptions deprecated. */
- public deprecated: boolean;
+ /** RollbackRequest transaction. */
+ public transaction: Uint8Array;
- /** FileOptions ccEnableArenas. */
- public ccEnableArenas: boolean;
+ /**
+ * 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;
- /** FileOptions objcClassPrefix. */
- public objcClassPrefix: string;
+ /**
+ * 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 };
- /** FileOptions csharpNamespace. */
- public csharpNamespace: string;
+ /**
+ * Converts this RollbackRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FileOptions swiftPrefix. */
- public swiftPrefix: string;
+ /**
+ * 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;
+ }
- /** FileOptions phpClassPrefix. */
- public phpClassPrefix: string;
+ /** Properties of a RunQueryRequest. */
+ interface IRunQueryRequest {
- /** FileOptions phpNamespace. */
- public phpNamespace: string;
+ /** RunQueryRequest parent */
+ parent?: (string|null);
- /** FileOptions phpMetadataNamespace. */
- public phpMetadataNamespace: string;
+ /** RunQueryRequest structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
- /** FileOptions rubyPackage. */
- public rubyPackage: string;
+ /** RunQueryRequest transaction */
+ transaction?: (Uint8Array|null);
- /** FileOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** RunQueryRequest newTransaction */
+ newTransaction?: (google.firestore.v1.ITransactionOptions|null);
- /** FileOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** RunQueryRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|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;
+ /** RunQueryRequest explainOptions */
+ explainOptions?: (google.firestore.v1.IExplainOptions|null);
+ }
- /**
- * 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 };
+ /** Represents a RunQueryRequest. */
+ class RunQueryRequest implements IRunQueryRequest {
- /**
- * Converts this FileOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new RunQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRunQueryRequest);
- /**
- * 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;
- }
+ /** RunQueryRequest parent. */
+ public parent: string;
- namespace FileOptions {
+ /** RunQueryRequest structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
- /** OptimizeMode enum. */
- type OptimizeMode =
- "SPEED"| "CODE_SIZE"| "LITE_RUNTIME";
- }
+ /** RunQueryRequest transaction. */
+ public transaction?: (Uint8Array|null);
- /** Properties of a MessageOptions. */
- interface IMessageOptions {
+ /** RunQueryRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
- /** MessageOptions messageSetWireFormat */
- messageSetWireFormat?: (boolean|null);
+ /** RunQueryRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /** MessageOptions noStandardDescriptorAccessor */
- noStandardDescriptorAccessor?: (boolean|null);
+ /** RunQueryRequest explainOptions. */
+ public explainOptions?: (google.firestore.v1.IExplainOptions|null);
- /** MessageOptions deprecated */
- deprecated?: (boolean|null);
+ /** RunQueryRequest queryType. */
+ public queryType?: "structuredQuery";
- /** MessageOptions mapEntry */
- mapEntry?: (boolean|null);
+ /** RunQueryRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
- /** MessageOptions deprecatedLegacyJsonFieldConflicts */
- deprecatedLegacyJsonFieldConflicts?: (boolean|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;
- /** MessageOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /**
+ * 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 };
- /** MessageOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /**
+ * Converts this RunQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** MessageOptions .google.api.resource */
- ".google.api.resource"?: (google.api.IResourceDescriptor|null);
- }
+ /**
+ * 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;
+ }
- /** Represents a MessageOptions. */
- class MessageOptions implements IMessageOptions {
+ /** Properties of a RunQueryResponse. */
+ interface IRunQueryResponse {
- /**
- * Constructs a new MessageOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IMessageOptions);
+ /** RunQueryResponse transaction */
+ transaction?: (Uint8Array|null);
- /** MessageOptions messageSetWireFormat. */
- public messageSetWireFormat: boolean;
+ /** RunQueryResponse document */
+ document?: (google.firestore.v1.IDocument|null);
- /** MessageOptions noStandardDescriptorAccessor. */
- public noStandardDescriptorAccessor: boolean;
+ /** RunQueryResponse readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
- /** MessageOptions deprecated. */
- public deprecated: boolean;
+ /** RunQueryResponse skippedResults */
+ skippedResults?: (number|null);
- /** MessageOptions mapEntry. */
- public mapEntry: boolean;
+ /** RunQueryResponse done */
+ done?: (boolean|null);
- /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
- public deprecatedLegacyJsonFieldConflicts: boolean;
+ /** RunQueryResponse explainMetrics */
+ explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
+ }
- /** MessageOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** Represents a RunQueryResponse. */
+ class RunQueryResponse implements IRunQueryResponse {
- /** MessageOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /**
+ * Constructs a new RunQueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IRunQueryResponse);
- /**
- * 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;
+ /** RunQueryResponse transaction. */
+ public transaction: Uint8Array;
- /**
- * 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 };
+ /** RunQueryResponse document. */
+ public document?: (google.firestore.v1.IDocument|null);
- /**
- * Converts this MessageOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** RunQueryResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /**
- * 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;
- }
+ /** RunQueryResponse skippedResults. */
+ public skippedResults: number;
- /** Properties of a FieldOptions. */
- interface IFieldOptions {
+ /** RunQueryResponse done. */
+ public done?: (boolean|null);
- /** FieldOptions ctype */
- ctype?: (google.protobuf.FieldOptions.CType|null);
+ /** RunQueryResponse explainMetrics. */
+ public explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
- /** FieldOptions packed */
- packed?: (boolean|null);
+ /** RunQueryResponse continuationSelector. */
+ public continuationSelector?: "done";
- /** FieldOptions jstype */
- jstype?: (google.protobuf.FieldOptions.JSType|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;
- /** FieldOptions lazy */
- lazy?: (boolean|null);
+ /**
+ * 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 };
- /** FieldOptions unverifiedLazy */
- unverifiedLazy?: (boolean|null);
+ /**
+ * Converts this RunQueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FieldOptions deprecated */
- deprecated?: (boolean|null);
+ /**
+ * 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;
+ }
- /** FieldOptions weak */
- weak?: (boolean|null);
+ /** Properties of an ExecutePipelineRequest. */
+ interface IExecutePipelineRequest {
- /** FieldOptions debugRedact */
- debugRedact?: (boolean|null);
+ /** ExecutePipelineRequest database */
+ database?: (string|null);
- /** FieldOptions retention */
- retention?: (google.protobuf.FieldOptions.OptionRetention|null);
+ /** ExecutePipelineRequest structuredPipeline */
+ structuredPipeline?: (google.firestore.v1.IStructuredPipeline|null);
- /** FieldOptions targets */
- targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+ /** ExecutePipelineRequest transaction */
+ transaction?: (Uint8Array|null);
- /** FieldOptions editionDefaults */
- editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+ /** ExecutePipelineRequest newTransaction */
+ newTransaction?: (google.firestore.v1.ITransactionOptions|null);
- /** FieldOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /** ExecutePipelineRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
- /** FieldOptions featureSupport */
- featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+ /** Represents an ExecutePipelineRequest. */
+ class ExecutePipelineRequest implements IExecutePipelineRequest {
- /** FieldOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /**
+ * Constructs a new ExecutePipelineRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExecutePipelineRequest);
- /** FieldOptions .google.api.fieldBehavior */
- ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+ /** ExecutePipelineRequest database. */
+ public database: string;
- /** FieldOptions .google.api.resourceReference */
- ".google.api.resourceReference"?: (google.api.IResourceReference|null);
- }
+ /** ExecutePipelineRequest structuredPipeline. */
+ public structuredPipeline?: (google.firestore.v1.IStructuredPipeline|null);
- /** Represents a FieldOptions. */
- class FieldOptions implements IFieldOptions {
+ /** ExecutePipelineRequest transaction. */
+ public transaction?: (Uint8Array|null);
- /**
- * Constructs a new FieldOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFieldOptions);
+ /** ExecutePipelineRequest newTransaction. */
+ public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
- /** FieldOptions ctype. */
- public ctype: google.protobuf.FieldOptions.CType;
+ /** ExecutePipelineRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /** FieldOptions packed. */
- public packed: boolean;
+ /** ExecutePipelineRequest pipelineType. */
+ public pipelineType?: "structuredPipeline";
- /** FieldOptions jstype. */
- public jstype: google.protobuf.FieldOptions.JSType;
+ /** ExecutePipelineRequest consistencySelector. */
+ public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
- /** FieldOptions lazy. */
- public lazy: boolean;
+ /**
+ * 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;
- /** FieldOptions unverifiedLazy. */
- public unverifiedLazy: boolean;
+ /**
+ * 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 };
- /** FieldOptions deprecated. */
- public deprecated: boolean;
+ /**
+ * Converts this ExecutePipelineRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FieldOptions weak. */
- public weak: boolean;
+ /**
+ * 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;
+ }
- /** FieldOptions debugRedact. */
- public debugRedact: boolean;
+ /** Properties of an ExecutePipelineResponse. */
+ interface IExecutePipelineResponse {
- /** FieldOptions retention. */
- public retention: google.protobuf.FieldOptions.OptionRetention;
+ /** ExecutePipelineResponse transaction */
+ transaction?: (Uint8Array|null);
- /** FieldOptions targets. */
- public targets: google.protobuf.FieldOptions.OptionTargetType[];
+ /** ExecutePipelineResponse results */
+ results?: (google.firestore.v1.IDocument[]|null);
- /** FieldOptions editionDefaults. */
- public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+ /** ExecutePipelineResponse executionTime */
+ executionTime?: (google.protobuf.ITimestamp|null);
+ }
- /** FieldOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** Represents an ExecutePipelineResponse. */
+ class ExecutePipelineResponse implements IExecutePipelineResponse {
- /** FieldOptions featureSupport. */
- public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+ /**
+ * Constructs a new ExecutePipelineResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IExecutePipelineResponse);
- /** FieldOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** ExecutePipelineResponse transaction. */
+ public transaction: Uint8Array;
- /**
- * 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;
+ /** ExecutePipelineResponse results. */
+ public results: google.firestore.v1.IDocument[];
- /**
- * 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 };
+ /** ExecutePipelineResponse executionTime. */
+ public executionTime?: (google.protobuf.ITimestamp|null);
- /**
- * Converts this FieldOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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;
- /**
- * 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;
- }
+ /**
+ * 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 };
- namespace FieldOptions {
+ /**
+ * Converts this ExecutePipelineResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** CType enum. */
- type CType =
- "STRING"| "CORD"| "STRING_PIECE";
+ /**
+ * 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;
+ }
- /** JSType enum. */
- type JSType =
- "JS_NORMAL"| "JS_STRING"| "JS_NUMBER";
+ /** Properties of a RunAggregationQueryRequest. */
+ interface IRunAggregationQueryRequest {
- /** OptionRetention enum. */
- type OptionRetention =
- "RETENTION_UNKNOWN"| "RETENTION_RUNTIME"| "RETENTION_SOURCE";
+ /** RunAggregationQueryRequest parent */
+ parent?: (string|null);
- /** OptionTargetType enum. */
- type OptionTargetType =
- "TARGET_TYPE_UNKNOWN"| "TARGET_TYPE_FILE"| "TARGET_TYPE_EXTENSION_RANGE"| "TARGET_TYPE_MESSAGE"| "TARGET_TYPE_FIELD"| "TARGET_TYPE_ONEOF"| "TARGET_TYPE_ENUM"| "TARGET_TYPE_ENUM_ENTRY"| "TARGET_TYPE_SERVICE"| "TARGET_TYPE_METHOD";
+ /** RunAggregationQueryRequest structuredAggregationQuery */
+ structuredAggregationQuery?: (google.firestore.v1.IStructuredAggregationQuery|null);
- /** Properties of an EditionDefault. */
- interface IEditionDefault {
+ /** RunAggregationQueryRequest transaction */
+ transaction?: (Uint8Array|null);
- /** EditionDefault edition */
- edition?: (google.protobuf.Edition|null);
+ /** RunAggregationQueryRequest newTransaction */
+ newTransaction?: (google.firestore.v1.ITransactionOptions|null);
- /** EditionDefault value */
- value?: (string|null);
+ /** RunAggregationQueryRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+
+ /** RunAggregationQueryRequest explainOptions */
+ explainOptions?: (google.firestore.v1.IExplainOptions|null);
}
- /** Represents an EditionDefault. */
- class EditionDefault implements IEditionDefault {
+ /** Represents a RunAggregationQueryRequest. */
+ class RunAggregationQueryRequest implements IRunAggregationQueryRequest {
/**
- * Constructs a new EditionDefault.
+ * Constructs a new RunAggregationQueryRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+ constructor(properties?: google.firestore.v1.IRunAggregationQueryRequest);
- /** EditionDefault edition. */
- public edition: google.protobuf.Edition;
+ /** RunAggregationQueryRequest parent. */
+ public parent: string;
- /** EditionDefault value. */
- public value: string;
+ /** RunAggregationQueryRequest structuredAggregationQuery. */
+ public structuredAggregationQuery?: (google.firestore.v1.IStructuredAggregationQuery|null);
+
+ /** RunAggregationQueryRequest transaction. */
+ public transaction?: (Uint8Array|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 an EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * Creates a RunAggregationQueryRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns EditionDefault
+ * @returns RunAggregationQueryRequest
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.RunAggregationQueryRequest;
/**
- * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
- * @param message EditionDefault
+ * 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.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.RunAggregationQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this EditionDefault to JSON.
+ * Converts this RunAggregationQueryRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for EditionDefault
+ * 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 FeatureSupport. */
- interface IFeatureSupport {
+ /** Properties of a RunAggregationQueryResponse. */
+ interface IRunAggregationQueryResponse {
- /** FeatureSupport editionIntroduced */
- editionIntroduced?: (google.protobuf.Edition|null);
+ /** RunAggregationQueryResponse result */
+ result?: (google.firestore.v1.IAggregationResult|null);
- /** FeatureSupport editionDeprecated */
- editionDeprecated?: (google.protobuf.Edition|null);
+ /** RunAggregationQueryResponse transaction */
+ transaction?: (Uint8Array|null);
- /** FeatureSupport deprecationWarning */
- deprecationWarning?: (string|null);
+ /** RunAggregationQueryResponse readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
- /** FeatureSupport editionRemoved */
- editionRemoved?: (google.protobuf.Edition|null);
+ /** RunAggregationQueryResponse explainMetrics */
+ explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
}
- /** Represents a FeatureSupport. */
- class FeatureSupport implements IFeatureSupport {
+ /** Represents a RunAggregationQueryResponse. */
+ class RunAggregationQueryResponse implements IRunAggregationQueryResponse {
/**
- * Constructs a new FeatureSupport.
+ * Constructs a new RunAggregationQueryResponse.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport);
+ constructor(properties?: google.firestore.v1.IRunAggregationQueryResponse);
- /** FeatureSupport editionIntroduced. */
- public editionIntroduced: google.protobuf.Edition;
+ /** RunAggregationQueryResponse result. */
+ public result?: (google.firestore.v1.IAggregationResult|null);
- /** FeatureSupport editionDeprecated. */
- public editionDeprecated: google.protobuf.Edition;
+ /** RunAggregationQueryResponse transaction. */
+ public transaction: Uint8Array;
- /** FeatureSupport deprecationWarning. */
- public deprecationWarning: string;
+ /** RunAggregationQueryResponse readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /** FeatureSupport editionRemoved. */
- public editionRemoved: google.protobuf.Edition;
+ /** RunAggregationQueryResponse explainMetrics. */
+ public explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
/**
- * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
+ * Creates a RunAggregationQueryResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FeatureSupport
+ * @returns RunAggregationQueryResponse
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.RunAggregationQueryResponse;
/**
- * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
- * @param message FeatureSupport
+ * 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.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.RunAggregationQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FeatureSupport to JSON.
+ * Converts this RunAggregationQueryResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FeatureSupport
+ * 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 an OneofOptions. */
- interface IOneofOptions {
- /** OneofOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /** Properties of a PartitionQueryRequest. */
+ interface IPartitionQueryRequest {
- /** OneofOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- }
+ /** PartitionQueryRequest parent */
+ parent?: (string|null);
- /** Represents an OneofOptions. */
- class OneofOptions implements IOneofOptions {
+ /** PartitionQueryRequest structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
- /**
- * Constructs a new OneofOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IOneofOptions);
+ /** PartitionQueryRequest partitionCount */
+ partitionCount?: (number|string|null);
- /** OneofOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** PartitionQueryRequest pageToken */
+ pageToken?: (string|null);
- /** OneofOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** PartitionQueryRequest pageSize */
+ pageSize?: (number|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;
+ /** PartitionQueryRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
- /**
- * 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 };
+ /** Represents a PartitionQueryRequest. */
+ class PartitionQueryRequest implements IPartitionQueryRequest {
- /**
- * Converts this OneofOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new PartitionQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPartitionQueryRequest);
- /**
- * 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;
- }
+ /** PartitionQueryRequest parent. */
+ public parent: string;
- /** Properties of an EnumOptions. */
- interface IEnumOptions {
+ /** PartitionQueryRequest structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
- /** EnumOptions allowAlias */
- allowAlias?: (boolean|null);
+ /** PartitionQueryRequest partitionCount. */
+ public partitionCount: (number|string);
- /** EnumOptions deprecated */
- deprecated?: (boolean|null);
+ /** PartitionQueryRequest pageToken. */
+ public pageToken: string;
- /** EnumOptions deprecatedLegacyJsonFieldConflicts */
- deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+ /** PartitionQueryRequest pageSize. */
+ public pageSize: number;
- /** EnumOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /** PartitionQueryRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /** EnumOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- }
+ /** PartitionQueryRequest queryType. */
+ public queryType?: "structuredQuery";
- /** Represents an EnumOptions. */
- class EnumOptions implements IEnumOptions {
+ /** PartitionQueryRequest consistencySelector. */
+ public consistencySelector?: "readTime";
- /**
- * Constructs a new EnumOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IEnumOptions);
+ /**
+ * 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;
- /** EnumOptions allowAlias. */
- public allowAlias: boolean;
+ /**
+ * 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 };
- /** EnumOptions deprecated. */
- public deprecated: boolean;
+ /**
+ * Converts this PartitionQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
- public deprecatedLegacyJsonFieldConflicts: boolean;
+ /**
+ * 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;
+ }
- /** EnumOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** Properties of a PartitionQueryResponse. */
+ interface IPartitionQueryResponse {
- /** EnumOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** PartitionQueryResponse partitions */
+ partitions?: (google.firestore.v1.ICursor[]|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;
+ /** PartitionQueryResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
- /**
- * 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 };
+ /** Represents a PartitionQueryResponse. */
+ class PartitionQueryResponse implements IPartitionQueryResponse {
- /**
- * Converts this EnumOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new PartitionQueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPartitionQueryResponse);
- /**
- * 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;
- }
+ /** PartitionQueryResponse partitions. */
+ public partitions: google.firestore.v1.ICursor[];
- /** Properties of an EnumValueOptions. */
- interface IEnumValueOptions {
+ /** PartitionQueryResponse nextPageToken. */
+ public nextPageToken: string;
- /** EnumValueOptions deprecated */
- deprecated?: (boolean|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;
- /** EnumValueOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /**
+ * 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 };
- /** EnumValueOptions debugRedact */
- debugRedact?: (boolean|null);
+ /**
+ * Converts this PartitionQueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** EnumValueOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- }
+ /**
+ * 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;
+ }
- /** Represents an EnumValueOptions. */
- class EnumValueOptions implements IEnumValueOptions {
+ /** Properties of a WriteRequest. */
+ interface IWriteRequest {
- /**
- * Constructs a new EnumValueOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IEnumValueOptions);
+ /** WriteRequest database */
+ database?: (string|null);
- /** EnumValueOptions deprecated. */
- public deprecated: boolean;
+ /** WriteRequest streamId */
+ streamId?: (string|null);
- /** EnumValueOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** WriteRequest writes */
+ writes?: (google.firestore.v1.IWrite[]|null);
- /** EnumValueOptions debugRedact. */
- public debugRedact: boolean;
+ /** WriteRequest streamToken */
+ streamToken?: (Uint8Array|null);
- /** EnumValueOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** WriteRequest labels */
+ labels?: ({ [k: string]: 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;
+ /** Represents a WriteRequest. */
+ class WriteRequest implements IWriteRequest {
- /**
- * 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 };
+ /**
+ * Constructs a new WriteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IWriteRequest);
- /**
- * Converts this EnumValueOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** WriteRequest database. */
+ public database: string;
- /**
- * 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;
- }
+ /** WriteRequest streamId. */
+ public streamId: string;
- /** Properties of a ServiceOptions. */
- interface IServiceOptions {
+ /** WriteRequest writes. */
+ public writes: google.firestore.v1.IWrite[];
- /** ServiceOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /** WriteRequest streamToken. */
+ public streamToken: Uint8Array;
- /** ServiceOptions deprecated */
- deprecated?: (boolean|null);
+ /** WriteRequest labels. */
+ public labels: { [k: string]: string };
- /** ServiceOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|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;
- /** ServiceOptions .google.api.defaultHost */
- ".google.api.defaultHost"?: (string|null);
+ /**
+ * 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 };
- /** ServiceOptions .google.api.oauthScopes */
- ".google.api.oauthScopes"?: (string|null);
+ /**
+ * Converts this WriteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** ServiceOptions .google.api.apiVersion */
- ".google.api.apiVersion"?: (string|null);
- }
+ /**
+ * 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;
+ }
- /** Represents a ServiceOptions. */
- class ServiceOptions implements IServiceOptions {
+ /** Properties of a WriteResponse. */
+ interface IWriteResponse {
- /**
- * Constructs a new ServiceOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IServiceOptions);
+ /** WriteResponse streamId */
+ streamId?: (string|null);
- /** ServiceOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** WriteResponse streamToken */
+ streamToken?: (Uint8Array|null);
- /** ServiceOptions deprecated. */
- public deprecated: boolean;
+ /** WriteResponse writeResults */
+ writeResults?: (google.firestore.v1.IWriteResult[]|null);
- /** ServiceOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** WriteResponse commitTime */
+ commitTime?: (google.protobuf.ITimestamp|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;
+ /** Represents a WriteResponse. */
+ class WriteResponse implements IWriteResponse {
- /**
- * 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 };
+ /**
+ * Constructs a new WriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IWriteResponse);
+
+ /** WriteResponse streamId. */
+ public streamId: string;
- /**
- * Converts this ServiceOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** WriteResponse streamToken. */
+ public streamToken: Uint8Array;
- /**
- * 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;
- }
+ /** WriteResponse writeResults. */
+ public writeResults: google.firestore.v1.IWriteResult[];
- /** Properties of a MethodOptions. */
- interface IMethodOptions {
+ /** WriteResponse commitTime. */
+ public commitTime?: (google.protobuf.ITimestamp|null);
- /** MethodOptions deprecated */
- deprecated?: (boolean|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;
- /** MethodOptions idempotencyLevel */
- idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null);
+ /**
+ * 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 };
- /** MethodOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /**
+ * Converts this WriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** MethodOptions uninterpretedOption */
- uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ /**
+ * 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;
+ }
- /** MethodOptions .google.api.http */
- ".google.api.http"?: (google.api.IHttpRule|null);
+ /** Properties of a ListenRequest. */
+ interface IListenRequest {
- /** MethodOptions .google.api.methodSignature */
- ".google.api.methodSignature"?: (string[]|null);
+ /** ListenRequest database */
+ database?: (string|null);
- /** MethodOptions .google.longrunning.operationInfo */
- ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
- }
+ /** ListenRequest addTarget */
+ addTarget?: (google.firestore.v1.ITarget|null);
- /** Represents a MethodOptions. */
- class MethodOptions implements IMethodOptions {
+ /** ListenRequest removeTarget */
+ removeTarget?: (number|null);
- /**
- * Constructs a new MethodOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IMethodOptions);
+ /** ListenRequest labels */
+ labels?: ({ [k: string]: string }|null);
+ }
- /** MethodOptions deprecated. */
- public deprecated: boolean;
+ /** Represents a ListenRequest. */
+ class ListenRequest implements IListenRequest {
- /** MethodOptions idempotencyLevel. */
- public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel;
+ /**
+ * Constructs a new ListenRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListenRequest);
- /** MethodOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** ListenRequest database. */
+ public database: string;
- /** MethodOptions uninterpretedOption. */
- public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+ /** ListenRequest addTarget. */
+ public addTarget?: (google.firestore.v1.ITarget|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;
+ /** ListenRequest removeTarget. */
+ public removeTarget?: (number|null);
- /**
- * 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 };
+ /** ListenRequest labels. */
+ public labels: { [k: string]: string };
- /**
- * Converts this MethodOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** ListenRequest targetChange. */
+ public targetChange?: ("addTarget"|"removeTarget");
- /**
- * 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;
- }
+ /**
+ * 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;
- namespace MethodOptions {
+ /**
+ * 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 };
- /** IdempotencyLevel enum. */
- type IdempotencyLevel =
- "IDEMPOTENCY_UNKNOWN"| "NO_SIDE_EFFECTS"| "IDEMPOTENT";
- }
+ /**
+ * Converts this ListenRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of an UninterpretedOption. */
- interface IUninterpretedOption {
+ /**
+ * 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;
+ }
- /** UninterpretedOption name */
- name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+ /** Properties of a ListenResponse. */
+ interface IListenResponse {
- /** UninterpretedOption identifierValue */
- identifierValue?: (string|null);
+ /** ListenResponse targetChange */
+ targetChange?: (google.firestore.v1.ITargetChange|null);
- /** UninterpretedOption positiveIntValue */
- positiveIntValue?: (number|string|null);
+ /** ListenResponse documentChange */
+ documentChange?: (google.firestore.v1.IDocumentChange|null);
- /** UninterpretedOption negativeIntValue */
- negativeIntValue?: (number|string|null);
+ /** ListenResponse documentDelete */
+ documentDelete?: (google.firestore.v1.IDocumentDelete|null);
- /** UninterpretedOption doubleValue */
- doubleValue?: (number|null);
+ /** ListenResponse documentRemove */
+ documentRemove?: (google.firestore.v1.IDocumentRemove|null);
- /** UninterpretedOption stringValue */
- stringValue?: (Uint8Array|null);
+ /** ListenResponse filter */
+ filter?: (google.firestore.v1.IExistenceFilter|null);
+ }
- /** UninterpretedOption aggregateValue */
- aggregateValue?: (string|null);
- }
+ /** Represents a ListenResponse. */
+ class ListenResponse implements IListenResponse {
- /** Represents an UninterpretedOption. */
- class UninterpretedOption implements IUninterpretedOption {
+ /**
+ * Constructs a new ListenResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListenResponse);
- /**
- * Constructs a new UninterpretedOption.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IUninterpretedOption);
+ /** ListenResponse targetChange. */
+ public targetChange?: (google.firestore.v1.ITargetChange|null);
- /** UninterpretedOption name. */
- public name: google.protobuf.UninterpretedOption.INamePart[];
+ /** ListenResponse documentChange. */
+ public documentChange?: (google.firestore.v1.IDocumentChange|null);
- /** UninterpretedOption identifierValue. */
- public identifierValue: string;
+ /** ListenResponse documentDelete. */
+ public documentDelete?: (google.firestore.v1.IDocumentDelete|null);
- /** UninterpretedOption positiveIntValue. */
- public positiveIntValue: (number|string);
+ /** ListenResponse documentRemove. */
+ public documentRemove?: (google.firestore.v1.IDocumentRemove|null);
- /** UninterpretedOption negativeIntValue. */
- public negativeIntValue: (number|string);
+ /** ListenResponse filter. */
+ public filter?: (google.firestore.v1.IExistenceFilter|null);
- /** UninterpretedOption doubleValue. */
- public doubleValue: number;
+ /** ListenResponse responseType. */
+ public responseType?: ("targetChange"|"documentChange"|"documentDelete"|"documentRemove"|"filter");
- /** UninterpretedOption stringValue. */
- public stringValue: Uint8Array;
+ /**
+ * 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;
- /** UninterpretedOption aggregateValue. */
- public aggregateValue: string;
+ /**
+ * 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 };
- /**
- * 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;
+ /**
+ * 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;
+ }
- /**
- * 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 };
+ /** Properties of a Target. */
+ interface ITarget {
- /**
- * Converts this UninterpretedOption to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Target query */
+ query?: (google.firestore.v1.Target.IQueryTarget|null);
- /**
- * 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;
- }
+ /** Target documents */
+ documents?: (google.firestore.v1.Target.IDocumentsTarget|null);
- namespace UninterpretedOption {
+ /** Target resumeToken */
+ resumeToken?: (Uint8Array|null);
- /** Properties of a NamePart. */
- interface INamePart {
+ /** Target readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
- /** NamePart namePart */
- namePart: string;
+ /** Target targetId */
+ targetId?: (number|null);
- /** NamePart isExtension */
- isExtension: boolean;
+ /** Target once */
+ once?: (boolean|null);
+
+ /** Target expectedCount */
+ expectedCount?: (google.protobuf.IInt32Value|null);
}
- /** Represents a NamePart. */
- class NamePart implements INamePart {
+ /** Represents a Target. */
+ class Target implements ITarget {
/**
- * Constructs a new NamePart.
+ * Constructs a new Target.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+ constructor(properties?: google.firestore.v1.ITarget);
- /** NamePart namePart. */
- public namePart: string;
+ /** Target query. */
+ public query?: (google.firestore.v1.Target.IQueryTarget|null);
- /** NamePart isExtension. */
- public isExtension: boolean;
+ /** Target documents. */
+ public documents?: (google.firestore.v1.Target.IDocumentsTarget|null);
+
+ /** Target resumeToken. */
+ public resumeToken?: (Uint8Array|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 NamePart message from a plain object. Also converts values to their respective internal types.
+ * Creates a Target message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns NamePart
+ * @returns Target
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Target;
/**
- * Creates a plain object from a NamePart message. Also converts values to other types if specified.
- * @param message NamePart
+ * 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.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.Target, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this NamePart to JSON.
+ * Converts this Target to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for NamePart
+ * 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;
}
- }
- /** Properties of a FeatureSet. */
- interface IFeatureSet {
+ namespace Target {
- /** FeatureSet fieldPresence */
- fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|null);
+ /** Properties of a DocumentsTarget. */
+ interface IDocumentsTarget {
- /** FeatureSet enumType */
- enumType?: (google.protobuf.FeatureSet.EnumType|null);
+ /** DocumentsTarget documents */
+ documents?: (string[]|null);
+ }
- /** FeatureSet repeatedFieldEncoding */
- repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+ /** Represents a DocumentsTarget. */
+ class DocumentsTarget implements IDocumentsTarget {
- /** FeatureSet utf8Validation */
- utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|null);
+ /**
+ * Constructs a new DocumentsTarget.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.Target.IDocumentsTarget);
- /** FeatureSet messageEncoding */
- messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|null);
+ /** DocumentsTarget documents. */
+ public documents: string[];
- /** FeatureSet jsonFormat */
- jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|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;
- /** Represents a FeatureSet. */
- class FeatureSet implements IFeatureSet {
+ /**
+ * 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 };
- /**
- * Constructs a new FeatureSet.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFeatureSet);
+ /**
+ * Converts this DocumentsTarget to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FeatureSet fieldPresence. */
- public fieldPresence: google.protobuf.FeatureSet.FieldPresence;
+ /**
+ * 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;
+ }
- /** FeatureSet enumType. */
- public enumType: google.protobuf.FeatureSet.EnumType;
+ /** Properties of a QueryTarget. */
+ interface IQueryTarget {
- /** FeatureSet repeatedFieldEncoding. */
- public repeatedFieldEncoding: google.protobuf.FeatureSet.RepeatedFieldEncoding;
+ /** QueryTarget parent */
+ parent?: (string|null);
- /** FeatureSet utf8Validation. */
- public utf8Validation: google.protobuf.FeatureSet.Utf8Validation;
+ /** QueryTarget structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ }
- /** FeatureSet messageEncoding. */
- public messageEncoding: google.protobuf.FeatureSet.MessageEncoding;
+ /** Represents a QueryTarget. */
+ class QueryTarget implements IQueryTarget {
- /** FeatureSet jsonFormat. */
- public jsonFormat: google.protobuf.FeatureSet.JsonFormat;
+ /**
+ * Constructs a new QueryTarget.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.Target.IQueryTarget);
- /**
- * 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;
+ /** QueryTarget parent. */
+ public parent: string;
- /**
- * 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 };
+ /** QueryTarget structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
- /**
- * Converts this FeatureSet to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** QueryTarget queryType. */
+ public queryType?: "structuredQuery";
- /**
- * 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;
- }
+ /**
+ * 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;
- namespace FeatureSet {
+ /**
+ * 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 };
- /** FieldPresence enum. */
- type FieldPresence =
- "FIELD_PRESENCE_UNKNOWN"| "EXPLICIT"| "IMPLICIT"| "LEGACY_REQUIRED";
+ /**
+ * Converts this QueryTarget to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** EnumType enum. */
- type EnumType =
- "ENUM_TYPE_UNKNOWN"| "OPEN"| "CLOSED";
+ /**
+ * 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 {
- /** RepeatedFieldEncoding enum. */
- type RepeatedFieldEncoding =
- "REPEATED_FIELD_ENCODING_UNKNOWN"| "PACKED"| "EXPANDED";
+ /** TargetChange targetChangeType */
+ targetChangeType?: (google.firestore.v1.TargetChange.TargetChangeType|null);
- /** Utf8Validation enum. */
- type Utf8Validation =
- "UTF8_VALIDATION_UNKNOWN"| "VERIFY"| "NONE";
+ /** TargetChange targetIds */
+ targetIds?: (number[]|null);
- /** MessageEncoding enum. */
- type MessageEncoding =
- "MESSAGE_ENCODING_UNKNOWN"| "LENGTH_PREFIXED"| "DELIMITED";
+ /** TargetChange cause */
+ cause?: (google.rpc.IStatus|null);
- /** JsonFormat enum. */
- type JsonFormat =
- "JSON_FORMAT_UNKNOWN"| "ALLOW"| "LEGACY_BEST_EFFORT";
- }
+ /** TargetChange resumeToken */
+ resumeToken?: (Uint8Array|null);
- /** Properties of a FeatureSetDefaults. */
- interface IFeatureSetDefaults {
+ /** TargetChange readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
+ }
- /** FeatureSetDefaults defaults */
- defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+ /** Represents a TargetChange. */
+ class TargetChange implements ITargetChange {
- /** FeatureSetDefaults minimumEdition */
- minimumEdition?: (google.protobuf.Edition|null);
+ /**
+ * Constructs a new TargetChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.ITargetChange);
- /** FeatureSetDefaults maximumEdition */
- maximumEdition?: (google.protobuf.Edition|null);
- }
+ /** TargetChange targetChangeType. */
+ public targetChangeType: google.firestore.v1.TargetChange.TargetChangeType;
- /** Represents a FeatureSetDefaults. */
- class FeatureSetDefaults implements IFeatureSetDefaults {
+ /** TargetChange targetIds. */
+ public targetIds: number[];
- /**
- * Constructs a new FeatureSetDefaults.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFeatureSetDefaults);
+ /** TargetChange cause. */
+ public cause?: (google.rpc.IStatus|null);
- /** FeatureSetDefaults defaults. */
- public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+ /** TargetChange resumeToken. */
+ public resumeToken: Uint8Array;
- /** FeatureSetDefaults minimumEdition. */
- public minimumEdition: google.protobuf.Edition;
+ /** TargetChange readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /** FeatureSetDefaults maximumEdition. */
- public maximumEdition: google.protobuf.Edition;
+ /**
+ * 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 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 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 };
- /**
- * 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 TargetChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Converts this FeatureSetDefaults 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;
+ }
- /**
- * 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 TargetChange {
- namespace FeatureSetDefaults {
+ /** TargetChangeType enum. */
+ type TargetChangeType =
+ "NO_CHANGE"| "ADD"| "REMOVE"| "CURRENT"| "RESET";
+ }
- /** Properties of a FeatureSetEditionDefault. */
- interface IFeatureSetEditionDefault {
+ /** Properties of a ListCollectionIdsRequest. */
+ interface IListCollectionIdsRequest {
- /** FeatureSetEditionDefault edition */
- edition?: (google.protobuf.Edition|null);
+ /** ListCollectionIdsRequest parent */
+ parent?: (string|null);
+
+ /** ListCollectionIdsRequest pageSize */
+ pageSize?: (number|null);
- /** FeatureSetEditionDefault overridableFeatures */
- overridableFeatures?: (google.protobuf.IFeatureSet|null);
+ /** ListCollectionIdsRequest pageToken */
+ pageToken?: (string|null);
- /** FeatureSetEditionDefault fixedFeatures */
- fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ /** ListCollectionIdsRequest readTime */
+ readTime?: (google.protobuf.ITimestamp|null);
}
- /** Represents a FeatureSetEditionDefault. */
- class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+ /** Represents a ListCollectionIdsRequest. */
+ class ListCollectionIdsRequest implements IListCollectionIdsRequest {
/**
- * Constructs a new FeatureSetEditionDefault.
+ * Constructs a new ListCollectionIdsRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+ constructor(properties?: google.firestore.v1.IListCollectionIdsRequest);
- /** FeatureSetEditionDefault edition. */
- public edition: google.protobuf.Edition;
+ /** ListCollectionIdsRequest parent. */
+ public parent: string;
+
+ /** ListCollectionIdsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListCollectionIdsRequest pageToken. */
+ public pageToken: string;
- /** FeatureSetEditionDefault overridableFeatures. */
- public overridableFeatures?: (google.protobuf.IFeatureSet|null);
+ /** ListCollectionIdsRequest readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
- /** FeatureSetEditionDefault fixedFeatures. */
- public fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ /** ListCollectionIdsRequest consistencySelector. */
+ public consistencySelector?: "readTime";
/**
- * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListCollectionIdsRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns FeatureSetEditionDefault
+ * @returns ListCollectionIdsRequest
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListCollectionIdsRequest;
/**
- * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
- * @param message FeatureSetEditionDefault
+ * 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.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.ListCollectionIdsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this FeatureSetEditionDefault to JSON.
+ * Converts this ListCollectionIdsRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for FeatureSetEditionDefault
+ * 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 SourceCodeInfo. */
- interface ISourceCodeInfo {
- /** SourceCodeInfo location */
- location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
- }
+ /** Properties of a ListCollectionIdsResponse. */
+ interface IListCollectionIdsResponse {
- /** Represents a SourceCodeInfo. */
- class SourceCodeInfo implements ISourceCodeInfo {
+ /** ListCollectionIdsResponse collectionIds */
+ collectionIds?: (string[]|null);
- /**
- * Constructs a new SourceCodeInfo.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.ISourceCodeInfo);
+ /** ListCollectionIdsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
- /** SourceCodeInfo location. */
- public location: google.protobuf.SourceCodeInfo.ILocation[];
+ /** Represents a ListCollectionIdsResponse. */
+ class ListCollectionIdsResponse implements IListCollectionIdsResponse {
- /**
- * 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;
+ /**
+ * Constructs a new ListCollectionIdsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IListCollectionIdsResponse);
- /**
- * 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 };
+ /** ListCollectionIdsResponse collectionIds. */
+ public collectionIds: string[];
- /**
- * Converts this SourceCodeInfo to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** ListCollectionIdsResponse nextPageToken. */
+ public nextPageToken: string;
- /**
- * 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;
- }
+ /**
+ * 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;
- namespace SourceCodeInfo {
+ /**
+ * 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 };
- /** Properties of a Location. */
- interface ILocation {
+ /**
+ * Converts this ListCollectionIdsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Location path */
- path?: (number[]|null);
+ /**
+ * 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;
+ }
- /** Location span */
- span?: (number[]|null);
+ /** Properties of a BatchWriteRequest. */
+ interface IBatchWriteRequest {
- /** Location leadingComments */
- leadingComments?: (string|null);
+ /** BatchWriteRequest database */
+ database?: (string|null);
- /** Location trailingComments */
- trailingComments?: (string|null);
+ /** BatchWriteRequest writes */
+ writes?: (google.firestore.v1.IWrite[]|null);
- /** Location leadingDetachedComments */
- leadingDetachedComments?: (string[]|null);
+ /** BatchWriteRequest labels */
+ labels?: ({ [k: string]: string }|null);
}
- /** Represents a Location. */
- class Location implements ILocation {
+ /** Represents a BatchWriteRequest. */
+ class BatchWriteRequest implements IBatchWriteRequest {
/**
- * Constructs a new Location.
+ * Constructs a new BatchWriteRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
-
- /** Location path. */
- public path: number[];
-
- /** Location span. */
- public span: number[];
+ constructor(properties?: google.firestore.v1.IBatchWriteRequest);
- /** Location leadingComments. */
- public leadingComments: string;
+ /** BatchWriteRequest database. */
+ public database: string;
- /** Location trailingComments. */
- public trailingComments: string;
+ /** BatchWriteRequest writes. */
+ public writes: google.firestore.v1.IWrite[];
- /** Location leadingDetachedComments. */
- public leadingDetachedComments: string[];
+ /** BatchWriteRequest labels. */
+ public labels: { [k: string]: string };
/**
- * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * Creates a BatchWriteRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Location
+ * @returns BatchWriteRequest
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.BatchWriteRequest;
/**
- * Creates a plain object from a Location message. Also converts values to other types if specified.
- * @param message Location
+ * 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.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.BatchWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Location to JSON.
+ * Converts this BatchWriteRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Location
+ * 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 GeneratedCodeInfo. */
- interface IGeneratedCodeInfo {
-
- /** GeneratedCodeInfo annotation */
- annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
- }
-
- /** Represents a GeneratedCodeInfo. */
- class GeneratedCodeInfo implements IGeneratedCodeInfo {
+ /** Properties of a BatchWriteResponse. */
+ interface IBatchWriteResponse {
- /**
- * Constructs a new GeneratedCodeInfo.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+ /** BatchWriteResponse writeResults */
+ writeResults?: (google.firestore.v1.IWriteResult[]|null);
- /** GeneratedCodeInfo annotation. */
- public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+ /** BatchWriteResponse status */
+ status?: (google.rpc.IStatus[]|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;
+ /** Represents a BatchWriteResponse. */
+ class BatchWriteResponse implements IBatchWriteResponse {
- /**
- * 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 };
+ /**
+ * Constructs a new BatchWriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IBatchWriteResponse);
- /**
- * Converts this GeneratedCodeInfo to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** BatchWriteResponse writeResults. */
+ public writeResults: google.firestore.v1.IWriteResult[];
- /**
- * 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;
- }
+ /** BatchWriteResponse status. */
+ public status: google.rpc.IStatus[];
- namespace GeneratedCodeInfo {
+ /**
+ * 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;
- /** Properties of an Annotation. */
- interface IAnnotation {
+ /**
+ * 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 };
- /** Annotation path */
- path?: (number[]|null);
+ /**
+ * Converts this BatchWriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Annotation sourceFile */
- sourceFile?: (string|null);
+ /**
+ * 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;
+ }
- /** Annotation begin */
- begin?: (number|null);
+ /** Properties of a StructuredPipeline. */
+ interface IStructuredPipeline {
- /** Annotation end */
- end?: (number|null);
+ /** StructuredPipeline pipeline */
+ pipeline?: (google.firestore.v1.IPipeline|null);
- /** Annotation semantic */
- semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ /** StructuredPipeline options */
+ options?: ({ [k: string]: google.firestore.v1.IValue }|null);
}
- /** Represents an Annotation. */
- class Annotation implements IAnnotation {
+ /** Represents a StructuredPipeline. */
+ class StructuredPipeline implements IStructuredPipeline {
/**
- * Constructs a new Annotation.
+ * Constructs a new StructuredPipeline.
* @param [properties] Properties to set
*/
- constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
-
- /** Annotation path. */
- public path: number[];
+ constructor(properties?: google.firestore.v1.IStructuredPipeline);
- /** Annotation sourceFile. */
- public sourceFile: string;
-
- /** Annotation begin. */
- public begin: number;
-
- /** Annotation end. */
- public end: number;
+ /** StructuredPipeline pipeline. */
+ public pipeline?: (google.firestore.v1.IPipeline|null);
- /** Annotation semantic. */
- public semantic: google.protobuf.GeneratedCodeInfo.Annotation.Semantic;
+ /** StructuredPipeline options. */
+ public options: { [k: string]: google.firestore.v1.IValue };
/**
- * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * Creates a StructuredPipeline message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Annotation
+ * @returns StructuredPipeline
*/
- public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredPipeline;
/**
- * Creates a plain object from an Annotation message. Also converts values to other types if specified.
- * @param message Annotation
+ * 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.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.StructuredPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Annotation to JSON.
+ * Converts this StructuredPipeline to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Annotation
+ * 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;
}
- namespace Annotation {
+ /** Properties of a StructuredQuery. */
+ interface IStructuredQuery {
- /** Semantic enum. */
- type Semantic =
- "NONE"| "SET"| "ALIAS";
+ /** 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);
}
- }
- /** Properties of a Duration. */
- interface IDuration {
+ /** Represents a StructuredQuery. */
+ class StructuredQuery implements IStructuredQuery {
- /** Duration seconds */
- seconds?: (number|string|null);
+ /**
+ * Constructs a new StructuredQuery.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IStructuredQuery);
- /** Duration nanos */
- nanos?: (number|null);
- }
+ /** StructuredQuery select. */
+ public select?: (google.firestore.v1.StructuredQuery.IProjection|null);
- /** Represents a Duration. */
- class Duration implements IDuration {
+ /** StructuredQuery from. */
+ public from: google.firestore.v1.StructuredQuery.ICollectionSelector[];
- /**
- * Constructs a new Duration.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IDuration);
+ /** StructuredQuery where. */
+ public where?: (google.firestore.v1.StructuredQuery.IFilter|null);
- /** Duration seconds. */
- public seconds: (number|string);
+ /** 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);
- /** Duration nanos. */
- public nanos: number;
+ /** StructuredQuery offset. */
+ public offset: number;
- /**
- * 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;
+ /** StructuredQuery limit. */
+ public limit?: (google.protobuf.IInt32Value|null);
- /**
- * 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 };
+ /** StructuredQuery findNearest. */
+ public findNearest?: (google.firestore.v1.StructuredQuery.IFindNearest|null);
- /**
- * Converts this Duration to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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;
- /**
- * 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;
- }
+ /**
+ * 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 };
- /** Properties of a DoubleValue. */
- interface IDoubleValue {
+ /**
+ * Converts this StructuredQuery to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** DoubleValue value */
- value?: (number|null);
- }
+ /**
+ * 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;
+ }
- /** Represents a DoubleValue. */
- class DoubleValue implements IDoubleValue {
+ namespace StructuredQuery {
- /**
- * Constructs a new DoubleValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IDoubleValue);
+ /** Properties of a CollectionSelector. */
+ interface ICollectionSelector {
- /** DoubleValue value. */
- public value: number;
+ /** CollectionSelector collectionId */
+ collectionId?: (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;
+ /** CollectionSelector allDescendants */
+ allDescendants?: (boolean|null);
+ }
- /**
- * 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 };
+ /** Represents a CollectionSelector. */
+ class CollectionSelector implements ICollectionSelector {
- /**
- * Converts this DoubleValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new CollectionSelector.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.ICollectionSelector);
- /**
- * 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;
- }
+ /** CollectionSelector collectionId. */
+ public collectionId: string;
- /** Properties of a FloatValue. */
- interface IFloatValue {
+ /** CollectionSelector allDescendants. */
+ public allDescendants: boolean;
- /** FloatValue value */
- value?: (number|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;
- /** Represents a FloatValue. */
- class FloatValue implements IFloatValue {
+ /**
+ * 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 };
- /**
- * Constructs a new FloatValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFloatValue);
+ /**
+ * Converts this CollectionSelector to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** FloatValue value. */
- public value: number;
+ /**
+ * 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;
+ }
- /**
- * 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;
+ /** Properties of a Filter. */
+ interface IFilter {
- /**
- * 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 };
+ /** Filter compositeFilter */
+ compositeFilter?: (google.firestore.v1.StructuredQuery.ICompositeFilter|null);
- /**
- * Converts this FloatValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Filter fieldFilter */
+ fieldFilter?: (google.firestore.v1.StructuredQuery.IFieldFilter|null);
- /**
- * 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;
- }
+ /** Filter unaryFilter */
+ unaryFilter?: (google.firestore.v1.StructuredQuery.IUnaryFilter|null);
+ }
- /** Properties of an Int64Value. */
- interface IInt64Value {
+ /** Represents a Filter. */
+ class Filter implements IFilter {
- /** Int64Value value */
- value?: (number|string|null);
- }
+ /**
+ * Constructs a new Filter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFilter);
- /** Represents an Int64Value. */
- class Int64Value implements IInt64Value {
+ /** Filter compositeFilter. */
+ public compositeFilter?: (google.firestore.v1.StructuredQuery.ICompositeFilter|null);
- /**
- * Constructs a new Int64Value.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IInt64Value);
+ /** Filter fieldFilter. */
+ public fieldFilter?: (google.firestore.v1.StructuredQuery.IFieldFilter|null);
- /** Int64Value value. */
- public value: (number|string);
+ /** Filter unaryFilter. */
+ public unaryFilter?: (google.firestore.v1.StructuredQuery.IUnaryFilter|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;
+ /** Filter filterType. */
+ public filterType?: ("compositeFilter"|"fieldFilter"|"unaryFilter");
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this Int64Value to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this Filter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of a UInt64Value. */
- interface IUInt64Value {
+ /**
+ * 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;
+ }
- /** UInt64Value value */
- value?: (number|string|null);
- }
+ /** Properties of a CompositeFilter. */
+ interface ICompositeFilter {
- /** Represents a UInt64Value. */
- class UInt64Value implements IUInt64Value {
+ /** CompositeFilter op */
+ op?: (google.firestore.v1.StructuredQuery.CompositeFilter.Operator|null);
- /**
- * Constructs a new UInt64Value.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IUInt64Value);
+ /** CompositeFilter filters */
+ filters?: (google.firestore.v1.StructuredQuery.IFilter[]|null);
+ }
- /** UInt64Value value. */
- public value: (number|string);
+ /** Represents a CompositeFilter. */
+ class CompositeFilter implements ICompositeFilter {
- /**
- * 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;
+ /**
+ * Constructs a new CompositeFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.ICompositeFilter);
- /**
- * 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 };
+ /** CompositeFilter op. */
+ public op: google.firestore.v1.StructuredQuery.CompositeFilter.Operator;
- /**
- * Converts this UInt64Value to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** CompositeFilter filters. */
+ public filters: google.firestore.v1.StructuredQuery.IFilter[];
- /**
- * 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;
- }
+ /**
+ * 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;
- /** Properties of an Int32Value. */
- interface IInt32Value {
+ /**
+ * 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 };
- /** Int32Value value */
- value?: (number|null);
- }
+ /**
+ * Converts this CompositeFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Represents an Int32Value. */
- class Int32Value implements IInt32Value {
+ /**
+ * 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;
+ }
- /**
- * Constructs a new Int32Value.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IInt32Value);
+ namespace CompositeFilter {
- /** Int32Value value. */
- public value: number;
+ /** Operator enum. */
+ type Operator =
+ "OPERATOR_UNSPECIFIED"| "AND"| "OR";
+ }
- /**
- * 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;
+ /** Properties of a FieldFilter. */
+ interface IFieldFilter {
- /**
- * 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 };
+ /** FieldFilter field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- /**
- * Converts this Int32Value to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FieldFilter op */
+ op?: (google.firestore.v1.StructuredQuery.FieldFilter.Operator|null);
- /**
- * 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;
- }
+ /** FieldFilter value */
+ value?: (google.firestore.v1.IValue|null);
+ }
- /** Properties of a UInt32Value. */
- interface IUInt32Value {
+ /** Represents a FieldFilter. */
+ class FieldFilter implements IFieldFilter {
- /** UInt32Value value */
- value?: (number|null);
- }
+ /**
+ * Constructs a new FieldFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFieldFilter);
- /** Represents a UInt32Value. */
- class UInt32Value implements IUInt32Value {
+ /** FieldFilter field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- /**
- * Constructs a new UInt32Value.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IUInt32Value);
+ /** FieldFilter op. */
+ public op: google.firestore.v1.StructuredQuery.FieldFilter.Operator;
- /** UInt32Value value. */
- public value: number;
+ /** FieldFilter value. */
+ public value?: (google.firestore.v1.IValue|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 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 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 };
+ /**
+ * 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 UInt32Value to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this FieldFilter 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;
- }
+ /**
+ * 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;
+ }
- /** Properties of a BoolValue. */
- interface IBoolValue {
+ namespace FieldFilter {
- /** BoolValue value */
- value?: (boolean|null);
- }
+ /** Operator enum. */
+ type Operator =
+ "OPERATOR_UNSPECIFIED"| "LESS_THAN"| "LESS_THAN_OR_EQUAL"| "GREATER_THAN"| "GREATER_THAN_OR_EQUAL"| "EQUAL"| "NOT_EQUAL"| "ARRAY_CONTAINS"| "IN"| "ARRAY_CONTAINS_ANY"| "NOT_IN";
+ }
- /** Represents a BoolValue. */
- class BoolValue implements IBoolValue {
+ /** Properties of an UnaryFilter. */
+ interface IUnaryFilter {
- /**
- * Constructs a new BoolValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IBoolValue);
+ /** UnaryFilter op */
+ op?: (google.firestore.v1.StructuredQuery.UnaryFilter.Operator|null);
- /** BoolValue value. */
- public value: boolean;
+ /** UnaryFilter field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|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;
+ /** Represents an UnaryFilter. */
+ class UnaryFilter implements IUnaryFilter {
- /**
- * 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 };
+ /**
+ * Constructs a new UnaryFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IUnaryFilter);
- /**
- * Converts this BoolValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** UnaryFilter op. */
+ public op: google.firestore.v1.StructuredQuery.UnaryFilter.Operator;
- /**
- * 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;
- }
+ /** UnaryFilter field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- /** Properties of a StringValue. */
- interface IStringValue {
+ /** UnaryFilter operandType. */
+ public operandType?: "field";
- /** StringValue value */
- value?: (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;
- /** Represents a StringValue. */
- class StringValue implements IStringValue {
+ /**
+ * 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 };
- /**
- * Constructs a new StringValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IStringValue);
+ /**
+ * Converts this UnaryFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** StringValue value. */
- public value: string;
+ /**
+ * 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;
+ }
- /**
- * 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;
+ namespace UnaryFilter {
- /**
- * 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 };
+ /** Operator enum. */
+ type Operator =
+ "OPERATOR_UNSPECIFIED"| "IS_NAN"| "IS_NULL"| "IS_NOT_NAN"| "IS_NOT_NULL";
+ }
- /**
- * Converts this StringValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of an Order. */
+ interface IOrder {
- /**
- * 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;
- }
+ /** Order field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- /** Properties of a BytesValue. */
- interface IBytesValue {
+ /** Order direction */
+ direction?: (google.firestore.v1.StructuredQuery.Direction|null);
+ }
- /** BytesValue value */
- value?: (Uint8Array|null);
- }
+ /** Represents an Order. */
+ class Order implements IOrder {
- /** Represents a BytesValue. */
- class BytesValue implements IBytesValue {
+ /**
+ * Constructs a new Order.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IOrder);
- /**
- * Constructs a new BytesValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IBytesValue);
+ /** Order field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- /** BytesValue value. */
- public value: Uint8Array;
+ /** Order direction. */
+ public direction: google.firestore.v1.StructuredQuery.Direction;
- /**
- * 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 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 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 };
+ /**
+ * 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 BytesValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this Order 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;
- }
+ /**
+ * 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 an Empty. */
- interface IEmpty {
- }
+ /** Direction enum. */
+ type Direction =
+ "DIRECTION_UNSPECIFIED"| "ASCENDING"| "DESCENDING";
- /** Represents an Empty. */
- class Empty implements IEmpty {
+ /** Properties of a FieldReference. */
+ interface IFieldReference {
- /**
- * Constructs a new Empty.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IEmpty);
+ /** FieldReference fieldPath */
+ fieldPath?: (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;
+ /** Represents a FieldReference. */
+ class FieldReference implements IFieldReference {
- /**
- * 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 };
+ /**
+ * Constructs a new FieldReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFieldReference);
- /**
- * Converts this Empty to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FieldReference fieldPath. */
+ public fieldPath: string;
- /**
- * 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;
- }
+ /**
+ * 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;
- /** Properties of an Any. */
- interface IAny {
+ /**
+ * 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 };
- /** Any type_url */
- type_url?: (string|null);
+ /**
+ * Converts this FieldReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Any value */
- value?: (Uint8Array|null);
- }
+ /**
+ * 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;
+ }
- /** Represents an Any. */
- class Any implements IAny {
+ /** Properties of a Projection. */
+ interface IProjection {
- /**
- * Constructs a new Any.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IAny);
+ /** Projection fields */
+ fields?: (google.firestore.v1.StructuredQuery.IFieldReference[]|null);
+ }
- /** Any type_url. */
- public type_url: string;
+ /** Represents a Projection. */
+ class Projection implements IProjection {
- /** Any value. */
- public value: Uint8Array;
+ /**
+ * Constructs a new Projection.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IProjection);
- /**
- * 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;
+ /** Projection fields. */
+ public fields: google.firestore.v1.StructuredQuery.IFieldReference[];
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this Any to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this Projection to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of a FieldMask. */
- interface IFieldMask {
+ /**
+ * 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;
+ }
- /** FieldMask paths */
- paths?: (string[]|null);
- }
+ /** Properties of a FindNearest. */
+ interface IFindNearest {
- /** Represents a FieldMask. */
- class FieldMask implements IFieldMask {
+ /** FindNearest vectorField */
+ vectorField?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- /**
- * Constructs a new FieldMask.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFieldMask);
+ /** FindNearest queryVector */
+ queryVector?: (google.firestore.v1.IValue|null);
- /** FieldMask paths. */
- public paths: string[];
+ /** FindNearest distanceMeasure */
+ distanceMeasure?: (google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure|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;
+ /** FindNearest limit */
+ limit?: (google.protobuf.IInt32Value|null);
- /**
- * 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 };
+ /** FindNearest distanceResultField */
+ distanceResultField?: (string|null);
- /**
- * Converts this FieldMask to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FindNearest distanceThreshold */
+ distanceThreshold?: (google.protobuf.IDoubleValue|null);
+ }
- /**
- * 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;
- }
- }
+ /** Represents a FindNearest. */
+ class FindNearest implements IFindNearest {
- /** Namespace firestore. */
- namespace firestore {
+ /**
+ * Constructs a new FindNearest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredQuery.IFindNearest);
- /** Namespace v1. */
- namespace v1 {
+ /** FindNearest vectorField. */
+ public vectorField?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- /** Properties of an AggregationResult. */
- interface IAggregationResult {
+ /** FindNearest queryVector. */
+ public queryVector?: (google.firestore.v1.IValue|null);
- /** AggregationResult aggregateFields */
- aggregateFields?: ({ [k: string]: google.firestore.v1.IValue }|null);
- }
+ /** FindNearest distanceMeasure. */
+ public distanceMeasure: google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure;
- /** Represents an AggregationResult. */
- class AggregationResult implements IAggregationResult {
+ /** FindNearest limit. */
+ public limit?: (google.protobuf.IInt32Value|null);
- /**
- * Constructs a new AggregationResult.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IAggregationResult);
+ /** FindNearest distanceResultField. */
+ public distanceResultField: string;
- /** AggregationResult aggregateFields. */
- public aggregateFields: { [k: string]: google.firestore.v1.IValue };
+ /** FindNearest distanceThreshold. */
+ public distanceThreshold?: (google.protobuf.IDoubleValue|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 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 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 };
+ /**
+ * 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 AggregationResult to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this FindNearest 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;
- }
+ /**
+ * 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;
+ }
- /** Properties of a Document. */
- interface IDocument {
+ namespace FindNearest {
- /** Document name */
- name?: (string|null);
+ /** DistanceMeasure enum. */
+ type DistanceMeasure =
+ "DISTANCE_MEASURE_UNSPECIFIED"| "EUCLIDEAN"| "COSINE"| "DOT_PRODUCT";
+ }
+ }
- /** Document fields */
- fields?: ({ [k: string]: google.firestore.v1.IValue }|null);
+ /** Properties of a StructuredAggregationQuery. */
+ interface IStructuredAggregationQuery {
- /** Document createTime */
- createTime?: (google.protobuf.ITimestamp|null);
+ /** StructuredAggregationQuery structuredQuery */
+ structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
- /** Document updateTime */
- updateTime?: (google.protobuf.ITimestamp|null);
+ /** StructuredAggregationQuery aggregations */
+ aggregations?: (google.firestore.v1.StructuredAggregationQuery.IAggregation[]|null);
}
- /** Represents a Document. */
- class Document implements IDocument {
+ /** Represents a StructuredAggregationQuery. */
+ class StructuredAggregationQuery implements IStructuredAggregationQuery {
/**
- * Constructs a new Document.
+ * Constructs a new StructuredAggregationQuery.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IDocument);
-
- /** Document name. */
- public name: string;
+ constructor(properties?: google.firestore.v1.IStructuredAggregationQuery);
- /** Document fields. */
- public fields: { [k: string]: google.firestore.v1.IValue };
+ /** StructuredAggregationQuery structuredQuery. */
+ public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
- /** Document createTime. */
- public createTime?: (google.protobuf.ITimestamp|null);
+ /** StructuredAggregationQuery aggregations. */
+ public aggregations: google.firestore.v1.StructuredAggregationQuery.IAggregation[];
- /** Document updateTime. */
- public updateTime?: (google.protobuf.ITimestamp|null);
+ /** StructuredAggregationQuery queryType. */
+ public queryType?: "structuredQuery";
/**
- * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * Creates a StructuredAggregationQuery message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Document
+ * @returns StructuredAggregationQuery
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.Document;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredAggregationQuery;
/**
- * Creates a plain object from a Document message. Also converts values to other types if specified.
- * @param message Document
+ * 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.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.StructuredAggregationQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Document to JSON.
+ * Converts this StructuredAggregationQuery to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Document
+ * 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;
}
- /** Properties of a Value. */
- interface IValue {
-
- /** Value nullValue */
- nullValue?: (google.protobuf.NullValue|null);
-
- /** Value booleanValue */
- booleanValue?: (boolean|null);
-
- /** Value integerValue */
- integerValue?: (number|string|null);
+ namespace StructuredAggregationQuery {
- /** Value doubleValue */
- doubleValue?: (number|null);
+ /** Properties of an Aggregation. */
+ interface IAggregation {
- /** Value timestampValue */
- timestampValue?: (google.protobuf.ITimestamp|null);
+ /** Aggregation count */
+ count?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount|null);
- /** Value stringValue */
- stringValue?: (string|null);
+ /** Aggregation sum */
+ sum?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum|null);
- /** Value bytesValue */
- bytesValue?: (Uint8Array|null);
+ /** Aggregation avg */
+ avg?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg|null);
- /** Value referenceValue */
- referenceValue?: (string|null);
+ /** Aggregation alias */
+ alias?: (string|null);
+ }
- /** Value geoPointValue */
- geoPointValue?: (google.type.ILatLng|null);
+ /** Represents an Aggregation. */
+ class Aggregation implements IAggregation {
- /** Value arrayValue */
- arrayValue?: (google.firestore.v1.IArrayValue|null);
+ /**
+ * Constructs a new Aggregation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.IAggregation);
- /** Value mapValue */
- mapValue?: (google.firestore.v1.IMapValue|null);
- }
+ /** Aggregation count. */
+ public count?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount|null);
- /** Represents a Value. */
- class Value implements IValue {
+ /** Aggregation sum. */
+ public sum?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum|null);
- /**
- * Constructs a new Value.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IValue);
+ /** Aggregation avg. */
+ public avg?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg|null);
- /** Value nullValue. */
- public nullValue?: (google.protobuf.NullValue|null);
+ /** Aggregation alias. */
+ public alias: string;
- /** Value booleanValue. */
- public booleanValue?: (boolean|null);
+ /** Aggregation operator. */
+ public operator?: ("count"|"sum"|"avg");
- /** Value integerValue. */
- public integerValue?: (number|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;
- /** Value doubleValue. */
- public doubleValue?: (number|null);
+ /**
+ * 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 };
- /** Value timestampValue. */
- public timestampValue?: (google.protobuf.ITimestamp|null);
+ /**
+ * Converts this Aggregation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Value stringValue. */
- public stringValue?: (string|null);
+ /**
+ * 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;
+ }
- /** Value bytesValue. */
- public bytesValue?: (Uint8Array|null);
+ namespace Aggregation {
- /** Value referenceValue. */
- public referenceValue?: (string|null);
+ /** Properties of a Count. */
+ interface ICount {
- /** Value geoPointValue. */
- public geoPointValue?: (google.type.ILatLng|null);
+ /** Count upTo */
+ upTo?: (google.protobuf.IInt64Value|null);
+ }
- /** Value arrayValue. */
- public arrayValue?: (google.firestore.v1.IArrayValue|null);
+ /** Represents a Count. */
+ class Count implements ICount {
- /** Value mapValue. */
- public mapValue?: (google.firestore.v1.IMapValue|null);
+ /**
+ * Constructs a new Count.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount);
- /** Value valueType. */
- public valueType?: ("nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"stringValue"|"bytesValue"|"referenceValue"|"geoPointValue"|"arrayValue"|"mapValue");
+ /** Count upTo. */
+ public upTo?: (google.protobuf.IInt64Value|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 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 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 };
+ /**
+ * 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 Value to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this Count 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;
- }
+ /**
+ * 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 an ArrayValue. */
- interface IArrayValue {
+ /** Properties of a Sum. */
+ interface ISum {
- /** ArrayValue values */
- values?: (google.firestore.v1.IValue[]|null);
- }
+ /** Sum field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ }
- /** Represents an ArrayValue. */
- class ArrayValue implements IArrayValue {
+ /** Represents a Sum. */
+ class Sum implements ISum {
- /**
- * Constructs a new ArrayValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IArrayValue);
+ /**
+ * Constructs a new Sum.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum);
- /** ArrayValue values. */
- public values: google.firestore.v1.IValue[];
+ /** Sum field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|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 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 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 };
+ /**
+ * 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 ArrayValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this Sum 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;
- }
+ /**
+ * 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 a MapValue. */
- interface IMapValue {
+ /** Properties of an Avg. */
+ interface IAvg {
- /** MapValue fields */
- fields?: ({ [k: string]: google.firestore.v1.IValue }|null);
- }
+ /** Avg field */
+ field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ }
- /** Represents a MapValue. */
- class MapValue implements IMapValue {
+ /** Represents an Avg. */
+ class Avg implements IAvg {
- /**
- * Constructs a new MapValue.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IMapValue);
+ /**
+ * Constructs a new Avg.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg);
- /** MapValue fields. */
- public fields: { [k: string]: google.firestore.v1.IValue };
+ /** Avg field. */
+ public field?: (google.firestore.v1.StructuredQuery.IFieldReference|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 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 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 };
+ /**
+ * 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 MapValue to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this Avg 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;
+ /**
+ * 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 BitSequence. */
- interface IBitSequence {
+ /** Properties of a Cursor. */
+ interface ICursor {
- /** BitSequence bitmap */
- bitmap?: (Uint8Array|null);
+ /** Cursor values */
+ values?: (google.firestore.v1.IValue[]|null);
- /** BitSequence padding */
- padding?: (number|null);
+ /** Cursor before */
+ before?: (boolean|null);
}
- /** Represents a BitSequence. */
- class BitSequence implements IBitSequence {
+ /** Represents a Cursor. */
+ class Cursor implements ICursor {
/**
- * Constructs a new BitSequence.
+ * Constructs a new Cursor.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IBitSequence);
+ constructor(properties?: google.firestore.v1.ICursor);
- /** BitSequence bitmap. */
- public bitmap: Uint8Array;
+ /** Cursor values. */
+ public values: google.firestore.v1.IValue[];
- /** BitSequence padding. */
- public padding: number;
+ /** Cursor before. */
+ public before: boolean;
/**
- * Creates a BitSequence message from a plain object. Also converts values to their respective internal types.
+ * Creates a Cursor message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns BitSequence
+ * @returns Cursor
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.BitSequence;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Cursor;
/**
- * Creates a plain object from a BitSequence message. Also converts values to other types if specified.
- * @param message BitSequence
+ * 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.BitSequence, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.Cursor, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this BitSequence to JSON.
+ * Converts this Cursor to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for BitSequence
+ * 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 BloomFilter. */
- interface IBloomFilter {
-
- /** BloomFilter bits */
- bits?: (google.firestore.v1.IBitSequence|null);
+ /** Properties of an ExplainOptions. */
+ interface IExplainOptions {
- /** BloomFilter hashCount */
- hashCount?: (number|null);
+ /** ExplainOptions analyze */
+ analyze?: (boolean|null);
}
- /** Represents a BloomFilter. */
- class BloomFilter implements IBloomFilter {
+ /** Represents an ExplainOptions. */
+ class ExplainOptions implements IExplainOptions {
/**
- * Constructs a new BloomFilter.
+ * Constructs a new ExplainOptions.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IBloomFilter);
-
- /** BloomFilter bits. */
- public bits?: (google.firestore.v1.IBitSequence|null);
+ constructor(properties?: google.firestore.v1.IExplainOptions);
- /** BloomFilter hashCount. */
- public hashCount: number;
+ /** ExplainOptions analyze. */
+ public analyze: boolean;
/**
- * Creates a BloomFilter message from a plain object. Also converts values to their respective internal types.
+ * Creates an ExplainOptions message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns BloomFilter
+ * @returns ExplainOptions
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.BloomFilter;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExplainOptions;
/**
- * Creates a plain object from a BloomFilter message. Also converts values to other types if specified.
- * @param message BloomFilter
+ * 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.BloomFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.ExplainOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this BloomFilter to JSON.
+ * Converts this ExplainOptions to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for BloomFilter
+ * 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 a DocumentMask. */
- interface IDocumentMask {
+ /** Properties of an ExplainMetrics. */
+ interface IExplainMetrics {
- /** DocumentMask fieldPaths */
- fieldPaths?: (string[]|null);
+ /** ExplainMetrics planSummary */
+ planSummary?: (google.firestore.v1.IPlanSummary|null);
+
+ /** ExplainMetrics executionStats */
+ executionStats?: (google.firestore.v1.IExecutionStats|null);
}
- /** Represents a DocumentMask. */
- class DocumentMask implements IDocumentMask {
+ /** Represents an ExplainMetrics. */
+ class ExplainMetrics implements IExplainMetrics {
/**
- * Constructs a new DocumentMask.
+ * Constructs a new ExplainMetrics.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IDocumentMask);
+ constructor(properties?: google.firestore.v1.IExplainMetrics);
- /** DocumentMask fieldPaths. */
- public fieldPaths: string[];
+ /** ExplainMetrics planSummary. */
+ public planSummary?: (google.firestore.v1.IPlanSummary|null);
+
+ /** ExplainMetrics executionStats. */
+ public executionStats?: (google.firestore.v1.IExecutionStats|null);
/**
- * Creates a DocumentMask message from a plain object. Also converts values to their respective internal types.
+ * Creates an ExplainMetrics message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns DocumentMask
+ * @returns ExplainMetrics
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentMask;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExplainMetrics;
/**
- * Creates a plain object from a DocumentMask message. Also converts values to other types if specified.
- * @param message DocumentMask
+ * 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.DocumentMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.ExplainMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this DocumentMask to JSON.
+ * Converts this ExplainMetrics to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for DocumentMask
+ * 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 Precondition. */
- interface IPrecondition {
-
- /** Precondition exists */
- exists?: (boolean|null);
+ /** Properties of a PlanSummary. */
+ interface IPlanSummary {
- /** Precondition updateTime */
- updateTime?: (google.protobuf.ITimestamp|null);
+ /** PlanSummary indexesUsed */
+ indexesUsed?: (google.protobuf.IStruct[]|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);
+ /** Represents a PlanSummary. */
+ class PlanSummary implements IPlanSummary {
- /** Precondition updateTime. */
- public updateTime?: (google.protobuf.ITimestamp|null);
+ /**
+ * Constructs a new PlanSummary.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.firestore.v1.IPlanSummary);
- /** Precondition conditionType. */
- public conditionType?: ("exists"|"updateTime");
+ /** PlanSummary indexesUsed. */
+ public indexesUsed: google.protobuf.IStruct[];
/**
- * Creates a Precondition message from a plain object. Also converts values to their respective internal types.
+ * Creates a PlanSummary message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Precondition
+ * @returns PlanSummary
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.Precondition;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.PlanSummary;
/**
- * Creates a plain object from a Precondition message. Also converts values to other types if specified.
- * @param message Precondition
+ * 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.Precondition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.PlanSummary, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Precondition to JSON.
+ * Converts this PlanSummary to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Precondition
+ * 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 a TransactionOptions. */
- interface ITransactionOptions {
+ /** Properties of an ExecutionStats. */
+ interface IExecutionStats {
- /** TransactionOptions readOnly */
- readOnly?: (google.firestore.v1.TransactionOptions.IReadOnly|null);
+ /** ExecutionStats resultsReturned */
+ resultsReturned?: (number|string|null);
- /** TransactionOptions readWrite */
- readWrite?: (google.firestore.v1.TransactionOptions.IReadWrite|null);
+ /** ExecutionStats executionDuration */
+ executionDuration?: (google.protobuf.IDuration|null);
+
+ /** ExecutionStats readOperations */
+ readOperations?: (number|string|null);
+
+ /** ExecutionStats debugStats */
+ debugStats?: (google.protobuf.IStruct|null);
}
- /** Represents a TransactionOptions. */
- class TransactionOptions implements ITransactionOptions {
+ /** Represents an ExecutionStats. */
+ class ExecutionStats implements IExecutionStats {
/**
- * Constructs a new TransactionOptions.
+ * Constructs a new ExecutionStats.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.ITransactionOptions);
+ constructor(properties?: google.firestore.v1.IExecutionStats);
- /** TransactionOptions readOnly. */
- public readOnly?: (google.firestore.v1.TransactionOptions.IReadOnly|null);
+ /** ExecutionStats resultsReturned. */
+ public resultsReturned: (number|string);
- /** TransactionOptions readWrite. */
- public readWrite?: (google.firestore.v1.TransactionOptions.IReadWrite|null);
+ /** ExecutionStats executionDuration. */
+ public executionDuration?: (google.protobuf.IDuration|null);
- /** TransactionOptions mode. */
- public mode?: ("readOnly"|"readWrite");
+ /** ExecutionStats readOperations. */
+ public readOperations: (number|string);
+
+ /** ExecutionStats debugStats. */
+ public debugStats?: (google.protobuf.IStruct|null);
/**
- * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates an ExecutionStats message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns TransactionOptions
+ * @returns ExecutionStats
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.TransactionOptions;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExecutionStats;
/**
- * Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.
- * @param message TransactionOptions
+ * 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.TransactionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.ExecutionStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this TransactionOptions to JSON.
+ * Converts this ExecutionStats to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for TransactionOptions
+ * 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;
}
- namespace TransactionOptions {
-
- /** Properties of a ReadWrite. */
- interface IReadWrite {
-
- /** ReadWrite retryTransaction */
- retryTransaction?: (Uint8Array|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;
-
- /**
- * 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);
+ /** Properties of a Write. */
+ interface IWrite {
- /** ReadOnly readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** Write update */
+ update?: (google.firestore.v1.IDocument|null);
- /** ReadOnly consistencySelector. */
- public consistencySelector?: "readTime";
+ /** Write delete */
+ "delete"?: (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;
+ /** Write transform */
+ transform?: (google.firestore.v1.IDocumentTransform|null);
- /**
- * 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 };
+ /** Write updateMask */
+ updateMask?: (google.firestore.v1.IDocumentMask|null);
- /**
- * Converts this ReadOnly to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Write updateTransforms */
+ updateTransforms?: (google.firestore.v1.DocumentTransform.IFieldTransform[]|null);
- /**
- * 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;
- }
+ /** Write currentDocument */
+ currentDocument?: (google.firestore.v1.IPrecondition|null);
}
- /** 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);
+ /** Represents a Write. */
+ class Write implements IWrite {
/**
- * Calls GetDocument.
- * @param request GetDocumentRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and Document
+ * Constructs a new Write.
+ * @param [properties] Properties to set
*/
- public getDocument(request: google.firestore.v1.IGetDocumentRequest, callback: google.firestore.v1.Firestore.GetDocumentCallback): void;
+ constructor(properties?: google.firestore.v1.IWrite);
- /**
- * Calls GetDocument.
- * @param request GetDocumentRequest message or plain object
- * @returns Promise
- */
- public getDocument(request: google.firestore.v1.IGetDocumentRequest): Promise;
+ /** Write update. */
+ public update?: (google.firestore.v1.IDocument|null);
- /**
- * 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;
+ /** Write delete. */
+ public delete?: (string|null);
- /**
- * Calls ListDocuments.
- * @param request ListDocumentsRequest message or plain object
- * @returns Promise
- */
- public listDocuments(request: google.firestore.v1.IListDocumentsRequest): Promise;
+ /** Write transform. */
+ public transform?: (google.firestore.v1.IDocumentTransform|null);
- /**
- * 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;
+ /** Write updateMask. */
+ public updateMask?: (google.firestore.v1.IDocumentMask|null);
- /**
- * Calls UpdateDocument.
- * @param request UpdateDocumentRequest message or plain object
- * @returns Promise
- */
- public updateDocument(request: google.firestore.v1.IUpdateDocumentRequest): Promise;
+ /** Write updateTransforms. */
+ public updateTransforms: google.firestore.v1.DocumentTransform.IFieldTransform[];
- /**
- * 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;
+ /** Write currentDocument. */
+ public currentDocument?: (google.firestore.v1.IPrecondition|null);
- /**
- * Calls DeleteDocument.
- * @param request DeleteDocumentRequest message or plain object
- * @returns Promise
- */
- public deleteDocument(request: google.firestore.v1.IDeleteDocumentRequest): Promise;
+ /** Write operation. */
+ public operation?: ("update"|"delete"|"transform");
/**
- * Calls BatchGetDocuments.
- * @param request BatchGetDocumentsRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and BatchGetDocumentsResponse
+ * Creates a Write message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Write
*/
- public batchGetDocuments(request: google.firestore.v1.IBatchGetDocumentsRequest, callback: google.firestore.v1.Firestore.BatchGetDocumentsCallback): void;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.Write;
/**
- * Calls BatchGetDocuments.
- * @param request BatchGetDocumentsRequest message or plain object
- * @returns Promise
+ * 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 batchGetDocuments(request: google.firestore.v1.IBatchGetDocumentsRequest): Promise;
+ public static toObject(message: google.firestore.v1.Write, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Calls BeginTransaction.
- * @param request BeginTransactionRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and BeginTransactionResponse
+ * Converts this Write to JSON.
+ * @returns JSON object
*/
- public beginTransaction(request: google.firestore.v1.IBeginTransactionRequest, callback: google.firestore.v1.Firestore.BeginTransactionCallback): void;
+ public toJSON(): { [k: string]: any };
/**
- * Calls BeginTransaction.
- * @param request BeginTransactionRequest message or plain object
- * @returns Promise
+ * Gets the default type url for Write
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
*/
- public beginTransaction(request: google.firestore.v1.IBeginTransactionRequest): Promise;
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
- /**
- * 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;
+ /** Properties of a DocumentTransform. */
+ interface IDocumentTransform {
- /**
- * Calls Commit.
- * @param request CommitRequest message or plain object
- * @returns Promise
- */
- public commit(request: google.firestore.v1.ICommitRequest): Promise;
+ /** DocumentTransform document */
+ document?: (string|null);
- /**
- * 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;
+ /** DocumentTransform fieldTransforms */
+ fieldTransforms?: (google.firestore.v1.DocumentTransform.IFieldTransform[]|null);
+ }
- /**
- * Calls Rollback.
- * @param request RollbackRequest message or plain object
- * @returns Promise
- */
- public rollback(request: google.firestore.v1.IRollbackRequest): Promise;
+ /** Represents a DocumentTransform. */
+ class DocumentTransform implements IDocumentTransform {
/**
- * Calls RunQuery.
- * @param request RunQueryRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and RunQueryResponse
+ * Constructs a new DocumentTransform.
+ * @param [properties] Properties to set
*/
- public runQuery(request: google.firestore.v1.IRunQueryRequest, callback: google.firestore.v1.Firestore.RunQueryCallback): void;
+ constructor(properties?: google.firestore.v1.IDocumentTransform);
- /**
- * Calls RunQuery.
- * @param request RunQueryRequest message or plain object
- * @returns Promise
- */
- public runQuery(request: google.firestore.v1.IRunQueryRequest): Promise;
+ /** DocumentTransform document. */
+ public document: string;
- /**
- * 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;
+ /** DocumentTransform fieldTransforms. */
+ public fieldTransforms: google.firestore.v1.DocumentTransform.IFieldTransform[];
/**
- * Calls RunAggregationQuery.
- * @param request RunAggregationQueryRequest message or plain object
- * @returns Promise
+ * Creates a DocumentTransform message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentTransform
*/
- public runAggregationQuery(request: google.firestore.v1.IRunAggregationQueryRequest): Promise;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentTransform;
/**
- * Calls PartitionQuery.
- * @param request PartitionQueryRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and PartitionQueryResponse
+ * 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 partitionQuery(request: google.firestore.v1.IPartitionQueryRequest, callback: google.firestore.v1.Firestore.PartitionQueryCallback): void;
+ public static toObject(message: google.firestore.v1.DocumentTransform, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Calls PartitionQuery.
- * @param request PartitionQueryRequest message or plain object
- * @returns Promise
+ * Converts this DocumentTransform to JSON.
+ * @returns JSON object
*/
- public partitionQuery(request: google.firestore.v1.IPartitionQueryRequest): Promise;
+ public toJSON(): { [k: string]: any };
/**
- * Calls Write.
- * @param request WriteRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and WriteResponse
+ * Gets the default type url for DocumentTransform
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
*/
- public write(request: google.firestore.v1.IWriteRequest, callback: google.firestore.v1.Firestore.WriteCallback): void;
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
- /**
- * Calls Write.
- * @param request WriteRequest message or plain object
- * @returns Promise
- */
- public write(request: google.firestore.v1.IWriteRequest): Promise;
+ namespace DocumentTransform {
- /**
- * 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;
+ /** Properties of a FieldTransform. */
+ interface IFieldTransform {
- /**
- * Calls Listen.
- * @param request ListenRequest message or plain object
- * @returns Promise
- */
- public listen(request: google.firestore.v1.IListenRequest): Promise;
+ /** FieldTransform fieldPath */
+ fieldPath?: (string|null);
+
+ /** FieldTransform setToServerValue */
+ setToServerValue?: (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|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 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. */
+ type ServerValue =
+ "SERVER_VALUE_UNSPECIFIED"| "REQUEST_TIME";
+ }
+ }
+
+ /** 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 {
/**
- * Calls ListCollectionIds.
- * @param request ListCollectionIdsRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and ListCollectionIdsResponse
+ * Constructs a new WriteResult.
+ * @param [properties] Properties to set
*/
- public listCollectionIds(request: google.firestore.v1.IListCollectionIdsRequest, callback: google.firestore.v1.Firestore.ListCollectionIdsCallback): void;
+ constructor(properties?: google.firestore.v1.IWriteResult);
- /**
- * Calls ListCollectionIds.
- * @param request ListCollectionIdsRequest message or plain object
- * @returns Promise
- */
- public listCollectionIds(request: google.firestore.v1.IListCollectionIdsRequest): Promise;
+ /** WriteResult updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** WriteResult transformResults. */
+ public transformResults: google.firestore.v1.IValue[];
/**
- * Calls BatchWrite.
- * @param request BatchWriteRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and BatchWriteResponse
+ * Creates a WriteResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteResult
*/
- public batchWrite(request: google.firestore.v1.IBatchWriteRequest, callback: google.firestore.v1.Firestore.BatchWriteCallback): void;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.WriteResult;
/**
- * Calls BatchWrite.
- * @param request BatchWriteRequest message or plain object
- * @returns Promise
+ * 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 batchWrite(request: google.firestore.v1.IBatchWriteRequest): Promise;
+ public static toObject(message: google.firestore.v1.WriteResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Calls CreateDocument.
- * @param request CreateDocumentRequest message or plain object
- * @param callback Node-style callback called with the error, if any, and Document
+ * Converts this WriteResult to JSON.
+ * @returns JSON object
*/
- public createDocument(request: google.firestore.v1.ICreateDocumentRequest, callback: google.firestore.v1.Firestore.CreateDocumentCallback): void;
+ public toJSON(): { [k: string]: any };
/**
- * Calls CreateDocument.
- * @param request CreateDocumentRequest message or plain object
- * @returns Promise
+ * Gets the default type url for WriteResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
*/
- public createDocument(request: google.firestore.v1.ICreateDocumentRequest): Promise;
+ public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace Firestore {
+ /** Properties of a DocumentChange. */
+ interface IDocumentChange {
- /**
- * 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;
+ /** 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 {
/**
- * Callback as used by {@link google.firestore.v1.Firestore#listDocuments}.
- * @param error Error, if any
- * @param [response] ListDocumentsResponse
+ * Constructs a new DocumentChange.
+ * @param [properties] Properties to set
*/
- type ListDocumentsCallback = (error: (Error|null), response?: google.firestore.v1.ListDocumentsResponse) => void;
+ 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[];
/**
- * Callback as used by {@link google.firestore.v1.Firestore#updateDocument}.
- * @param error Error, if any
- * @param [response] Document
+ * Creates a DocumentChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentChange
*/
- type UpdateDocumentCallback = (error: (Error|null), response?: google.firestore.v1.Document) => void;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentChange;
/**
- * Callback as used by {@link google.firestore.v1.Firestore#deleteDocument}.
- * @param error Error, if any
- * @param [response] Empty
+ * 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
*/
- type DeleteDocumentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ public static toObject(message: google.firestore.v1.DocumentChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Callback as used by {@link google.firestore.v1.Firestore#batchGetDocuments}.
- * @param error Error, if any
- * @param [response] BatchGetDocumentsResponse
+ * Converts this DocumentChange to JSON.
+ * @returns JSON object
*/
- type BatchGetDocumentsCallback = (error: (Error|null), response?: google.firestore.v1.BatchGetDocumentsResponse) => void;
+ public toJSON(): { [k: string]: any };
/**
- * Callback as used by {@link google.firestore.v1.Firestore#beginTransaction}.
- * @param error Error, if any
- * @param [response] BeginTransactionResponse
+ * Gets the default type url for DocumentChange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
*/
- type BeginTransactionCallback = (error: (Error|null), response?: google.firestore.v1.BeginTransactionResponse) => void;
+ 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 {
/**
- * Callback as used by {@link google.firestore.v1.Firestore#commit}.
- * @param error Error, if any
- * @param [response] CommitResponse
+ * Constructs a new DocumentDelete.
+ * @param [properties] Properties to set
*/
- type CommitCallback = (error: (Error|null), response?: google.firestore.v1.CommitResponse) => void;
+ constructor(properties?: google.firestore.v1.IDocumentDelete);
+
+ /** DocumentDelete document. */
+ public document: string;
+
+ /** DocumentDelete removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /** DocumentDelete readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
/**
- * Callback as used by {@link google.firestore.v1.Firestore#rollback}.
- * @param error Error, if any
- * @param [response] Empty
+ * Creates a DocumentDelete message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentDelete
*/
- type RollbackCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentDelete;
/**
- * Callback as used by {@link google.firestore.v1.Firestore#runQuery}.
- * @param error Error, if any
- * @param [response] RunQueryResponse
+ * 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
*/
- type RunQueryCallback = (error: (Error|null), response?: google.firestore.v1.RunQueryResponse) => void;
+ public static toObject(message: google.firestore.v1.DocumentDelete, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Callback as used by {@link google.firestore.v1.Firestore#runAggregationQuery}.
- * @param error Error, if any
- * @param [response] RunAggregationQueryResponse
+ * Converts this DocumentDelete to JSON.
+ * @returns JSON object
*/
- type RunAggregationQueryCallback = (error: (Error|null), response?: google.firestore.v1.RunAggregationQueryResponse) => void;
+ public toJSON(): { [k: string]: any };
/**
- * Callback as used by {@link google.firestore.v1.Firestore#partitionQuery}.
- * @param error Error, if any
- * @param [response] PartitionQueryResponse
+ * Gets the default type url for DocumentDelete
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
*/
- type PartitionQueryCallback = (error: (Error|null), response?: google.firestore.v1.PartitionQueryResponse) => void;
+ 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 {
/**
- * Callback as used by {@link google.firestore.v1.Firestore#write}.
- * @param error Error, if any
- * @param [response] WriteResponse
+ * Constructs a new DocumentRemove.
+ * @param [properties] Properties to set
*/
- type WriteCallback = (error: (Error|null), response?: google.firestore.v1.WriteResponse) => void;
+ constructor(properties?: google.firestore.v1.IDocumentRemove);
+
+ /** DocumentRemove document. */
+ public document: string;
+
+ /** DocumentRemove removedTargetIds. */
+ public removedTargetIds: number[];
+
+ /** DocumentRemove readTime. */
+ public readTime?: (google.protobuf.ITimestamp|null);
/**
- * Callback as used by {@link google.firestore.v1.Firestore#listen}.
- * @param error Error, if any
- * @param [response] ListenResponse
+ * Creates a DocumentRemove message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentRemove
*/
- type ListenCallback = (error: (Error|null), response?: google.firestore.v1.ListenResponse) => void;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentRemove;
/**
- * Callback as used by {@link google.firestore.v1.Firestore#listCollectionIds}.
- * @param error Error, if any
- * @param [response] ListCollectionIdsResponse
+ * 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
*/
- type ListCollectionIdsCallback = (error: (Error|null), response?: google.firestore.v1.ListCollectionIdsResponse) => void;
+ public static toObject(message: google.firestore.v1.DocumentRemove, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Callback as used by {@link google.firestore.v1.Firestore#batchWrite}.
- * @param error Error, if any
- * @param [response] BatchWriteResponse
+ * Converts this DocumentRemove to JSON.
+ * @returns JSON object
*/
- type BatchWriteCallback = (error: (Error|null), response?: google.firestore.v1.BatchWriteResponse) => void;
+ public toJSON(): { [k: string]: any };
/**
- * Callback as used by {@link google.firestore.v1.Firestore#createDocument}.
- * @param error Error, if any
- * @param [response] Document
+ * Gets the default type url for DocumentRemove
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
*/
- type CreateDocumentCallback = (error: (Error|null), response?: google.firestore.v1.Document) => void;
+ public static getTypeUrl(typeUrlPrefix?: string): string;
}
- /** Properties of a GetDocumentRequest. */
- interface IGetDocumentRequest {
-
- /** GetDocumentRequest name */
- name?: (string|null);
+ /** Properties of an ExistenceFilter. */
+ interface IExistenceFilter {
- /** GetDocumentRequest mask */
- mask?: (google.firestore.v1.IDocumentMask|null);
+ /** ExistenceFilter targetId */
+ targetId?: (number|null);
- /** GetDocumentRequest transaction */
- transaction?: (Uint8Array|null);
+ /** ExistenceFilter count */
+ count?: (number|null);
- /** GetDocumentRequest readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** ExistenceFilter unchangedNames */
+ unchangedNames?: (google.firestore.v1.IBloomFilter|null);
}
- /** Represents a GetDocumentRequest. */
- class GetDocumentRequest implements IGetDocumentRequest {
+ /** Represents an ExistenceFilter. */
+ class ExistenceFilter implements IExistenceFilter {
/**
- * Constructs a new GetDocumentRequest.
+ * Constructs a new ExistenceFilter.
* @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);
+ constructor(properties?: google.firestore.v1.IExistenceFilter);
- /** GetDocumentRequest transaction. */
- public transaction?: (Uint8Array|null);
+ /** ExistenceFilter targetId. */
+ public targetId: number;
- /** GetDocumentRequest readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** ExistenceFilter count. */
+ public count: number;
- /** GetDocumentRequest consistencySelector. */
- public consistencySelector?: ("transaction"|"readTime");
+ /** ExistenceFilter unchangedNames. */
+ public unchangedNames?: (google.firestore.v1.IBloomFilter|null);
/**
- * Creates a GetDocumentRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates an ExistenceFilter message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns GetDocumentRequest
+ * @returns ExistenceFilter
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.GetDocumentRequest;
+ public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExistenceFilter;
/**
- * Creates a plain object from a GetDocumentRequest message. Also converts values to other types if specified.
- * @param message GetDocumentRequest
+ * 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.GetDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.firestore.v1.ExistenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this GetDocumentRequest to JSON.
+ * Converts this ExistenceFilter to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for GetDocumentRequest
+ * 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 a ListDocumentsRequest. */
- interface IListDocumentsRequest {
+ /** Namespace api. */
+ namespace api {
- /** ListDocumentsRequest parent */
- parent?: (string|null);
+ /** FieldBehavior enum. */
+ type FieldBehavior =
+ "FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE"| "UNORDERED_LIST"| "NON_EMPTY_DEFAULT"| "IDENTIFIER";
- /** ListDocumentsRequest collectionId */
- collectionId?: (string|null);
+ /** Properties of a Http. */
+ interface IHttp {
- /** ListDocumentsRequest pageSize */
- pageSize?: (number|null);
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
- /** ListDocumentsRequest pageToken */
- pageToken?: (string|null);
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
- /** ListDocumentsRequest orderBy */
- orderBy?: (string|null);
+ /** Represents a Http. */
+ class Http implements IHttp {
- /** ListDocumentsRequest mask */
- mask?: (google.firestore.v1.IDocumentMask|null);
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
- /** ListDocumentsRequest transaction */
- transaction?: (Uint8Array|null);
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
- /** ListDocumentsRequest readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
- /** ListDocumentsRequest showMissing */
- showMissing?: (boolean|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;
- /** Represents a ListDocumentsRequest. */
- class ListDocumentsRequest implements IListDocumentsRequest {
+ /**
+ * 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 };
- /**
- * Constructs a new ListDocumentsRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IListDocumentsRequest);
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** ListDocumentsRequest parent. */
- public parent: string;
+ /**
+ * 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;
+ }
- /** ListDocumentsRequest collectionId. */
- public collectionId: string;
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
- /** ListDocumentsRequest pageSize. */
- public pageSize: number;
+ /** HttpRule selector */
+ selector?: (string|null);
- /** ListDocumentsRequest pageToken. */
- public pageToken: string;
+ /** HttpRule get */
+ get?: (string|null);
- /** ListDocumentsRequest orderBy. */
- public orderBy: string;
+ /** HttpRule put */
+ put?: (string|null);
- /** ListDocumentsRequest mask. */
- public mask?: (google.firestore.v1.IDocumentMask|null);
+ /** HttpRule post */
+ post?: (string|null);
- /** ListDocumentsRequest transaction. */
- public transaction?: (Uint8Array|null);
+ /** HttpRule delete */
+ "delete"?: (string|null);
- /** ListDocumentsRequest readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** HttpRule patch */
+ patch?: (string|null);
- /** ListDocumentsRequest showMissing. */
- public showMissing: boolean;
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
- /** ListDocumentsRequest consistencySelector. */
- public consistencySelector?: ("transaction"|"readTime");
+ /** HttpRule body */
+ body?: (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;
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
- /**
- * 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 };
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
- /**
- * Converts this ListDocumentsRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
- /**
- * 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;
- }
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
- /** Properties of a ListDocumentsResponse. */
- interface IListDocumentsResponse {
+ /** HttpRule selector. */
+ public selector: string;
- /** ListDocumentsResponse documents */
- documents?: (google.firestore.v1.IDocument[]|null);
+ /** HttpRule get. */
+ public get?: (string|null);
- /** ListDocumentsResponse nextPageToken */
- nextPageToken?: (string|null);
- }
+ /** HttpRule put. */
+ public put?: (string|null);
- /** Represents a ListDocumentsResponse. */
- class ListDocumentsResponse implements IListDocumentsResponse {
+ /** HttpRule post. */
+ public post?: (string|null);
- /**
- * Constructs a new ListDocumentsResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IListDocumentsResponse);
+ /** 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 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;
- /** ListDocumentsResponse documents. */
- public documents: google.firestore.v1.IDocument[];
+ /**
+ * 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 };
- /** ListDocumentsResponse nextPageToken. */
- public nextPageToken: string;
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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;
+ /**
+ * 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;
+ }
- /**
- * 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 };
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
- /**
- * Converts this ListDocumentsResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
- /**
- * 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;
- }
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
- /** Properties of a CreateDocumentRequest. */
- interface ICreateDocumentRequest {
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
- /** CreateDocumentRequest parent */
- parent?: (string|null);
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
- /** CreateDocumentRequest collectionId */
- collectionId?: (string|null);
+ /** CustomHttpPattern kind. */
+ public kind: string;
- /** CreateDocumentRequest documentId */
- documentId?: (string|null);
+ /** CustomHttpPattern path. */
+ public path: string;
- /** CreateDocumentRequest document */
- document?: (google.firestore.v1.IDocument|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;
- /** CreateDocumentRequest mask */
- mask?: (google.firestore.v1.IDocumentMask|null);
- }
+ /**
+ * 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 };
- /** Represents a CreateDocumentRequest. */
- class CreateDocumentRequest implements ICreateDocumentRequest {
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Constructs a new CreateDocumentRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.ICreateDocumentRequest);
+ /**
+ * 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;
+ }
- /** CreateDocumentRequest parent. */
- public parent: string;
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
- /** CreateDocumentRequest collectionId. */
- public collectionId: string;
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
- /** CreateDocumentRequest documentId. */
- public documentId: string;
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
- /** CreateDocumentRequest document. */
- public document?: (google.firestore.v1.IDocument|null);
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
- /** CreateDocumentRequest mask. */
- public mask?: (google.firestore.v1.IDocumentMask|null);
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
- /**
- * 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;
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
- /**
- * 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 };
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
- /**
- * Converts this CreateDocumentRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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;
- /**
- * 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;
- }
+ /**
+ * 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 };
- /** Properties of an UpdateDocumentRequest. */
- interface IUpdateDocumentRequest {
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** UpdateDocumentRequest document */
- document?: (google.firestore.v1.IDocument|null);
+ /**
+ * 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;
+ }
- /** UpdateDocumentRequest updateMask */
- updateMask?: (google.firestore.v1.IDocumentMask|null);
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
- /** UpdateDocumentRequest mask */
- mask?: (google.firestore.v1.IDocumentMask|null);
+ /** ClientLibrarySettings version */
+ version?: (string|null);
- /** UpdateDocumentRequest currentDocument */
- currentDocument?: (google.firestore.v1.IPrecondition|null);
- }
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|null);
- /** Represents an UpdateDocumentRequest. */
- class UpdateDocumentRequest implements IUpdateDocumentRequest {
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
- /**
- * Constructs a new UpdateDocumentRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IUpdateDocumentRequest);
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
- /** UpdateDocumentRequest document. */
- public document?: (google.firestore.v1.IDocument|null);
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
- /** UpdateDocumentRequest updateMask. */
- public updateMask?: (google.firestore.v1.IDocumentMask|null);
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
- /** UpdateDocumentRequest mask. */
- public mask?: (google.firestore.v1.IDocumentMask|null);
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
- /** UpdateDocumentRequest currentDocument. */
- public currentDocument?: (google.firestore.v1.IPrecondition|null);
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|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;
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
- /**
- * 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 };
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
- /**
- * Converts this UpdateDocumentRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
- /**
- * 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;
- }
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
- /** Properties of a DeleteDocumentRequest. */
- interface IDeleteDocumentRequest {
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
- /** DeleteDocumentRequest name */
- name?: (string|null);
+ /** ClientLibrarySettings version. */
+ public version: string;
- /** DeleteDocumentRequest currentDocument */
- currentDocument?: (google.firestore.v1.IPrecondition|null);
- }
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: google.api.LaunchStage;
- /** Represents a DeleteDocumentRequest. */
- class DeleteDocumentRequest implements IDeleteDocumentRequest {
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
- /**
- * Constructs a new DeleteDocumentRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IDeleteDocumentRequest);
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
- /** DeleteDocumentRequest name. */
- public name: string;
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
- /** DeleteDocumentRequest currentDocument. */
- public currentDocument?: (google.firestore.v1.IPrecondition|null);
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|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;
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
- /**
- * 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 };
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
- /**
- * Converts this DeleteDocumentRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
- /**
- * 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;
- }
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
- /** Properties of a BatchGetDocumentsRequest. */
- interface IBatchGetDocumentsRequest {
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
- /** BatchGetDocumentsRequest database */
- database?: (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;
- /** BatchGetDocumentsRequest documents */
- documents?: (string[]|null);
+ /**
+ * 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 };
- /** BatchGetDocumentsRequest mask */
- mask?: (google.firestore.v1.IDocumentMask|null);
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** BatchGetDocumentsRequest transaction */
- transaction?: (Uint8Array|null);
+ /**
+ * 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;
+ }
- /** BatchGetDocumentsRequest newTransaction */
- newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+ /** Properties of a Publishing. */
+ interface IPublishing {
- /** BatchGetDocumentsRequest readTime */
- readTime?: (google.protobuf.ITimestamp|null);
- }
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
- /** Represents a BatchGetDocumentsRequest. */
- class BatchGetDocumentsRequest implements IBatchGetDocumentsRequest {
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
- /**
- * Constructs a new BatchGetDocumentsRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IBatchGetDocumentsRequest);
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
- /** BatchGetDocumentsRequest database. */
- public database: string;
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
- /** BatchGetDocumentsRequest documents. */
- public documents: string[];
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
- /** BatchGetDocumentsRequest mask. */
- public mask?: (google.firestore.v1.IDocumentMask|null);
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
- /** BatchGetDocumentsRequest transaction. */
- public transaction?: (Uint8Array|null);
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
- /** BatchGetDocumentsRequest newTransaction. */
- public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|null);
- /** BatchGetDocumentsRequest readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
- /** BatchGetDocumentsRequest consistencySelector. */
- public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (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;
+ /** Publishing restReferenceDocumentationUri */
+ restReferenceDocumentationUri?: (string|null);
+ }
- /**
- * 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 };
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
- /**
- * Converts this BatchGetDocumentsRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
- /**
- * 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;
- }
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
- /** Properties of a BatchGetDocumentsResponse. */
- interface IBatchGetDocumentsResponse {
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
- /** BatchGetDocumentsResponse found */
- found?: (google.firestore.v1.IDocument|null);
+ /** Publishing documentationUri. */
+ public documentationUri: string;
- /** BatchGetDocumentsResponse missing */
- missing?: (string|null);
+ /** Publishing apiShortName. */
+ public apiShortName: string;
- /** BatchGetDocumentsResponse transaction */
- transaction?: (Uint8Array|null);
+ /** Publishing githubLabel. */
+ public githubLabel: string;
- /** BatchGetDocumentsResponse readTime */
- readTime?: (google.protobuf.ITimestamp|null);
- }
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
- /** Represents a BatchGetDocumentsResponse. */
- class BatchGetDocumentsResponse implements IBatchGetDocumentsResponse {
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
- /**
- * Constructs a new BatchGetDocumentsResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IBatchGetDocumentsResponse);
+ /** Publishing organization. */
+ public organization: google.api.ClientLibraryOrganization;
- /** BatchGetDocumentsResponse found. */
- public found?: (google.firestore.v1.IDocument|null);
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
- /** BatchGetDocumentsResponse missing. */
- public missing?: (string|null);
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
- /** BatchGetDocumentsResponse transaction. */
- public transaction: Uint8Array;
+ /** Publishing restReferenceDocumentationUri. */
+ public restReferenceDocumentationUri: string;
- /** BatchGetDocumentsResponse readTime. */
- public readTime?: (google.protobuf.ITimestamp|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;
- /** BatchGetDocumentsResponse result. */
- public result?: ("found"|"missing");
+ /**
+ * 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 };
- /**
- * 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;
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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 };
+ /**
+ * 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;
+ }
- /**
- * Converts this BatchGetDocumentsResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
- /**
- * 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;
- }
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
- /** Properties of a BeginTransactionRequest. */
- interface IBeginTransactionRequest {
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
- /** BeginTransactionRequest database */
- database?: (string|null);
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
- /** BeginTransactionRequest options */
- options?: (google.firestore.v1.ITransactionOptions|null);
- }
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
- /** Represents a BeginTransactionRequest. */
- class BeginTransactionRequest implements IBeginTransactionRequest {
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
- /**
- * Constructs a new BeginTransactionRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IBeginTransactionRequest);
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
- /** BeginTransactionRequest database. */
- public database: string;
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
- /** BeginTransactionRequest options. */
- public options?: (google.firestore.v1.ITransactionOptions|null);
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|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 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 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 };
+ /**
+ * 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 BeginTransactionRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this JavaSettings 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;
- }
+ /**
+ * 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 BeginTransactionResponse. */
- interface IBeginTransactionResponse {
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
- /** BeginTransactionResponse transaction */
- transaction?: (Uint8Array|null);
- }
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
- /** Represents a BeginTransactionResponse. */
- class BeginTransactionResponse implements IBeginTransactionResponse {
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
- /**
- * Constructs a new BeginTransactionResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IBeginTransactionResponse);
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
- /** BeginTransactionResponse transaction. */
- public transaction: Uint8Array;
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|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 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 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 };
+ /**
+ * 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 BeginTransactionResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this CppSettings 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;
- }
+ /**
+ * 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 CommitRequest. */
- interface ICommitRequest {
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
- /** CommitRequest database */
- database?: (string|null);
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
- /** CommitRequest writes */
- writes?: (google.firestore.v1.IWrite[]|null);
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
- /** CommitRequest transaction */
- transaction?: (Uint8Array|null);
- }
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
- /** Represents a CommitRequest. */
- class CommitRequest implements ICommitRequest {
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
- /**
- * Constructs a new CommitRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.ICommitRequest);
+ /**
+ * 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;
- /** CommitRequest database. */
- public database: string;
+ /**
+ * 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 };
- /** CommitRequest writes. */
- public writes: google.firestore.v1.IWrite[];
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** CommitRequest transaction. */
- public transaction: Uint8Array;
+ /**
+ * 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;
+ }
- /**
- * 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;
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
- /**
- * 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 };
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
- /**
- * Converts this CommitRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
- /**
- * 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;
- }
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
- /** Properties of a CommitResponse. */
- interface ICommitResponse {
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
- /** CommitResponse writeResults */
- writeResults?: (google.firestore.v1.IWriteResult[]|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;
- /** CommitResponse commitTime */
- commitTime?: (google.protobuf.ITimestamp|null);
- }
+ /**
+ * 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 };
- /** Represents a CommitResponse. */
- class CommitResponse implements ICommitResponse {
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Constructs a new CommitResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.ICommitResponse);
+ /**
+ * 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;
+ }
- /** CommitResponse writeResults. */
- public writeResults: google.firestore.v1.IWriteResult[];
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
- /** CommitResponse commitTime. */
- public commitTime?: (google.protobuf.ITimestamp|null);
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|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;
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
- /**
- * 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 };
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
- /**
- * Converts this CommitResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
- /**
- * 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;
- }
+ /**
+ * 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;
- /** Properties of a RollbackRequest. */
- interface IRollbackRequest {
+ /**
+ * 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 };
- /** RollbackRequest database */
- database?: (string|null);
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** RollbackRequest transaction */
- transaction?: (Uint8Array|null);
- }
+ /**
+ * 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;
+ }
- /** Represents a RollbackRequest. */
- class RollbackRequest implements IRollbackRequest {
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
- /**
- * Constructs a new RollbackRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IRollbackRequest);
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
- /** RollbackRequest database. */
- public database: string;
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
- /** RollbackRequest transaction. */
- public transaction: Uint8Array;
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: 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;
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
- /**
- * 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 };
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
- /**
- * Converts this RollbackRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
- /**
- * 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;
- }
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
- /** Properties of a RunQueryRequest. */
- interface IRunQueryRequest {
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
- /** RunQueryRequest parent */
- parent?: (string|null);
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
- /** RunQueryRequest structuredQuery */
- structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
- /** RunQueryRequest transaction */
- transaction?: (Uint8Array|null);
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
- /** RunQueryRequest newTransaction */
- newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
- /** RunQueryRequest readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
- /** RunQueryRequest explainOptions */
- explainOptions?: (google.firestore.v1.IExplainOptions|null);
- }
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
- /** Represents a RunQueryRequest. */
- class RunQueryRequest implements IRunQueryRequest {
+ /**
+ * 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;
- /**
- * Constructs a new RunQueryRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IRunQueryRequest);
+ /**
+ * 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 };
- /** RunQueryRequest parent. */
- public parent: string;
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** RunQueryRequest structuredQuery. */
- public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ /**
+ * 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;
+ }
- /** RunQueryRequest transaction. */
- public transaction?: (Uint8Array|null);
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
- /** RunQueryRequest newTransaction. */
- public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
- /** RunQueryRequest readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
- /** RunQueryRequest explainOptions. */
- public explainOptions?: (google.firestore.v1.IExplainOptions|null);
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
- /** RunQueryRequest queryType. */
- public queryType?: "structuredQuery";
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
- /** RunQueryRequest consistencySelector. */
- public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+ /**
+ * 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 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 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 };
- /**
- * 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 RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Converts this RunQueryRequest 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;
+ }
- /**
- * 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 GoSettings. */
+ interface IGoSettings {
- /** Properties of a RunQueryResponse. */
- interface IRunQueryResponse {
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
- /** RunQueryResponse transaction */
- transaction?: (Uint8Array|null);
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
- /** RunQueryResponse document */
- document?: (google.firestore.v1.IDocument|null);
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
- /** RunQueryResponse readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
- /** RunQueryResponse skippedResults */
- skippedResults?: (number|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;
- /** RunQueryResponse done */
- done?: (boolean|null);
+ /**
+ * 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 };
- /** RunQueryResponse explainMetrics */
- explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
- }
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Represents a RunQueryResponse. */
- class RunQueryResponse implements IRunQueryResponse {
+ /**
+ * 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;
+ }
- /**
- * Constructs a new RunQueryResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IRunQueryResponse);
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
- /** RunQueryResponse transaction. */
- public transaction: Uint8Array;
+ /** MethodSettings selector */
+ selector?: (string|null);
- /** RunQueryResponse document. */
- public document?: (google.firestore.v1.IDocument|null);
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
- /** RunQueryResponse readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
- /** RunQueryResponse skippedResults. */
- public skippedResults: number;
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
- /** RunQueryResponse done. */
- public done?: (boolean|null);
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
- /** RunQueryResponse explainMetrics. */
- public explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
+ /** MethodSettings selector. */
+ public selector: string;
- /** RunQueryResponse continuationSelector. */
- public continuationSelector?: "done";
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|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;
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this RunQueryResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of a RunAggregationQueryRequest. */
- interface IRunAggregationQueryRequest {
+ /**
+ * 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;
+ }
- /** RunAggregationQueryRequest parent */
- parent?: (string|null);
+ namespace MethodSettings {
- /** RunAggregationQueryRequest structuredAggregationQuery */
- structuredAggregationQuery?: (google.firestore.v1.IStructuredAggregationQuery|null);
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
- /** RunAggregationQueryRequest transaction */
- transaction?: (Uint8Array|null);
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
- /** RunAggregationQueryRequest newTransaction */
- newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
- /** RunAggregationQueryRequest readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
- /** RunAggregationQueryRequest explainOptions */
- explainOptions?: (google.firestore.v1.IExplainOptions|null);
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
}
- /** Represents a RunAggregationQueryRequest. */
- class RunAggregationQueryRequest implements IRunAggregationQueryRequest {
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
/**
- * Constructs a new RunAggregationQueryRequest.
+ * Constructs a new LongRunning.
* @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|null);
-
- /** RunAggregationQueryRequest newTransaction. */
- public newTransaction?: (google.firestore.v1.ITransactionOptions|null);
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
- /** RunAggregationQueryRequest readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
- /** RunAggregationQueryRequest explainOptions. */
- public explainOptions?: (google.firestore.v1.IExplainOptions|null);
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
- /** RunAggregationQueryRequest queryType. */
- public queryType?: "structuredAggregationQuery";
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
- /** RunAggregationQueryRequest consistencySelector. */
- public consistencySelector?: ("transaction"|"newTransaction"|"readTime");
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
/**
- * Creates a RunAggregationQueryRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns RunAggregationQueryRequest
+ * @returns LongRunning
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.RunAggregationQueryRequest;
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
/**
- * Creates a plain object from a RunAggregationQueryRequest message. Also converts values to other types if specified.
- * @param message RunAggregationQueryRequest
+ * 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.firestore.v1.RunAggregationQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this RunAggregationQueryRequest to JSON.
+ * Converts this LongRunning to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for RunAggregationQueryRequest
+ * 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;
}
+ }
- /** Properties of a RunAggregationQueryResponse. */
- interface IRunAggregationQueryResponse {
-
- /** RunAggregationQueryResponse result */
- result?: (google.firestore.v1.IAggregationResult|null);
-
- /** RunAggregationQueryResponse transaction */
- transaction?: (Uint8Array|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);
+ /** ClientLibraryOrganization enum. */
+ type ClientLibraryOrganization =
+ "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"| "CLOUD"| "ADS"| "PHOTOS"| "STREET_VIEW"| "SHOPPING"| "GEO"| "GENERATIVE_AI";
- /** RunAggregationQueryResponse transaction. */
- public transaction: Uint8Array;
+ /** ClientLibraryDestination enum. */
+ type ClientLibraryDestination =
+ "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"| "GITHUB"| "PACKAGE_MANAGER";
- /** RunAggregationQueryResponse readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** LaunchStage enum. */
+ type LaunchStage =
+ "LAUNCH_STAGE_UNSPECIFIED"| "UNIMPLEMENTED"| "PRELAUNCH"| "EARLY_ACCESS"| "ALPHA"| "BETA"| "GA"| "DEPRECATED";
- /** RunAggregationQueryResponse explainMetrics. */
- public explainMetrics?: (google.firestore.v1.IExplainMetrics|null);
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
- /**
- * 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;
+ /** ResourceDescriptor type */
+ type?: (string|null);
- /**
- * 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 };
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
- /**
- * Converts this RunAggregationQueryResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
- /**
- * 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;
- }
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|null);
- /** Properties of a PartitionQueryRequest. */
- interface IPartitionQueryRequest {
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
- /** PartitionQueryRequest parent */
- parent?: (string|null);
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
- /** PartitionQueryRequest structuredQuery */
- structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
- /** PartitionQueryRequest partitionCount */
- partitionCount?: (number|string|null);
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
- /** PartitionQueryRequest pageToken */
- pageToken?: (string|null);
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
- /** PartitionQueryRequest pageSize */
- pageSize?: (number|null);
+ /** ResourceDescriptor type. */
+ public type: string;
- /** PartitionQueryRequest readTime */
- readTime?: (google.protobuf.ITimestamp|null);
- }
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
- /** Represents a PartitionQueryRequest. */
- class PartitionQueryRequest implements IPartitionQueryRequest {
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
- /**
- * Constructs a new PartitionQueryRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IPartitionQueryRequest);
+ /** ResourceDescriptor history. */
+ public history: google.api.ResourceDescriptor.History;
- /** PartitionQueryRequest parent. */
- public parent: string;
+ /** ResourceDescriptor plural. */
+ public plural: string;
- /** PartitionQueryRequest structuredQuery. */
- public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ /** ResourceDescriptor singular. */
+ public singular: string;
- /** PartitionQueryRequest partitionCount. */
- public partitionCount: (number|string);
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
- /** PartitionQueryRequest pageToken. */
- public pageToken: string;
+ /**
+ * 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;
- /** PartitionQueryRequest pageSize. */
- public pageSize: number;
+ /**
+ * 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 };
- /** PartitionQueryRequest readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** PartitionQueryRequest queryType. */
- public queryType?: "structuredQuery";
+ /**
+ * 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;
+ }
- /** PartitionQueryRequest consistencySelector. */
- public consistencySelector?: "readTime";
+ namespace ResourceDescriptor {
- /**
- * 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;
+ /** History enum. */
+ type History =
+ "HISTORY_UNSPECIFIED"| "ORIGINALLY_SINGLE_PATTERN"| "FUTURE_MULTI_PATTERN";
- /**
- * 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 };
+ /** Style enum. */
+ type Style =
+ "STYLE_UNSPECIFIED"| "DECLARATIVE_FRIENDLY";
+ }
- /**
- * Converts this PartitionQueryRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
- /**
- * 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;
- }
+ /** ResourceReference type */
+ type?: (string|null);
- /** Properties of a PartitionQueryResponse. */
- interface IPartitionQueryResponse {
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
- /** PartitionQueryResponse partitions */
- partitions?: (google.firestore.v1.ICursor[]|null);
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
- /** PartitionQueryResponse nextPageToken */
- nextPageToken?: (string|null);
- }
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
- /** Represents a PartitionQueryResponse. */
- class PartitionQueryResponse implements IPartitionQueryResponse {
+ /** ResourceReference type. */
+ public type: string;
- /**
- * Constructs a new PartitionQueryResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IPartitionQueryResponse);
+ /** ResourceReference childType. */
+ public childType: string;
- /** PartitionQueryResponse partitions. */
- public partitions: google.firestore.v1.ICursor[];
+ /**
+ * 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;
- /** PartitionQueryResponse nextPageToken. */
- public nextPageToken: string;
+ /**
+ * 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 };
- /**
- * 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;
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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 };
+ /**
+ * 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;
+ }
+ }
- /**
- * Converts this PartitionQueryResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Namespace protobuf. */
+ namespace protobuf {
- /**
- * 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 FileDescriptorSet. */
+ interface IFileDescriptorSet {
- /** Properties of a WriteRequest. */
- interface IWriteRequest {
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
- /** WriteRequest database */
- database?: (string|null);
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
- /** WriteRequest streamId */
- streamId?: (string|null);
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
- /** WriteRequest writes */
- writes?: (google.firestore.v1.IWrite[]|null);
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
- /** WriteRequest streamToken */
- streamToken?: (Uint8Array|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;
- /** WriteRequest labels */
- labels?: ({ [k: string]: string }|null);
- }
+ /**
+ * 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 };
- /** Represents a WriteRequest. */
- class WriteRequest implements IWriteRequest {
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Constructs a new WriteRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IWriteRequest);
+ /**
+ * 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;
+ }
- /** WriteRequest database. */
- public database: string;
+ /** Edition enum. */
+ type Edition =
+ "EDITION_UNKNOWN"| "EDITION_PROTO2"| "EDITION_PROTO3"| "EDITION_2023"| "EDITION_2024"| "EDITION_1_TEST_ONLY"| "EDITION_2_TEST_ONLY"| "EDITION_99997_TEST_ONLY"| "EDITION_99998_TEST_ONLY"| "EDITION_99999_TEST_ONLY"| "EDITION_MAX";
- /** WriteRequest streamId. */
- public streamId: string;
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
- /** WriteRequest writes. */
- public writes: google.firestore.v1.IWrite[];
+ /** FileDescriptorProto name */
+ name?: (string|null);
- /** WriteRequest streamToken. */
- public streamToken: Uint8Array;
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
- /** WriteRequest labels. */
- public labels: { [k: string]: string };
+ /** FileDescriptorProto dependency */
+ dependency?: (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;
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
- /**
- * 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 };
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
- /**
- * Converts this WriteRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
- /**
- * 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;
- }
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
- /** Properties of a WriteResponse. */
- interface IWriteResponse {
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
- /** WriteResponse streamId */
- streamId?: (string|null);
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
- /** WriteResponse streamToken */
- streamToken?: (Uint8Array|null);
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
- /** WriteResponse writeResults */
- writeResults?: (google.firestore.v1.IWriteResult[]|null);
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
- /** WriteResponse commitTime */
- commitTime?: (google.protobuf.ITimestamp|null);
- }
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
- /** Represents a WriteResponse. */
- class WriteResponse implements IWriteResponse {
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|null);
+ }
- /**
- * Constructs a new WriteResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IWriteResponse);
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
- /** WriteResponse streamId. */
- public streamId: string;
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
- /** WriteResponse streamToken. */
- public streamToken: Uint8Array;
+ /** FileDescriptorProto name. */
+ public name: string;
- /** WriteResponse writeResults. */
- public writeResults: google.firestore.v1.IWriteResult[];
+ /** FileDescriptorProto package. */
+ public package: string;
- /** WriteResponse commitTime. */
- public commitTime?: (google.protobuf.ITimestamp|null);
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
- /**
- * 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;
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
- /**
- * 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 };
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
- /**
- * Converts this WriteResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
- /**
- * 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;
- }
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
- /** Properties of a ListenRequest. */
- interface IListenRequest {
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
- /** ListenRequest database */
- database?: (string|null);
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
- /** ListenRequest addTarget */
- addTarget?: (google.firestore.v1.ITarget|null);
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
- /** ListenRequest removeTarget */
- removeTarget?: (number|null);
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
- /** ListenRequest labels */
- labels?: ({ [k: string]: string }|null);
- }
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
- /** Represents a ListenRequest. */
- class ListenRequest implements IListenRequest {
+ /** FileDescriptorProto edition. */
+ public edition: google.protobuf.Edition;
- /**
- * Constructs a new ListenRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IListenRequest);
+ /**
+ * 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;
- /** ListenRequest database. */
- public database: string;
+ /**
+ * 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 };
- /** ListenRequest addTarget. */
- public addTarget?: (google.firestore.v1.ITarget|null);
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** ListenRequest removeTarget. */
- public removeTarget?: (number|null);
+ /**
+ * 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;
+ }
- /** ListenRequest labels. */
- public labels: { [k: string]: string };
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
- /** ListenRequest targetChange. */
- public targetChange?: ("addTarget"|"removeTarget");
+ /** DescriptorProto name */
+ name?: (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;
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
- /**
- * 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 };
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
- /**
- * Converts this ListenRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
- /**
- * 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;
- }
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
- /** Properties of a ListenResponse. */
- interface IListenResponse {
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
- /** ListenResponse targetChange */
- targetChange?: (google.firestore.v1.ITargetChange|null);
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
- /** ListenResponse documentChange */
- documentChange?: (google.firestore.v1.IDocumentChange|null);
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
- /** ListenResponse documentDelete */
- documentDelete?: (google.firestore.v1.IDocumentDelete|null);
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
- /** ListenResponse documentRemove */
- documentRemove?: (google.firestore.v1.IDocumentRemove|null);
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
- /** ListenResponse filter */
- filter?: (google.firestore.v1.IExistenceFilter|null);
- }
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
- /** Represents a ListenResponse. */
- class ListenResponse implements IListenResponse {
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
- /**
- * Constructs a new ListenResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IListenResponse);
+ /** DescriptorProto name. */
+ public name: string;
- /** ListenResponse targetChange. */
- public targetChange?: (google.firestore.v1.ITargetChange|null);
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
- /** ListenResponse documentChange. */
- public documentChange?: (google.firestore.v1.IDocumentChange|null);
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
- /** ListenResponse documentDelete. */
- public documentDelete?: (google.firestore.v1.IDocumentDelete|null);
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
- /** ListenResponse documentRemove. */
- public documentRemove?: (google.firestore.v1.IDocumentRemove|null);
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
- /** ListenResponse filter. */
- public filter?: (google.firestore.v1.IExistenceFilter|null);
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
- /** ListenResponse responseType. */
- public responseType?: ("targetChange"|"documentChange"|"documentDelete"|"documentRemove"|"filter");
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
- /**
- * 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;
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
- /**
- * 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 };
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
- /**
- * Converts this ListenResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
- /**
- * 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;
- }
+ /**
+ * 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;
- /** Properties of a Target. */
- interface ITarget {
+ /**
+ * 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 };
- /** Target query */
- query?: (google.firestore.v1.Target.IQueryTarget|null);
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Target documents */
- documents?: (google.firestore.v1.Target.IDocumentsTarget|null);
+ /**
+ * 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;
+ }
- /** Target resumeToken */
- resumeToken?: (Uint8Array|null);
+ namespace DescriptorProto {
- /** Target readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
- /** Target targetId */
- targetId?: (number|null);
+ /** ExtensionRange start */
+ start?: (number|null);
- /** Target once */
- once?: (boolean|null);
+ /** ExtensionRange end */
+ end?: (number|null);
- /** Target expectedCount */
- expectedCount?: (google.protobuf.IInt32Value|null);
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
}
- /** Represents a Target. */
- class Target implements ITarget {
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
/**
- * Constructs a new Target.
+ * Constructs a new ExtensionRange.
* @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|null);
-
- /** Target readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
-
- /** Target targetId. */
- public targetId: number;
-
- /** Target once. */
- public once: boolean;
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
- /** Target expectedCount. */
- public expectedCount?: (google.protobuf.IInt32Value|null);
+ /** ExtensionRange start. */
+ public start: number;
- /** Target targetType. */
- public targetType?: ("query"|"documents");
+ /** ExtensionRange end. */
+ public end: number;
- /** Target resumeType. */
- public resumeType?: ("resumeToken"|"readTime");
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
/**
- * Creates a Target message from a plain object. Also converts values to their respective internal types.
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Target
+ * @returns ExtensionRange
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.Target;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
/**
- * Creates a plain object from a Target message. Also converts values to other types if specified.
- * @param message Target
+ * 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.firestore.v1.Target, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Target to JSON.
+ * Converts this ExtensionRange to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Target
+ * 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;
}
- 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 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 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|null);
-
- /** TargetChange targetIds */
- targetIds?: (number[]|null);
-
- /** TargetChange cause */
- cause?: (google.rpc.IStatus|null);
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
- /** TargetChange resumeToken */
- resumeToken?: (Uint8Array|null);
+ /** ReservedRange start */
+ start?: (number|null);
- /** TargetChange readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** ReservedRange end */
+ end?: (number|null);
}
- /** Represents a TargetChange. */
- class TargetChange implements ITargetChange {
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
/**
- * Constructs a new TargetChange.
+ * Constructs a new ReservedRange.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.ITargetChange);
-
- /** TargetChange targetChangeType. */
- public targetChangeType: google.firestore.v1.TargetChange.TargetChangeType;
-
- /** TargetChange targetIds. */
- public targetIds: number[];
-
- /** TargetChange cause. */
- public cause?: (google.rpc.IStatus|null);
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
- /** TargetChange resumeToken. */
- public resumeToken: Uint8Array;
+ /** ReservedRange start. */
+ public start: number;
- /** TargetChange readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** ReservedRange end. */
+ public end: number;
/**
- * Creates a TargetChange message from a plain object. Also converts values to their respective internal types.
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns TargetChange
+ * @returns ReservedRange
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.TargetChange;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
/**
- * Creates a plain object from a TargetChange message. Also converts values to other types if specified.
- * @param message TargetChange
+ * 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.firestore.v1.TargetChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this TargetChange to JSON.
+ * Converts this ReservedRange to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for TargetChange
+ * 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;
}
+ }
- namespace TargetChange {
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
- /** TargetChangeType enum. */
- type TargetChangeType =
- "NO_CHANGE"| "ADD"| "REMOVE"| "CURRENT"| "RESET";
- }
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- /** Properties of a ListCollectionIdsRequest. */
- interface IListCollectionIdsRequest {
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
- /** ListCollectionIdsRequest parent */
- parent?: (string|null);
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /** ListCollectionIdsRequest pageSize */
- pageSize?: (number|null);
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
- /** ListCollectionIdsRequest pageToken */
- pageToken?: (string|null);
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
- /** ListCollectionIdsRequest readTime */
- readTime?: (google.protobuf.ITimestamp|null);
- }
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
- /** Represents a ListCollectionIdsRequest. */
- class ListCollectionIdsRequest implements IListCollectionIdsRequest {
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /**
- * Constructs a new ListCollectionIdsRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IListCollectionIdsRequest);
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
- /** ListCollectionIdsRequest parent. */
- public parent: string;
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** ListCollectionIdsRequest pageSize. */
- public pageSize: number;
+ /** ExtensionRangeOptions verification. */
+ public verification: google.protobuf.ExtensionRangeOptions.VerificationState;
- /** ListCollectionIdsRequest pageToken. */
- public pageToken: string;
+ /**
+ * 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;
- /** ListCollectionIdsRequest readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /**
+ * 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 };
- /** ListCollectionIdsRequest consistencySelector. */
- public consistencySelector?: "readTime";
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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;
+ /**
+ * 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;
+ }
- /**
- * 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 };
+ namespace ExtensionRangeOptions {
- /**
- * Converts this ListCollectionIdsRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of a Declaration. */
+ interface IDeclaration {
- /**
- * 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;
- }
+ /** Declaration number */
+ number?: (number|null);
- /** Properties of a ListCollectionIdsResponse. */
- interface IListCollectionIdsResponse {
+ /** Declaration fullName */
+ fullName?: (string|null);
- /** ListCollectionIdsResponse collectionIds */
- collectionIds?: (string[]|null);
+ /** Declaration type */
+ type?: (string|null);
- /** ListCollectionIdsResponse nextPageToken */
- nextPageToken?: (string|null);
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
}
- /** Represents a ListCollectionIdsResponse. */
- class ListCollectionIdsResponse implements IListCollectionIdsResponse {
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
/**
- * Constructs a new ListCollectionIdsResponse.
+ * Constructs a new Declaration.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IListCollectionIdsResponse);
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
- /** ListCollectionIdsResponse collectionIds. */
- public collectionIds: string[];
+ /** Declaration number. */
+ public number: number;
- /** ListCollectionIdsResponse nextPageToken. */
- public nextPageToken: string;
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
/**
- * Creates a ListCollectionIdsResponse message from a plain object. Also converts values to their respective internal types.
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ListCollectionIdsResponse
+ * @returns Declaration
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.ListCollectionIdsResponse;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
/**
- * Creates a plain object from a ListCollectionIdsResponse message. Also converts values to other types if specified.
- * @param message ListCollectionIdsResponse
+ * 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.firestore.v1.ListCollectionIdsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ListCollectionIdsResponse to JSON.
+ * Converts this Declaration to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ListCollectionIdsResponse
+ * 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;
}
- /** Properties of a BatchWriteRequest. */
- interface IBatchWriteRequest {
+ /** VerificationState enum. */
+ type VerificationState =
+ "DECLARATION"| "UNVERIFIED";
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (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;
+
+ /** FieldDescriptorProto type. */
+ public type: google.protobuf.FieldDescriptorProto.Type;
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
- /** BatchWriteRequest database */
- database?: (string|null);
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
- /** BatchWriteRequest writes */
- writes?: (google.firestore.v1.IWrite[]|null);
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
- /** BatchWriteRequest labels */
- labels?: ({ [k: string]: string }|null);
- }
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
- /** Represents a BatchWriteRequest. */
- class BatchWriteRequest implements IBatchWriteRequest {
+ /**
+ * 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;
- /**
- * Constructs a new BatchWriteRequest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IBatchWriteRequest);
+ /**
+ * 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 };
- /** BatchWriteRequest database. */
- public database: string;
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** BatchWriteRequest writes. */
- public writes: google.firestore.v1.IWrite[];
+ /**
+ * 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;
+ }
- /** BatchWriteRequest labels. */
- public labels: { [k: string]: string };
+ namespace FieldDescriptorProto {
- /**
- * 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;
+ /** Type enum. */
+ type Type =
+ "TYPE_DOUBLE"| "TYPE_FLOAT"| "TYPE_INT64"| "TYPE_UINT64"| "TYPE_INT32"| "TYPE_FIXED64"| "TYPE_FIXED32"| "TYPE_BOOL"| "TYPE_STRING"| "TYPE_GROUP"| "TYPE_MESSAGE"| "TYPE_BYTES"| "TYPE_UINT32"| "TYPE_ENUM"| "TYPE_SFIXED32"| "TYPE_SFIXED64"| "TYPE_SINT32"| "TYPE_SINT64";
- /**
- * 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 };
+ /** Label enum. */
+ type Label =
+ "LABEL_OPTIONAL"| "LABEL_REPEATED"| "LABEL_REQUIRED";
+ }
- /**
- * Converts this BatchWriteRequest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
- /**
- * 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;
- }
+ /** OneofDescriptorProto name */
+ name?: (string|null);
- /** Properties of a BatchWriteResponse. */
- interface IBatchWriteResponse {
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
- /** BatchWriteResponse writeResults */
- writeResults?: (google.firestore.v1.IWriteResult[]|null);
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
- /** BatchWriteResponse status */
- status?: (google.rpc.IStatus[]|null);
- }
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
- /** Represents a BatchWriteResponse. */
- class BatchWriteResponse implements IBatchWriteResponse {
+ /** OneofDescriptorProto name. */
+ public name: string;
- /**
- * Constructs a new BatchWriteResponse.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IBatchWriteResponse);
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
- /** BatchWriteResponse writeResults. */
- public writeResults: google.firestore.v1.IWriteResult[];
+ /**
+ * 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;
- /** BatchWriteResponse status. */
- public status: google.rpc.IStatus[];
+ /**
+ * 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 };
- /**
- * 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;
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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 };
+ /**
+ * 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;
+ }
- /**
- * Converts this BatchWriteResponse to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
- /**
- * 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;
- }
+ /** EnumDescriptorProto name */
+ name?: (string|null);
- /** Properties of a StructuredQuery. */
- interface IStructuredQuery {
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
- /** StructuredQuery select */
- select?: (google.firestore.v1.StructuredQuery.IProjection|null);
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
- /** StructuredQuery from */
- from?: (google.firestore.v1.StructuredQuery.ICollectionSelector[]|null);
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
- /** StructuredQuery where */
- where?: (google.firestore.v1.StructuredQuery.IFilter|null);
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
- /** StructuredQuery orderBy */
- orderBy?: (google.firestore.v1.StructuredQuery.IOrder[]|null);
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
- /** StructuredQuery startAt */
- startAt?: (google.firestore.v1.ICursor|null);
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
- /** StructuredQuery endAt */
- endAt?: (google.firestore.v1.ICursor|null);
+ /** EnumDescriptorProto name. */
+ public name: string;
- /** StructuredQuery offset */
- offset?: (number|null);
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
- /** StructuredQuery limit */
- limit?: (google.protobuf.IInt32Value|null);
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
- /** StructuredQuery findNearest */
- findNearest?: (google.firestore.v1.StructuredQuery.IFindNearest|null);
- }
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
- /** Represents a StructuredQuery. */
- class StructuredQuery implements IStructuredQuery {
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
- /**
- * Constructs a new StructuredQuery.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IStructuredQuery);
+ /**
+ * 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;
- /** StructuredQuery select. */
- public select?: (google.firestore.v1.StructuredQuery.IProjection|null);
+ /**
+ * 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;
+ }
- /** StructuredQuery from. */
- public from: google.firestore.v1.StructuredQuery.ICollectionSelector[];
+ namespace EnumDescriptorProto {
- /** StructuredQuery where. */
- public where?: (google.firestore.v1.StructuredQuery.IFilter|null);
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
- /** StructuredQuery orderBy. */
- public orderBy: google.firestore.v1.StructuredQuery.IOrder[];
+ /** EnumReservedRange start */
+ start?: (number|null);
- /** StructuredQuery startAt. */
- public startAt?: (google.firestore.v1.ICursor|null);
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
- /** StructuredQuery endAt. */
- public endAt?: (google.firestore.v1.ICursor|null);
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
- /** StructuredQuery offset. */
- public offset: number;
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
- /** StructuredQuery limit. */
- public limit?: (google.protobuf.IInt32Value|null);
+ /** EnumReservedRange start. */
+ public start: number;
- /** StructuredQuery findNearest. */
- public findNearest?: (google.firestore.v1.StructuredQuery.IFindNearest|null);
+ /** EnumReservedRange end. */
+ public end: number;
/**
- * Creates a StructuredQuery message from a plain object. Also converts values to their respective internal types.
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns StructuredQuery
+ * @returns EnumReservedRange
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.StructuredQuery;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
/**
- * Creates a plain object from a StructuredQuery message. Also converts values to other types if specified.
- * @param message StructuredQuery
+ * 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.firestore.v1.StructuredQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this StructuredQuery to JSON.
+ * Converts this EnumReservedRange to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for StructuredQuery
+ * 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;
}
+ }
- namespace StructuredQuery {
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
- /** Properties of a CollectionSelector. */
- interface ICollectionSelector {
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
- /** CollectionSelector collectionId */
- collectionId?: (string|null);
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
- /** CollectionSelector allDescendants */
- allDescendants?: (boolean|null);
- }
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
- /** Represents a CollectionSelector. */
- class CollectionSelector implements ICollectionSelector {
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
- /**
- * Constructs a new CollectionSelector.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.ICollectionSelector);
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
- /** CollectionSelector collectionId. */
- public collectionId: string;
+ /** EnumValueDescriptorProto name. */
+ public name: string;
- /** CollectionSelector allDescendants. */
- public allDescendants: boolean;
+ /** EnumValueDescriptorProto number. */
+ public number: number;
- /**
- * 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;
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this CollectionSelector to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of a Filter. */
- interface IFilter {
+ /**
+ * 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;
+ }
- /** Filter compositeFilter */
- compositeFilter?: (google.firestore.v1.StructuredQuery.ICompositeFilter|null);
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
- /** Filter fieldFilter */
- fieldFilter?: (google.firestore.v1.StructuredQuery.IFieldFilter|null);
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
- /** Filter unaryFilter */
- unaryFilter?: (google.firestore.v1.StructuredQuery.IUnaryFilter|null);
- }
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
- /** Represents a Filter. */
- class Filter implements IFilter {
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
- /**
- * Constructs a new Filter.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.IFilter);
+ /** 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 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;
- /** Filter compositeFilter. */
- public compositeFilter?: (google.firestore.v1.StructuredQuery.ICompositeFilter|null);
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
- /** Filter fieldFilter. */
- public fieldFilter?: (google.firestore.v1.StructuredQuery.IFieldFilter|null);
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
- /** Filter unaryFilter. */
- public unaryFilter?: (google.firestore.v1.StructuredQuery.IUnaryFilter|null);
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
- /** Filter filterType. */
- public filterType?: ("compositeFilter"|"fieldFilter"|"unaryFilter");
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
- /**
- * 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 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 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 };
+ /**
+ * 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 Filter to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this MethodDescriptorProto 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;
- }
+ /**
+ * 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 CompositeFilter. */
- interface ICompositeFilter {
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
- /** CompositeFilter op */
- op?: (google.firestore.v1.StructuredQuery.CompositeFilter.Operator|null);
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
- /** CompositeFilter filters */
- filters?: (google.firestore.v1.StructuredQuery.IFilter[]|null);
- }
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
- /** Represents a CompositeFilter. */
- class CompositeFilter implements ICompositeFilter {
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
- /**
- * Constructs a new CompositeFilter.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.ICompositeFilter);
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
- /** CompositeFilter op. */
- public op: google.firestore.v1.StructuredQuery.CompositeFilter.Operator;
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
- /** CompositeFilter filters. */
- public filters: google.firestore.v1.StructuredQuery.IFilter[];
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|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;
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
- /**
- * 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 };
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
- /**
- * Converts this CompositeFilter to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
- /**
- * 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;
- }
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
- namespace CompositeFilter {
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
- /** Operator enum. */
- type Operator =
- "OPERATOR_UNSPECIFIED"| "AND"| "OR";
- }
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
- /** Properties of a FieldFilter. */
- interface IFieldFilter {
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
- /** FieldFilter field */
- field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
- /** FieldFilter op */
- op?: (google.firestore.v1.StructuredQuery.FieldFilter.Operator|null);
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
- /** FieldFilter value */
- value?: (google.firestore.v1.IValue|null);
- }
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
- /** Represents a FieldFilter. */
- class FieldFilter implements IFieldFilter {
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
- /**
- * Constructs a new FieldFilter.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.IFieldFilter);
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
- /** FieldFilter field. */
- public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
- /** FieldFilter op. */
- public op: google.firestore.v1.StructuredQuery.FieldFilter.Operator;
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /** FieldFilter value. */
- public value?: (google.firestore.v1.IValue|null);
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|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;
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
- /**
- * 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 };
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
- /**
- * Converts this FieldFilter to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
- /**
- * 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;
- }
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
- namespace FieldFilter {
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
- /** Operator enum. */
- type Operator =
- "OPERATOR_UNSPECIFIED"| "LESS_THAN"| "LESS_THAN_OR_EQUAL"| "GREATER_THAN"| "GREATER_THAN_OR_EQUAL"| "EQUAL"| "NOT_EQUAL"| "ARRAY_CONTAINS"| "IN"| "ARRAY_CONTAINS_ANY"| "NOT_IN";
- }
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
- /** Properties of an UnaryFilter. */
- interface IUnaryFilter {
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
- /** UnaryFilter op */
- op?: (google.firestore.v1.StructuredQuery.UnaryFilter.Operator|null);
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
- /** UnaryFilter field */
- field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- }
+ /** FileOptions optimizeFor. */
+ public optimizeFor: google.protobuf.FileOptions.OptimizeMode;
- /** Represents an UnaryFilter. */
- class UnaryFilter implements IUnaryFilter {
+ /** FileOptions goPackage. */
+ public goPackage: string;
- /**
- * Constructs a new UnaryFilter.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.IUnaryFilter);
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
- /** UnaryFilter op. */
- public op: google.firestore.v1.StructuredQuery.UnaryFilter.Operator;
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
- /** UnaryFilter field. */
- public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
- /** UnaryFilter operandType. */
- public operandType?: "field";
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
- /**
- * 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;
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
- /**
- * 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 };
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
- /**
- * Converts this UnaryFilter to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
- /**
- * 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;
- }
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
- namespace UnaryFilter {
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
- /** Operator enum. */
- type Operator =
- "OPERATOR_UNSPECIFIED"| "IS_NAN"| "IS_NULL"| "IS_NOT_NAN"| "IS_NOT_NULL";
- }
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
- /** Properties of an Order. */
- interface IOrder {
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
- /** Order field */
- field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** Order direction */
- direction?: (google.firestore.v1.StructuredQuery.Direction|null);
- }
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /** Represents an Order. */
- class Order implements IOrder {
+ /**
+ * 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;
- /**
- * Constructs a new Order.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.IOrder);
+ /**
+ * 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 };
- /** Order field. */
- public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Order direction. */
- public direction: google.firestore.v1.StructuredQuery.Direction;
+ /**
+ * 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;
+ }
- /**
- * 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;
+ namespace FileOptions {
- /**
- * 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 };
+ /** OptimizeMode enum. */
+ type OptimizeMode =
+ "SPEED"| "CODE_SIZE"| "LITE_RUNTIME";
+ }
- /**
- * Converts this Order to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
- /**
- * 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;
- }
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
- /** Direction enum. */
- type Direction =
- "DIRECTION_UNSPECIFIED"| "ASCENDING"| "DESCENDING";
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
- /** Properties of a FieldReference. */
- interface IFieldReference {
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
- /** FieldReference fieldPath */
- fieldPath?: (string|null);
- }
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
- /** Represents a FieldReference. */
- class FieldReference implements IFieldReference {
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
- /**
- * Constructs a new FieldReference.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.IFieldReference);
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /** FieldReference fieldPath. */
- public fieldPath: string;
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|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;
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
- /**
- * 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 };
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
- /**
- * Converts this FieldReference to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
- /**
- * 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;
- }
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
- /** Properties of a Projection. */
- interface IProjection {
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
- /** Projection fields */
- fields?: (google.firestore.v1.StructuredQuery.IFieldReference[]|null);
- }
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
- /** Represents a Projection. */
- class Projection implements IProjection {
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
- /**
- * Constructs a new Projection.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.IProjection);
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
- /** Projection fields. */
- public fields: google.firestore.v1.StructuredQuery.IFieldReference[];
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|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;
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this Projection to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of a FindNearest. */
- interface IFindNearest {
+ /**
+ * 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;
+ }
- /** FindNearest vectorField */
- vectorField?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
- /** FindNearest queryVector */
- queryVector?: (google.firestore.v1.IValue|null);
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|null);
- /** FindNearest distanceMeasure */
- distanceMeasure?: (google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure|null);
+ /** FieldOptions packed */
+ packed?: (boolean|null);
- /** FindNearest limit */
- limit?: (google.protobuf.IInt32Value|null);
- }
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|null);
- /** Represents a FindNearest. */
- class FindNearest implements IFindNearest {
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
- /**
- * Constructs a new FindNearest.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredQuery.IFindNearest);
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
- /** FindNearest vectorField. */
- public vectorField?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
- /** FindNearest queryVector. */
- public queryVector?: (google.firestore.v1.IValue|null);
+ /** FieldOptions weak */
+ weak?: (boolean|null);
- /** FindNearest distanceMeasure. */
- public distanceMeasure: google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure;
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
- /** FindNearest limit. */
- public limit?: (google.protobuf.IInt32Value|null);
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|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;
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
- /**
- * 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 };
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
- /**
- * Converts this FindNearest to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /**
- * 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;
- }
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- namespace FindNearest {
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
- /** DistanceMeasure enum. */
- type DistanceMeasure =
- "DISTANCE_MEASURE_UNSPECIFIED"| "EUCLIDEAN"| "COSINE"| "DOT_PRODUCT";
- }
- }
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
- /** Properties of a StructuredAggregationQuery. */
- interface IStructuredAggregationQuery {
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
- /** StructuredAggregationQuery structuredQuery */
- structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
- /** StructuredAggregationQuery aggregations */
- aggregations?: (google.firestore.v1.StructuredAggregationQuery.IAggregation[]|null);
- }
+ /** FieldOptions ctype. */
+ public ctype: google.protobuf.FieldOptions.CType;
- /** Represents a StructuredAggregationQuery. */
- class StructuredAggregationQuery implements IStructuredAggregationQuery {
+ /** FieldOptions packed. */
+ public packed: boolean;
- /**
- * Constructs a new StructuredAggregationQuery.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IStructuredAggregationQuery);
+ /** FieldOptions jstype. */
+ public jstype: google.protobuf.FieldOptions.JSType;
- /** StructuredAggregationQuery structuredQuery. */
- public structuredQuery?: (google.firestore.v1.IStructuredQuery|null);
+ /** FieldOptions lazy. */
+ public lazy: boolean;
- /** StructuredAggregationQuery aggregations. */
- public aggregations: google.firestore.v1.StructuredAggregationQuery.IAggregation[];
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
- /** StructuredAggregationQuery queryType. */
- public queryType?: "structuredQuery";
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
- /**
- * 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;
+ /** FieldOptions weak. */
+ public weak: boolean;
- /**
- * 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 };
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
- /**
- * Converts this StructuredAggregationQuery to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FieldOptions retention. */
+ public retention: google.protobuf.FieldOptions.OptionRetention;
- /**
- * 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;
- }
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
- namespace StructuredAggregationQuery {
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
- /** Properties of an Aggregation. */
- interface IAggregation {
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** Aggregation count */
- count?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount|null);
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /** Aggregation sum */
- sum?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum|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;
- /** Aggregation avg */
- avg?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg|null);
+ /**
+ * 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 };
- /** Aggregation alias */
- alias?: (string|null);
- }
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Represents an Aggregation. */
- class Aggregation implements IAggregation {
+ /**
+ * 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;
+ }
- /**
- * Constructs a new Aggregation.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredAggregationQuery.IAggregation);
+ namespace FieldOptions {
- /** Aggregation count. */
- public count?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount|null);
+ /** CType enum. */
+ type CType =
+ "STRING"| "CORD"| "STRING_PIECE";
- /** Aggregation sum. */
- public sum?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum|null);
+ /** JSType enum. */
+ type JSType =
+ "JS_NORMAL"| "JS_STRING"| "JS_NUMBER";
- /** Aggregation avg. */
- public avg?: (google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg|null);
+ /** OptionRetention enum. */
+ type OptionRetention =
+ "RETENTION_UNKNOWN"| "RETENTION_RUNTIME"| "RETENTION_SOURCE";
- /** Aggregation alias. */
- public alias: string;
+ /** OptionTargetType enum. */
+ type OptionTargetType =
+ "TARGET_TYPE_UNKNOWN"| "TARGET_TYPE_FILE"| "TARGET_TYPE_EXTENSION_RANGE"| "TARGET_TYPE_MESSAGE"| "TARGET_TYPE_FIELD"| "TARGET_TYPE_ONEOF"| "TARGET_TYPE_ENUM"| "TARGET_TYPE_ENUM_ENTRY"| "TARGET_TYPE_SERVICE"| "TARGET_TYPE_METHOD";
- /** Aggregation operator. */
- public operator?: ("count"|"sum"|"avg");
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
- /**
- * 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;
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|null);
- /**
- * 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 };
+ /** EditionDefault value */
+ value?: (string|null);
+ }
- /**
- * Converts this Aggregation to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
- /**
- * 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;
- }
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
- namespace Aggregation {
+ /** EditionDefault edition. */
+ public edition: google.protobuf.Edition;
- /** Properties of a Count. */
- interface ICount {
+ /** EditionDefault value. */
+ public value: string;
- /** Count upTo */
- upTo?: (google.protobuf.IInt64Value|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;
- /** Represents a Count. */
- class Count implements ICount {
+ /**
+ * 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 };
- /**
- * Constructs a new Count.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ICount);
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Count upTo. */
- public upTo?: (google.protobuf.IInt64Value|null);
+ /**
+ * 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;
+ }
+ }
- /**
- * 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;
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
- /**
- * 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 };
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /**
- * Converts this Count to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
- /**
- * 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;
- }
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
- /** Properties of a Sum. */
- interface ISum {
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
- /** Sum field */
- field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- }
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** Represents a Sum. */
- class Sum implements ISum {
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /**
- * Constructs a new Sum.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.ISum);
+ /**
+ * 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;
- /** Sum field. */
- public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /**
+ * 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 };
- /**
- * 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;
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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 };
+ /**
+ * 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;
+ }
- /**
- * Converts this Sum to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
- /**
- * 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;
- }
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
- /** Properties of an Avg. */
- interface IAvg {
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
- /** Avg field */
- field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
- }
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
- /** Represents an Avg. */
- class Avg implements IAvg {
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /**
- * Constructs a new Avg.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.StructuredAggregationQuery.Aggregation.IAvg);
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
- /** Avg field. */
- public field?: (google.firestore.v1.StructuredQuery.IFieldReference|null);
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
- /**
- * 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;
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
- /**
- * 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 };
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
- /**
- * Converts this Avg to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
- /**
- * 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;
- }
- }
- }
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
- /** Properties of a Cursor. */
- interface ICursor {
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** Cursor values */
- values?: (google.firestore.v1.IValue[]|null);
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /** Cursor before */
- before?: (boolean|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;
- /** Represents a Cursor. */
- class Cursor implements ICursor {
+ /**
+ * 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 };
- /**
- * Constructs a new Cursor.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.ICursor);
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Cursor values. */
- public values: google.firestore.v1.IValue[];
+ /**
+ * 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;
+ }
- /** Cursor before. */
- public before: boolean;
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
- /**
- * 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;
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
- /**
- * 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 };
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /**
- * Converts this Cursor to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
- /**
- * 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;
- }
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
- /** Properties of an ExplainOptions. */
- interface IExplainOptions {
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
- /** ExplainOptions analyze */
- analyze?: (boolean|null);
- }
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
- /** Represents an ExplainOptions. */
- class ExplainOptions implements IExplainOptions {
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
- /**
- * Constructs a new ExplainOptions.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IExplainOptions);
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** ExplainOptions analyze. */
- public analyze: boolean;
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
- /**
- * 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;
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this ExplainOptions to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of an ExplainMetrics. */
- interface IExplainMetrics {
+ /**
+ * 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;
+ }
- /** ExplainMetrics planSummary */
- planSummary?: (google.firestore.v1.IPlanSummary|null);
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
- /** ExplainMetrics executionStats */
- executionStats?: (google.firestore.v1.IExecutionStats|null);
- }
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /** Represents an ExplainMetrics. */
- class ExplainMetrics implements IExplainMetrics {
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
- /**
- * Constructs a new ExplainMetrics.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IExplainMetrics);
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- /** ExplainMetrics planSummary. */
- public planSummary?: (google.firestore.v1.IPlanSummary|null);
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
- /** ExplainMetrics executionStats. */
- public executionStats?: (google.firestore.v1.IExecutionStats|null);
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (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;
+ /** ServiceOptions .google.api.apiVersion */
+ ".google.api.apiVersion"?: (string|null);
+ }
- /**
- * 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 };
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
- /**
- * Converts this ExplainMetrics to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
- /**
- * 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;
- }
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** Properties of a PlanSummary. */
- interface IPlanSummary {
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
- /** PlanSummary indexesUsed */
- indexesUsed?: (google.protobuf.IStruct[]|null);
- }
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * 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 };
- /** Represents a PlanSummary. */
- class PlanSummary implements IPlanSummary {
+ /**
+ * 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;
+ }
- /**
- * Constructs a new PlanSummary.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IPlanSummary);
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
- /** PlanSummary indexesUsed. */
- public indexesUsed: google.protobuf.IStruct[];
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|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;
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null);
- /**
- * 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 };
+ /** MethodOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
- /**
- * Converts this PlanSummary to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
- /**
- * 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;
- }
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
- /** Properties of an ExecutionStats. */
- interface IExecutionStats {
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
- /** ExecutionStats resultsReturned */
- resultsReturned?: (number|string|null);
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
- /** ExecutionStats executionDuration */
- executionDuration?: (google.protobuf.IDuration|null);
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
- /** ExecutionStats readOperations */
- readOperations?: (number|string|null);
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
- /** ExecutionStats debugStats */
- debugStats?: (google.protobuf.IStruct|null);
- }
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
- /** Represents an ExecutionStats. */
- class ExecutionStats implements IExecutionStats {
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel;
- /**
- * Constructs a new ExecutionStats.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IExecutionStats);
+ /** MethodOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
- /** ExecutionStats resultsReturned. */
- public resultsReturned: (number|string);
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /** ExecutionStats executionDuration. */
- public executionDuration?: (google.protobuf.IDuration|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;
- /** ExecutionStats readOperations. */
- public readOperations: (number|string);
+ /**
+ * 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 };
- /** ExecutionStats debugStats. */
- public debugStats?: (google.protobuf.IStruct|null);
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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;
+ /**
+ * 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;
+ }
- /**
- * 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 };
+ namespace MethodOptions {
- /**
- * Converts this ExecutionStats to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** IdempotencyLevel enum. */
+ type IdempotencyLevel =
+ "IDEMPOTENCY_UNKNOWN"| "NO_SIDE_EFFECTS"| "IDEMPOTENT";
+ }
- /**
- * 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 an UninterpretedOption. */
+ interface IUninterpretedOption {
- /** Properties of a Write. */
- interface IWrite {
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
- /** Write update */
- update?: (google.firestore.v1.IDocument|null);
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
- /** Write delete */
- "delete"?: (string|null);
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|string|null);
- /** Write transform */
- transform?: (google.firestore.v1.IDocumentTransform|null);
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|string|null);
- /** Write updateMask */
- updateMask?: (google.firestore.v1.IDocumentMask|null);
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
- /** Write updateTransforms */
- updateTransforms?: (google.firestore.v1.DocumentTransform.IFieldTransform[]|null);
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|null);
- /** Write currentDocument */
- currentDocument?: (google.firestore.v1.IPrecondition|null);
- }
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
- /** Represents a Write. */
- class Write implements IWrite {
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
- /**
- * Constructs a new Write.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IWrite);
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
- /** Write update. */
- public update?: (google.firestore.v1.IDocument|null);
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
- /** Write delete. */
- public delete?: (string|null);
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
- /** Write transform. */
- public transform?: (google.firestore.v1.IDocumentTransform|null);
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|string);
- /** Write updateMask. */
- public updateMask?: (google.firestore.v1.IDocumentMask|null);
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|string);
- /** Write updateTransforms. */
- public updateTransforms: google.firestore.v1.DocumentTransform.IFieldTransform[];
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
- /** Write currentDocument. */
- public currentDocument?: (google.firestore.v1.IPrecondition|null);
+ /** UninterpretedOption stringValue. */
+ public stringValue: Uint8Array;
- /** Write operation. */
- public operation?: ("update"|"delete"|"transform");
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
- /**
- * 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 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 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 };
+ /**
+ * 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 Write to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * Converts this UninterpretedOption 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;
- }
+ /**
+ * 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;
+ }
- /** Properties of a DocumentTransform. */
- interface IDocumentTransform {
+ namespace UninterpretedOption {
- /** DocumentTransform document */
- document?: (string|null);
+ /** Properties of a NamePart. */
+ interface INamePart {
- /** DocumentTransform fieldTransforms */
- fieldTransforms?: (google.firestore.v1.DocumentTransform.IFieldTransform[]|null);
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
}
- /** Represents a DocumentTransform. */
- class DocumentTransform implements IDocumentTransform {
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
/**
- * Constructs a new DocumentTransform.
+ * Constructs a new NamePart.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IDocumentTransform);
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
- /** DocumentTransform document. */
- public document: string;
+ /** NamePart namePart. */
+ public namePart: string;
- /** DocumentTransform fieldTransforms. */
- public fieldTransforms: google.firestore.v1.DocumentTransform.IFieldTransform[];
+ /** NamePart isExtension. */
+ public isExtension: boolean;
/**
- * Creates a DocumentTransform message from a plain object. Also converts values to their respective internal types.
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns DocumentTransform
+ * @returns NamePart
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentTransform;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
/**
- * Creates a plain object from a DocumentTransform message. Also converts values to other types if specified.
- * @param message DocumentTransform
+ * 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.firestore.v1.DocumentTransform, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this DocumentTransform to JSON.
+ * Converts this NamePart to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for DocumentTransform
+ * 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;
}
+ }
- namespace DocumentTransform {
-
- /** Properties of a FieldTransform. */
- interface IFieldTransform {
-
- /** FieldTransform fieldPath */
- fieldPath?: (string|null);
-
- /** FieldTransform setToServerValue */
- setToServerValue?: (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;
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
- /** FieldTransform setToServerValue. */
- public setToServerValue?: (google.firestore.v1.DocumentTransform.FieldTransform.ServerValue|null);
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|null);
- /** FieldTransform increment. */
- public increment?: (google.firestore.v1.IValue|null);
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|null);
- /** FieldTransform maximum. */
- public maximum?: (google.firestore.v1.IValue|null);
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
- /** FieldTransform minimum. */
- public minimum?: (google.firestore.v1.IValue|null);
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|null);
- /** FieldTransform appendMissingElements. */
- public appendMissingElements?: (google.firestore.v1.IArrayValue|null);
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|null);
- /** FieldTransform removeAllFromArray. */
- public removeAllFromArray?: (google.firestore.v1.IArrayValue|null);
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|null);
+ }
- /** FieldTransform transformType. */
- public transformType?: ("setToServerValue"|"increment"|"maximum"|"minimum"|"appendMissingElements"|"removeAllFromArray");
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
- /**
- * 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;
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
- /**
- * 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 };
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: google.protobuf.FeatureSet.FieldPresence;
- /**
- * Converts this FieldTransform to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** FeatureSet enumType. */
+ public enumType: google.protobuf.FeatureSet.EnumType;
- /**
- * 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;
- }
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: google.protobuf.FeatureSet.RepeatedFieldEncoding;
- namespace FieldTransform {
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: google.protobuf.FeatureSet.Utf8Validation;
- /** ServerValue enum. */
- type ServerValue =
- "SERVER_VALUE_UNSPECIFIED"| "REQUEST_TIME";
- }
- }
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: google.protobuf.FeatureSet.MessageEncoding;
- /** Properties of a WriteResult. */
- interface IWriteResult {
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: google.protobuf.FeatureSet.JsonFormat;
- /** WriteResult updateTime */
- updateTime?: (google.protobuf.ITimestamp|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;
- /** WriteResult transformResults */
- transformResults?: (google.firestore.v1.IValue[]|null);
- }
+ /**
+ * 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 };
- /** Represents a WriteResult. */
- class WriteResult implements IWriteResult {
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * Constructs a new WriteResult.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IWriteResult);
+ /**
+ * 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;
+ }
- /** WriteResult updateTime. */
- public updateTime?: (google.protobuf.ITimestamp|null);
+ namespace FeatureSet {
- /** WriteResult transformResults. */
- public transformResults: google.firestore.v1.IValue[];
+ /** FieldPresence enum. */
+ type FieldPresence =
+ "FIELD_PRESENCE_UNKNOWN"| "EXPLICIT"| "IMPLICIT"| "LEGACY_REQUIRED";
- /**
- * 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;
+ /** EnumType enum. */
+ type EnumType =
+ "ENUM_TYPE_UNKNOWN"| "OPEN"| "CLOSED";
- /**
- * 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 };
+ /** RepeatedFieldEncoding enum. */
+ type RepeatedFieldEncoding =
+ "REPEATED_FIELD_ENCODING_UNKNOWN"| "PACKED"| "EXPANDED";
- /**
- * Converts this WriteResult to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Utf8Validation enum. */
+ type Utf8Validation =
+ "UTF8_VALIDATION_UNKNOWN"| "VERIFY"| "NONE";
- /**
- * 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;
- }
+ /** MessageEncoding enum. */
+ type MessageEncoding =
+ "MESSAGE_ENCODING_UNKNOWN"| "LENGTH_PREFIXED"| "DELIMITED";
- /** Properties of a DocumentChange. */
- interface IDocumentChange {
+ /** JsonFormat enum. */
+ type JsonFormat =
+ "JSON_FORMAT_UNKNOWN"| "ALLOW"| "LEGACY_BEST_EFFORT";
+ }
- /** DocumentChange document */
- document?: (google.firestore.v1.IDocument|null);
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
- /** DocumentChange targetIds */
- targetIds?: (number[]|null);
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
- /** DocumentChange removedTargetIds */
- removedTargetIds?: (number[]|null);
- }
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|null);
- /** Represents a DocumentChange. */
- class DocumentChange implements IDocumentChange {
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|null);
+ }
- /**
- * Constructs a new DocumentChange.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IDocumentChange);
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
- /** DocumentChange document. */
- public document?: (google.firestore.v1.IDocument|null);
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
- /** DocumentChange targetIds. */
- public targetIds: number[];
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
- /** DocumentChange removedTargetIds. */
- public removedTargetIds: number[];
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: google.protobuf.Edition;
- /**
- * 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;
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: google.protobuf.Edition;
- /**
- * 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 };
+ /**
+ * 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;
- /**
- * Converts this DocumentChange to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /**
+ * 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 };
- /**
- * 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;
- }
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Properties of a DocumentDelete. */
- interface IDocumentDelete {
+ /**
+ * 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;
+ }
- /** DocumentDelete document */
- document?: (string|null);
+ namespace FeatureSetDefaults {
- /** DocumentDelete removedTargetIds */
- removedTargetIds?: (number[]|null);
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
- /** DocumentDelete readTime */
- readTime?: (google.protobuf.ITimestamp|null);
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault features */
+ features?: (google.protobuf.IFeatureSet|null);
}
- /** Represents a DocumentDelete. */
- class DocumentDelete implements IDocumentDelete {
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
/**
- * Constructs a new DocumentDelete.
+ * Constructs a new FeatureSetEditionDefault.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IDocumentDelete);
-
- /** DocumentDelete document. */
- public document: string;
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
- /** DocumentDelete removedTargetIds. */
- public removedTargetIds: number[];
+ /** FeatureSetEditionDefault edition. */
+ public edition: google.protobuf.Edition;
- /** DocumentDelete readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /** FeatureSetEditionDefault features. */
+ public features?: (google.protobuf.IFeatureSet|null);
/**
- * Creates a DocumentDelete message from a plain object. Also converts values to their respective internal types.
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns DocumentDelete
+ * @returns FeatureSetEditionDefault
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.DocumentDelete;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
/**
- * Creates a plain object from a DocumentDelete message. Also converts values to other types if specified.
- * @param message DocumentDelete
+ * 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.firestore.v1.DocumentDelete, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this DocumentDelete to JSON.
+ * Converts this FeatureSetEditionDefault to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for DocumentDelete
+ * 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 DocumentRemove. */
- interface IDocumentRemove {
-
- /** DocumentRemove document */
- document?: (string|null);
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
- /** DocumentRemove removedTargetIds */
- removedTargetIds?: (number[]|null);
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
- /** DocumentRemove readTime */
- readTime?: (google.protobuf.ITimestamp|null);
- }
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
- /** Represents a DocumentRemove. */
- class DocumentRemove implements IDocumentRemove {
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
- /**
- * Constructs a new DocumentRemove.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.firestore.v1.IDocumentRemove);
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
- /** DocumentRemove document. */
- public document: string;
+ /**
+ * 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;
- /** DocumentRemove removedTargetIds. */
- public removedTargetIds: number[];
+ /**
+ * 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 };
- /** DocumentRemove readTime. */
- public readTime?: (google.protobuf.ITimestamp|null);
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /**
- * 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;
+ /**
+ * 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;
+ }
- /**
- * 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 };
+ namespace SourceCodeInfo {
- /**
- * Converts this DocumentRemove to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
+ /** Properties of a Location. */
+ interface ILocation {
- /**
- * 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;
- }
+ /** Location path */
+ path?: (number[]|null);
- /** Properties of an ExistenceFilter. */
- interface IExistenceFilter {
+ /** Location span */
+ span?: (number[]|null);
- /** ExistenceFilter targetId */
- targetId?: (number|null);
+ /** Location leadingComments */
+ leadingComments?: (string|null);
- /** ExistenceFilter count */
- count?: (number|null);
+ /** Location trailingComments */
+ trailingComments?: (string|null);
- /** ExistenceFilter unchangedNames */
- unchangedNames?: (google.firestore.v1.IBloomFilter|null);
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
}
- /** Represents an ExistenceFilter. */
- class ExistenceFilter implements IExistenceFilter {
+ /** Represents a Location. */
+ class Location implements ILocation {
/**
- * Constructs a new ExistenceFilter.
+ * Constructs a new Location.
* @param [properties] Properties to set
*/
- constructor(properties?: google.firestore.v1.IExistenceFilter);
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
- /** ExistenceFilter targetId. */
- public targetId: number;
+ /** Location path. */
+ public path: number[];
- /** ExistenceFilter count. */
- public count: number;
+ /** Location span. */
+ public span: number[];
- /** ExistenceFilter unchangedNames. */
- public unchangedNames?: (google.firestore.v1.IBloomFilter|null);
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
/**
- * Creates an ExistenceFilter message from a plain object. Also converts values to their respective internal types.
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ExistenceFilter
+ * @returns Location
*/
- public static fromObject(object: { [k: string]: any }): google.firestore.v1.ExistenceFilter;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
/**
- * Creates a plain object from an ExistenceFilter message. Also converts values to other types if specified.
- * @param message ExistenceFilter
+ * 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.firestore.v1.ExistenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ExistenceFilter to JSON.
+ * Converts this Location to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ExistenceFilter
+ * 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;
}
}
- }
-
- /** Namespace type. */
- namespace type {
-
- /** Properties of a LatLng. */
- interface ILatLng {
- /** LatLng latitude */
- latitude?: (number|null);
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
- /** LatLng longitude */
- longitude?: (number|null);
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
}
- /** Represents a LatLng. */
- class LatLng implements ILatLng {
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
/**
- * Constructs a new LatLng.
+ * Constructs a new GeneratedCodeInfo.
* @param [properties] Properties to set
*/
- constructor(properties?: google.type.ILatLng);
-
- /** LatLng latitude. */
- public latitude: number;
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
- /** LatLng longitude. */
- public longitude: number;
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
/**
- * Creates a LatLng message from a plain object. Also converts values to their respective internal types.
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns LatLng
+ * @returns GeneratedCodeInfo
*/
- public static fromObject(object: { [k: string]: any }): google.type.LatLng;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
/**
- * Creates a plain object from a LatLng message. Also converts values to other types if specified.
- * @param message LatLng
+ * 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.type.LatLng, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this LatLng to JSON.
+ * Converts this GeneratedCodeInfo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for LatLng
+ * 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;
}
- /** DayOfWeek enum. */
- type DayOfWeek =
- "DAY_OF_WEEK_UNSPECIFIED"| "MONDAY"| "TUESDAY"| "WEDNESDAY"| "THURSDAY"| "FRIDAY"| "SATURDAY"| "SUNDAY";
- }
-
- /** Namespace api. */
- namespace api {
-
- /** 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 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;
- }
+ namespace GeneratedCodeInfo {
- /** Properties of a HttpRule. */
- interface IHttpRule {
+ /** Properties of an Annotation. */
+ interface IAnnotation {
- /** HttpRule selector */
- selector?: (string|null);
+ /** Annotation path */
+ path?: (number[]|null);
- /** HttpRule get */
- get?: (string|null);
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
- /** HttpRule put */
- put?: (string|null);
+ /** Annotation begin */
+ begin?: (number|null);
- /** HttpRule post */
- post?: (string|null);
+ /** Annotation end */
+ end?: (number|null);
- /** HttpRule delete */
- "delete"?: (string|null);
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
- /** HttpRule patch */
- patch?: (string|null);
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
- /** HttpRule custom */
- custom?: (google.api.ICustomHttpPattern|null);
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
- /** HttpRule body */
- body?: (string|null);
+ /** Annotation path. */
+ public path: number[];
- /** HttpRule responseBody */
- responseBody?: (string|null);
+ /** Annotation sourceFile. */
+ public sourceFile: string;
- /** HttpRule additionalBindings */
- additionalBindings?: (google.api.IHttpRule[]|null);
- }
+ /** Annotation begin. */
+ public begin: number;
- /** Represents a HttpRule. */
- class HttpRule implements IHttpRule {
+ /** Annotation end. */
+ public end: number;
- /**
- * Constructs a new HttpRule.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.api.IHttpRule);
+ /** Annotation semantic. */
+ public semantic: google.protobuf.GeneratedCodeInfo.Annotation.Semantic;
- /** HttpRule selector. */
- public selector: string;
+ /**
+ * 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;
- /** HttpRule get. */
- public get?: (string|null);
+ /**
+ * 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 };
- /** HttpRule put. */
- public put?: (string|null);
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** HttpRule post. */
- public post?: (string|null);
+ /**
+ * 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;
+ }
- /** HttpRule delete. */
- public delete?: (string|null);
+ namespace Annotation {
- /** HttpRule patch. */
- public patch?: (string|null);
+ /** Semantic enum. */
+ type Semantic =
+ "NONE"| "SET"| "ALIAS";
+ }
+ }
- /** HttpRule custom. */
- public custom?: (google.api.ICustomHttpPattern|null);
+ /** Properties of a Struct. */
+ interface IStruct {
- /** HttpRule body. */
- public body: string;
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ }
- /** HttpRule responseBody. */
- public responseBody: string;
+ /** Represents a Struct. */
+ class Struct implements IStruct {
- /** HttpRule additionalBindings. */
- public additionalBindings: google.api.IHttpRule[];
+ /**
+ * Constructs a new Struct.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStruct);
- /** HttpRule pattern. */
- public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
/**
- * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * Creates a Struct message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns HttpRule
+ * @returns Struct
*/
- public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
/**
- * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
- * @param message HttpRule
+ * 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.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this HttpRule to JSON.
+ * Converts this Struct to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for HttpRule
+ * 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 CustomHttpPattern. */
- interface ICustomHttpPattern {
+ /** Properties of a Value. */
+ interface IValue {
- /** CustomHttpPattern kind */
- kind?: (string|null);
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|null);
- /** CustomHttpPattern path */
- path?: (string|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 CustomHttpPattern. */
- class CustomHttpPattern implements ICustomHttpPattern {
+ /** Represents a Value. */
+ class Value implements IValue {
/**
- * Constructs a new CustomHttpPattern.
+ * Constructs a new Value.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.ICustomHttpPattern);
+ constructor(properties?: google.protobuf.IValue);
- /** CustomHttpPattern kind. */
- public kind: string;
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|null);
- /** CustomHttpPattern path. */
- public path: string;
+ /** 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns CustomHttpPattern
+ * @returns Value
*/
- public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
/**
- * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
- * @param message CustomHttpPattern
+ * 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.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this CustomHttpPattern to JSON.
+ * Converts this Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for CustomHttpPattern
+ * 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 a CommonLanguageSettings. */
- interface ICommonLanguageSettings {
+ /** NullValue enum. */
+ type NullValue =
+ "NULL_VALUE";
- /** CommonLanguageSettings referenceDocsUri */
- referenceDocsUri?: (string|null);
+ /** Properties of a ListValue. */
+ interface IListValue {
- /** CommonLanguageSettings destinations */
- destinations?: (google.api.ClientLibraryDestination[]|null);
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
}
- /** Represents a CommonLanguageSettings. */
- class CommonLanguageSettings implements ICommonLanguageSettings {
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
/**
- * Constructs a new CommonLanguageSettings.
+ * Constructs a new ListValue.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.ICommonLanguageSettings);
-
- /** CommonLanguageSettings referenceDocsUri. */
- public referenceDocsUri: string;
+ constructor(properties?: google.protobuf.IListValue);
- /** CommonLanguageSettings destinations. */
- public destinations: google.api.ClientLibraryDestination[];
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
/**
- * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns CommonLanguageSettings
+ * @returns ListValue
*/
- public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
/**
- * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
- * @param message CommonLanguageSettings
+ * 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.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this CommonLanguageSettings to JSON.
+ * Converts this ListValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for CommonLanguageSettings
+ * 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 ClientLibrarySettings. */
- interface IClientLibrarySettings {
-
- /** ClientLibrarySettings version */
- version?: (string|null);
-
- /** ClientLibrarySettings launchStage */
- launchStage?: (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);
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
- /** ClientLibrarySettings rubySettings */
- rubySettings?: (google.api.IRubySettings|null);
+ /** Timestamp seconds */
+ seconds?: (number|string|null);
- /** ClientLibrarySettings goSettings */
- goSettings?: (google.api.IGoSettings|null);
+ /** Timestamp nanos */
+ nanos?: (number|null);
}
- /** Represents a ClientLibrarySettings. */
- class ClientLibrarySettings implements IClientLibrarySettings {
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
/**
- * Constructs a new ClientLibrarySettings.
+ * Constructs a new Timestamp.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IClientLibrarySettings);
-
- /** ClientLibrarySettings version. */
- public version: string;
-
- /** ClientLibrarySettings launchStage. */
- public launchStage: 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);
+ constructor(properties?: google.protobuf.ITimestamp);
- /** ClientLibrarySettings rubySettings. */
- public rubySettings?: (google.api.IRubySettings|null);
+ /** Timestamp seconds. */
+ public seconds: (number|string);
- /** ClientLibrarySettings goSettings. */
- public goSettings?: (google.api.IGoSettings|null);
+ /** Timestamp nanos. */
+ public nanos: number;
/**
- * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ClientLibrarySettings
+ * @returns Timestamp
*/
- public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
/**
- * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
- * @param message ClientLibrarySettings
+ * 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.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ClientLibrarySettings to JSON.
+ * Converts this Timestamp to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ClientLibrarySettings
+ * 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 Publishing. */
- interface IPublishing {
+ /** Properties of a Duration. */
+ interface IDuration {
- /** Publishing methodSettings */
- methodSettings?: (google.api.IMethodSettings[]|null);
+ /** Duration seconds */
+ seconds?: (number|string|null);
- /** Publishing newIssueUri */
- newIssueUri?: (string|null);
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
- /** Publishing documentationUri */
- documentationUri?: (string|null);
+ /** Represents a Duration. */
+ class Duration implements IDuration {
- /** Publishing apiShortName */
- apiShortName?: (string|null);
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
- /** Publishing githubLabel */
- githubLabel?: (string|null);
+ /** Duration seconds. */
+ public seconds: (number|string);
- /** Publishing codeownerGithubTeams */
- codeownerGithubTeams?: (string[]|null);
+ /** Duration nanos. */
+ public nanos: number;
- /** Publishing docTagPrefix */
- docTagPrefix?: (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;
- /** Publishing organization */
- organization?: (google.api.ClientLibraryOrganization|null);
+ /**
+ * 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 };
- /** Publishing librarySettings */
- librarySettings?: (google.api.IClientLibrarySettings[]|null);
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Publishing protoReferenceDocumentationUri */
- protoReferenceDocumentationUri?: (string|null);
+ /**
+ * 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;
+ }
- /** Publishing restReferenceDocumentationUri */
- restReferenceDocumentationUri?: (string|null);
+ /** Properties of a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
}
- /** Represents a Publishing. */
- class Publishing implements IPublishing {
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
/**
- * Constructs a new Publishing.
+ * Constructs a new DoubleValue.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IPublishing);
-
- /** Publishing methodSettings. */
- public methodSettings: google.api.IMethodSettings[];
+ constructor(properties?: google.protobuf.IDoubleValue);
- /** Publishing newIssueUri. */
- public newIssueUri: string;
+ /** DoubleValue value. */
+ public value: number;
- /** Publishing documentationUri. */
- public documentationUri: string;
+ /**
+ * 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;
- /** Publishing apiShortName. */
- public apiShortName: string;
+ /**
+ * 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 };
- /** Publishing githubLabel. */
- public githubLabel: string;
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
- /** Publishing codeownerGithubTeams. */
- public codeownerGithubTeams: string[];
+ /**
+ * 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;
+ }
- /** Publishing docTagPrefix. */
- public docTagPrefix: string;
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
- /** Publishing organization. */
- public organization: google.api.ClientLibraryOrganization;
+ /** FloatValue value */
+ value?: (number|null);
+ }
- /** Publishing librarySettings. */
- public librarySettings: google.api.IClientLibrarySettings[];
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
- /** Publishing protoReferenceDocumentationUri. */
- public protoReferenceDocumentationUri: string;
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
- /** Publishing restReferenceDocumentationUri. */
- public restReferenceDocumentationUri: string;
+ /** FloatValue value. */
+ public value: number;
/**
- * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns Publishing
+ * @returns FloatValue
*/
- public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
/**
- * Creates a plain object from a Publishing message. Also converts values to other types if specified.
- * @param message Publishing
+ * 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.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this Publishing to JSON.
+ * Converts this FloatValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for Publishing
+ * 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 a JavaSettings. */
- interface IJavaSettings {
-
- /** JavaSettings libraryPackage */
- libraryPackage?: (string|null);
-
- /** JavaSettings serviceClassNames */
- serviceClassNames?: ({ [k: string]: string }|null);
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
- /** JavaSettings common */
- common?: (google.api.ICommonLanguageSettings|null);
+ /** Int64Value value */
+ value?: (number|string|null);
}
- /** Represents a JavaSettings. */
- class JavaSettings implements IJavaSettings {
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
/**
- * Constructs a new JavaSettings.
+ * Constructs a new Int64Value.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IJavaSettings);
-
- /** JavaSettings libraryPackage. */
- public libraryPackage: string;
-
- /** JavaSettings serviceClassNames. */
- public serviceClassNames: { [k: string]: string };
+ constructor(properties?: google.protobuf.IInt64Value);
- /** JavaSettings common. */
- public common?: (google.api.ICommonLanguageSettings|null);
+ /** Int64Value value. */
+ public value: (number|string);
/**
- * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns JavaSettings
+ * @returns Int64Value
*/
- public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
/**
- * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
- * @param message JavaSettings
+ * 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.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this JavaSettings to JSON.
+ * Converts this Int64Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for JavaSettings
+ * 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 CppSettings. */
- interface ICppSettings {
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
- /** CppSettings common */
- common?: (google.api.ICommonLanguageSettings|null);
+ /** UInt64Value value */
+ value?: (number|string|null);
}
- /** Represents a CppSettings. */
- class CppSettings implements ICppSettings {
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
/**
- * Constructs a new CppSettings.
+ * Constructs a new UInt64Value.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.ICppSettings);
+ constructor(properties?: google.protobuf.IUInt64Value);
- /** CppSettings common. */
- public common?: (google.api.ICommonLanguageSettings|null);
+ /** UInt64Value value. */
+ public value: (number|string);
/**
- * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns CppSettings
+ * @returns UInt64Value
*/
- public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
/**
- * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
- * @param message CppSettings
+ * 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.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this CppSettings to JSON.
+ * Converts this UInt64Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for CppSettings
+ * 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 a PhpSettings. */
- interface IPhpSettings {
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
- /** PhpSettings common */
- common?: (google.api.ICommonLanguageSettings|null);
+ /** Int32Value value */
+ value?: (number|null);
}
- /** Represents a PhpSettings. */
- class PhpSettings implements IPhpSettings {
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
/**
- * Constructs a new PhpSettings.
+ * Constructs a new Int32Value.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IPhpSettings);
+ constructor(properties?: google.protobuf.IInt32Value);
- /** PhpSettings common. */
- public common?: (google.api.ICommonLanguageSettings|null);
+ /** Int32Value value. */
+ public value: number;
/**
- * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns PhpSettings
+ * @returns Int32Value
*/
- public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
/**
- * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
- * @param message PhpSettings
+ * 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.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this PhpSettings to JSON.
+ * Converts this Int32Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for PhpSettings
+ * 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 PythonSettings. */
- interface IPythonSettings {
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
- /** PythonSettings common */
- common?: (google.api.ICommonLanguageSettings|null);
+ /** UInt32Value value */
+ value?: (number|null);
}
- /** Represents a PythonSettings. */
- class PythonSettings implements IPythonSettings {
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
/**
- * Constructs a new PythonSettings.
+ * Constructs a new UInt32Value.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IPythonSettings);
+ constructor(properties?: google.protobuf.IUInt32Value);
- /** PythonSettings common. */
- public common?: (google.api.ICommonLanguageSettings|null);
+ /** UInt32Value value. */
+ public value: number;
/**
- * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns PythonSettings
+ * @returns UInt32Value
*/
- public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
/**
- * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
- * @param message PythonSettings
+ * 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.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this PythonSettings to JSON.
+ * Converts this UInt32Value to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for PythonSettings
+ * 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 NodeSettings. */
- interface INodeSettings {
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
- /** NodeSettings common */
- common?: (google.api.ICommonLanguageSettings|null);
+ /** BoolValue value */
+ value?: (boolean|null);
}
- /** Represents a NodeSettings. */
- class NodeSettings implements INodeSettings {
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
/**
- * Constructs a new NodeSettings.
+ * Constructs a new BoolValue.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.INodeSettings);
+ constructor(properties?: google.protobuf.IBoolValue);
- /** NodeSettings common. */
- public common?: (google.api.ICommonLanguageSettings|null);
+ /** BoolValue value. */
+ public value: boolean;
/**
- * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns NodeSettings
+ * @returns BoolValue
*/
- public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
/**
- * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
- * @param message NodeSettings
+ * 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.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this NodeSettings to JSON.
+ * Converts this BoolValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for NodeSettings
+ * 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 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);
+ /** Properties of a StringValue. */
+ interface IStringValue {
- /** DotnetSettings handwrittenSignatures */
- handwrittenSignatures?: (string[]|null);
+ /** StringValue value */
+ value?: (string|null);
}
- /** Represents a DotnetSettings. */
- class DotnetSettings implements IDotnetSettings {
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
/**
- * Constructs a new DotnetSettings.
+ * Constructs a new StringValue.
* @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[];
+ constructor(properties?: google.protobuf.IStringValue);
- /** DotnetSettings handwrittenSignatures. */
- public handwrittenSignatures: string[];
+ /** StringValue value. */
+ public value: string;
/**
- * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns DotnetSettings
+ * @returns StringValue
*/
- public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
/**
- * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
- * @param message DotnetSettings
+ * 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.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this DotnetSettings to JSON.
+ * Converts this StringValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for DotnetSettings
+ * 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 RubySettings. */
- interface IRubySettings {
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
- /** RubySettings common */
- common?: (google.api.ICommonLanguageSettings|null);
+ /** BytesValue value */
+ value?: (Uint8Array|null);
}
- /** Represents a RubySettings. */
- class RubySettings implements IRubySettings {
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
/**
- * Constructs a new RubySettings.
+ * Constructs a new BytesValue.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IRubySettings);
+ constructor(properties?: google.protobuf.IBytesValue);
- /** RubySettings common. */
- public common?: (google.api.ICommonLanguageSettings|null);
+ /** BytesValue value. */
+ public value: Uint8Array;
/**
- * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns RubySettings
+ * @returns BytesValue
*/
- public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
/**
- * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
- * @param message RubySettings
+ * 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.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this RubySettings to JSON.
+ * Converts this BytesValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for RubySettings
+ * 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;
}
- /** Properties of a GoSettings. */
- interface IGoSettings {
-
- /** GoSettings common */
- common?: (google.api.ICommonLanguageSettings|null);
+ /** Properties of an Empty. */
+ interface IEmpty {
}
- /** Represents a GoSettings. */
- class GoSettings implements IGoSettings {
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
/**
- * Constructs a new GoSettings.
+ * Constructs a new Empty.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IGoSettings);
-
- /** GoSettings common. */
- public common?: (google.api.ICommonLanguageSettings|null);
+ constructor(properties?: google.protobuf.IEmpty);
/**
- * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns GoSettings
+ * @returns Empty
*/
- public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
/**
- * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
- * @param message GoSettings
+ * 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.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this GoSettings to JSON.
+ * Converts this Empty to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for GoSettings
+ * 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 MethodSettings. */
- interface IMethodSettings {
-
- /** MethodSettings selector */
- selector?: (string|null);
-
- /** MethodSettings longRunning */
- longRunning?: (google.api.MethodSettings.ILongRunning|null);
+ /** Properties of an Any. */
+ interface IAny {
- /** MethodSettings autoPopulatedFields */
- autoPopulatedFields?: (string[]|null);
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|null);
}
- /** Represents a MethodSettings. */
- class MethodSettings implements IMethodSettings {
+ /** Represents an Any. */
+ class Any implements IAny {
/**
- * Constructs a new MethodSettings.
+ * Constructs a new Any.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IMethodSettings);
-
- /** MethodSettings selector. */
- public selector: string;
+ constructor(properties?: google.protobuf.IAny);
- /** MethodSettings longRunning. */
- public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+ /** Any type_url. */
+ public type_url: string;
- /** MethodSettings autoPopulatedFields. */
- public autoPopulatedFields: string[];
+ /** Any value. */
+ public value: Uint8Array;
/**
- * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns MethodSettings
+ * @returns Any
*/
- public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
/**
- * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
- * @param message MethodSettings
+ * 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.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this MethodSettings to JSON.
+ * Converts this Any to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for MethodSettings
+ * 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;
}
- 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 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. */
- type ClientLibraryOrganization =
- "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"| "CLOUD"| "ADS"| "PHOTOS"| "STREET_VIEW"| "SHOPPING"| "GEO"| "GENERATIVE_AI";
-
- /** ClientLibraryDestination enum. */
- type ClientLibraryDestination =
- "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"| "GITHUB"| "PACKAGE_MANAGER";
-
- /** LaunchStage enum. */
- type LaunchStage =
- "LAUNCH_STAGE_UNSPECIFIED"| "UNIMPLEMENTED"| "PRELAUNCH"| "EARLY_ACCESS"| "ALPHA"| "BETA"| "GA"| "DEPRECATED";
-
- /** FieldBehavior enum. */
- type FieldBehavior =
- "FIELD_BEHAVIOR_UNSPECIFIED"| "OPTIONAL"| "REQUIRED"| "OUTPUT_ONLY"| "INPUT_ONLY"| "IMMUTABLE"| "UNORDERED_LIST"| "NON_EMPTY_DEFAULT"| "IDENTIFIER";
-
- /** 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|null);
-
- /** ResourceDescriptor plural */
- plural?: (string|null);
-
- /** ResourceDescriptor singular */
- singular?: (string|null);
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
- /** ResourceDescriptor style */
- style?: (google.api.ResourceDescriptor.Style[]|null);
+ /** FieldMask paths */
+ paths?: (string[]|null);
}
- /** Represents a ResourceDescriptor. */
- class ResourceDescriptor implements IResourceDescriptor {
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
/**
- * Constructs a new ResourceDescriptor.
+ * Constructs a new FieldMask.
* @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;
-
- /** ResourceDescriptor plural. */
- public plural: string;
-
- /** ResourceDescriptor singular. */
- public singular: string;
+ constructor(properties?: google.protobuf.IFieldMask);
- /** ResourceDescriptor style. */
- public style: google.api.ResourceDescriptor.Style[];
+ /** FieldMask paths. */
+ public paths: string[];
/**
- * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ResourceDescriptor
+ * @returns FieldMask
*/
- public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
/**
- * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
- * @param message ResourceDescriptor
+ * 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.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ResourceDescriptor to JSON.
+ * Converts this FieldMask to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ResourceDescriptor
+ * 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;
}
+ }
- namespace ResourceDescriptor {
-
- /** History enum. */
- type History =
- "HISTORY_UNSPECIFIED"| "ORIGINALLY_SINGLE_PATTERN"| "FUTURE_MULTI_PATTERN";
-
- /** Style enum. */
- type Style =
- "STYLE_UNSPECIFIED"| "DECLARATIVE_FRIENDLY";
- }
+ /** Namespace type. */
+ namespace type {
- /** Properties of a ResourceReference. */
- interface IResourceReference {
+ /** Properties of a LatLng. */
+ interface ILatLng {
- /** ResourceReference type */
- type?: (string|null);
+ /** LatLng latitude */
+ latitude?: (number|null);
- /** ResourceReference childType */
- childType?: (string|null);
+ /** LatLng longitude */
+ longitude?: (number|null);
}
- /** Represents a ResourceReference. */
- class ResourceReference implements IResourceReference {
+ /** Represents a LatLng. */
+ class LatLng implements ILatLng {
/**
- * Constructs a new ResourceReference.
+ * Constructs a new LatLng.
* @param [properties] Properties to set
*/
- constructor(properties?: google.api.IResourceReference);
+ constructor(properties?: google.type.ILatLng);
- /** ResourceReference type. */
- public type: string;
+ /** LatLng latitude. */
+ public latitude: number;
- /** ResourceReference childType. */
- public childType: string;
+ /** LatLng longitude. */
+ public longitude: number;
/**
- * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * Creates a LatLng message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ResourceReference
+ * @returns LatLng
*/
- public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+ public static fromObject(object: { [k: string]: any }): google.type.LatLng;
/**
- * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
- * @param message ResourceReference
+ * 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.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.type.LatLng, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ResourceReference to JSON.
+ * Converts this LatLng to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
- * Gets the default type url for ResourceReference
+ * 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;
}
+
+ /** DayOfWeek enum. */
+ type DayOfWeek =
+ "DAY_OF_WEEK_UNSPECIFIED"| "MONDAY"| "TUESDAY"| "WEDNESDAY"| "THURSDAY"| "FRIDAY"| "SATURDAY"| "SUNDAY";
}
/** Namespace rpc. */
diff --git a/dev/protos/firestore_v1_proto_api.js b/dev/protos/firestore_v1_proto_api.js
index c4a08c1f1..396ac7ce4 100644
--- a/dev/protos/firestore_v1_proto_api.js
+++ b/dev/protos/firestore_v1_proto_api.js
@@ -859,1472 +859,1314 @@
*/
var google = {};
- google.protobuf = (function() {
+ google.firestore = (function() {
/**
- * Namespace protobuf.
+ * Namespace firestore.
* @memberof google
* @namespace
*/
- var protobuf = {};
+ var firestore = {};
- protobuf.Struct = (function() {
+ firestore.v1 = (function() {
/**
- * Properties of a Struct.
- * @memberof google.protobuf
- * @interface IStruct
- * @property {Object.|null} [fields] Struct fields
+ * Namespace v1.
+ * @memberof google.firestore
+ * @namespace
*/
+ var v1 = {};
- /**
- * Constructs a new Struct.
- * @memberof google.protobuf
- * @classdesc Represents a Struct.
- * @implements IStruct
- * @constructor
- * @param {google.protobuf.IStruct=} [properties] Properties to set
- */
- function Struct(properties) {
- this.fields = {};
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ v1.AggregationResult = (function() {
- /**
- * Struct fields.
- * @member {Object.} fields
- * @memberof google.protobuf.Struct
- * @instance
- */
- Struct.prototype.fields = $util.emptyObject;
+ /**
+ * Properties of an AggregationResult.
+ * @memberof google.firestore.v1
+ * @interface IAggregationResult
+ * @property {Object.|null} [aggregateFields] AggregationResult aggregateFields
+ */
- /**
- * Creates a Struct message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.Struct
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.Struct} Struct
- */
- Struct.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.Struct)
- return object;
- var message = new $root.google.protobuf.Struct();
- if (object.fields) {
- if (typeof object.fields !== "object")
- throw TypeError(".google.protobuf.Struct.fields: object expected");
- message.fields = {};
- for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) {
- if (typeof object.fields[keys[i]] !== "object")
- throw TypeError(".google.protobuf.Struct.fields: object expected");
- message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]);
- }
+ /**
+ * Constructs a new AggregationResult.
+ * @memberof google.firestore.v1
+ * @classdesc Represents an AggregationResult.
+ * @implements IAggregationResult
+ * @constructor
+ * @param {google.firestore.v1.IAggregationResult=} [properties] Properties to set
+ */
+ function AggregationResult(properties) {
+ this.aggregateFields = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
}
- return message;
- };
- /**
- * Creates a plain object from a Struct message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.Struct
- * @static
- * @param {google.protobuf.Struct} message Struct
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- Struct.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.objects || options.defaults)
- object.fields = {};
- var keys2;
- if (message.fields && (keys2 = Object.keys(message.fields)).length) {
- object.fields = {};
- for (var j = 0; j < keys2.length; ++j)
- object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options);
- }
- return object;
- };
+ /**
+ * AggregationResult aggregateFields.
+ * @member {Object.} aggregateFields
+ * @memberof google.firestore.v1.AggregationResult
+ * @instance
+ */
+ AggregationResult.prototype.aggregateFields = $util.emptyObject;
- /**
- * Converts this Struct to JSON.
- * @function toJSON
- * @memberof google.protobuf.Struct
- * @instance
- * @returns {Object.} JSON object
- */
- Struct.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Creates an AggregationResult message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.AggregationResult
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.AggregationResult} AggregationResult
+ */
+ AggregationResult.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.AggregationResult)
+ return object;
+ var message = new $root.google.firestore.v1.AggregationResult();
+ if (object.aggregateFields) {
+ if (typeof object.aggregateFields !== "object")
+ throw TypeError(".google.firestore.v1.AggregationResult.aggregateFields: object expected");
+ message.aggregateFields = {};
+ for (var keys = Object.keys(object.aggregateFields), i = 0; i < keys.length; ++i) {
+ if (typeof object.aggregateFields[keys[i]] !== "object")
+ throw TypeError(".google.firestore.v1.AggregationResult.aggregateFields: object expected");
+ message.aggregateFields[keys[i]] = $root.google.firestore.v1.Value.fromObject(object.aggregateFields[keys[i]]);
+ }
+ }
+ return message;
+ };
- /**
- * Gets the default type url for Struct
- * @function getTypeUrl
- * @memberof google.protobuf.Struct
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.Struct";
- };
+ /**
+ * Creates a plain object from an AggregationResult message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.AggregationResult
+ * @static
+ * @param {google.firestore.v1.AggregationResult} message AggregationResult
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AggregationResult.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.aggregateFields = {};
+ var keys2;
+ if (message.aggregateFields && (keys2 = Object.keys(message.aggregateFields)).length) {
+ object.aggregateFields = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.aggregateFields[keys2[j]] = $root.google.firestore.v1.Value.toObject(message.aggregateFields[keys2[j]], options);
+ }
+ return object;
+ };
- return Struct;
- })();
+ /**
+ * Converts this AggregationResult to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.AggregationResult
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AggregationResult.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- protobuf.Value = (function() {
+ /**
+ * Gets the default type url for AggregationResult
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.AggregationResult
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AggregationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.AggregationResult";
+ };
- /**
- * Properties of a Value.
- * @memberof google.protobuf
- * @interface IValue
- * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue
- * @property {number|null} [numberValue] Value numberValue
- * @property {string|null} [stringValue] Value stringValue
- * @property {boolean|null} [boolValue] Value boolValue
- * @property {google.protobuf.IStruct|null} [structValue] Value structValue
- * @property {google.protobuf.IListValue|null} [listValue] Value listValue
- */
+ return AggregationResult;
+ })();
- /**
- * Constructs a new Value.
- * @memberof google.protobuf
- * @classdesc Represents a Value.
- * @implements IValue
- * @constructor
- * @param {google.protobuf.IValue=} [properties] Properties to set
- */
- function Value(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ v1.Document = (function() {
- /**
- * Value nullValue.
- * @member {google.protobuf.NullValue|null|undefined} nullValue
- * @memberof google.protobuf.Value
- * @instance
- */
- Value.prototype.nullValue = null;
+ /**
+ * Properties of a Document.
+ * @memberof google.firestore.v1
+ * @interface IDocument
+ * @property {string|null} [name] Document name
+ * @property {Object.|null} [fields] Document fields
+ * @property {google.protobuf.ITimestamp|null} [createTime] Document createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Document updateTime
+ */
- /**
- * Value numberValue.
- * @member {number|null|undefined} numberValue
- * @memberof google.protobuf.Value
- * @instance
- */
- Value.prototype.numberValue = null;
-
- /**
- * Value stringValue.
- * @member {string|null|undefined} stringValue
- * @memberof google.protobuf.Value
- * @instance
- */
- Value.prototype.stringValue = null;
+ /**
+ * Constructs a new Document.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a Document.
+ * @implements IDocument
+ * @constructor
+ * @param {google.firestore.v1.IDocument=} [properties] Properties to set
+ */
+ function Document(properties) {
+ this.fields = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * Value boolValue.
- * @member {boolean|null|undefined} boolValue
- * @memberof google.protobuf.Value
- * @instance
- */
- Value.prototype.boolValue = null;
+ /**
+ * Document name.
+ * @member {string} name
+ * @memberof google.firestore.v1.Document
+ * @instance
+ */
+ Document.prototype.name = "";
- /**
- * Value structValue.
- * @member {google.protobuf.IStruct|null|undefined} structValue
- * @memberof google.protobuf.Value
- * @instance
- */
- Value.prototype.structValue = null;
+ /**
+ * Document fields.
+ * @member {Object.} fields
+ * @memberof google.firestore.v1.Document
+ * @instance
+ */
+ Document.prototype.fields = $util.emptyObject;
- /**
- * Value listValue.
- * @member {google.protobuf.IListValue|null|undefined} listValue
- * @memberof google.protobuf.Value
- * @instance
- */
- Value.prototype.listValue = null;
+ /**
+ * Document createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.firestore.v1.Document
+ * @instance
+ */
+ Document.prototype.createTime = null;
- // OneOf field names bound to virtual getters and setters
- var $oneOfFields;
+ /**
+ * Document updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.firestore.v1.Document
+ * @instance
+ */
+ Document.prototype.updateTime = null;
- /**
- * Value kind.
- * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind
- * @memberof google.protobuf.Value
- * @instance
- */
- Object.defineProperty(Value.prototype, "kind", {
- get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]),
- set: $util.oneOfSetter($oneOfFields)
- });
+ /**
+ * Creates a Document message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.Document
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.Document} Document
+ */
+ Document.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.Document)
+ return object;
+ var message = new $root.google.firestore.v1.Document();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.fields) {
+ if (typeof object.fields !== "object")
+ throw TypeError(".google.firestore.v1.Document.fields: object expected");
+ message.fields = {};
+ for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) {
+ if (typeof object.fields[keys[i]] !== "object")
+ throw TypeError(".google.firestore.v1.Document.fields: object expected");
+ message.fields[keys[i]] = $root.google.firestore.v1.Value.fromObject(object.fields[keys[i]]);
+ }
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.firestore.v1.Document.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.firestore.v1.Document.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ return message;
+ };
- /**
- * Creates a Value message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.Value
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.Value} Value
- */
- Value.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.Value)
- return object;
- var message = new $root.google.protobuf.Value();
- switch (object.nullValue) {
- default:
- if (typeof object.nullValue === "number") {
- message.nullValue = object.nullValue;
- break;
+ /**
+ * Creates a plain object from a Document message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.Document
+ * @static
+ * @param {google.firestore.v1.Document} message Document
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Document.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.fields = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
}
- break;
- case "NULL_VALUE":
- case 0:
- message.nullValue = 0;
- break;
- }
- if (object.numberValue != null)
- message.numberValue = Number(object.numberValue);
- if (object.stringValue != null)
- message.stringValue = String(object.stringValue);
- if (object.boolValue != null)
- message.boolValue = Boolean(object.boolValue);
- if (object.structValue != null) {
- if (typeof object.structValue !== "object")
- throw TypeError(".google.protobuf.Value.structValue: object expected");
- message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue);
- }
- if (object.listValue != null) {
- if (typeof object.listValue !== "object")
- throw TypeError(".google.protobuf.Value.listValue: object expected");
- message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue);
- }
- return message;
- };
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ var keys2;
+ if (message.fields && (keys2 = Object.keys(message.fields)).length) {
+ object.fields = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.fields[keys2[j]] = $root.google.firestore.v1.Value.toObject(message.fields[keys2[j]], options);
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ return object;
+ };
- /**
- * Creates a plain object from a Value message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.Value
- * @static
- * @param {google.protobuf.Value} message Value
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- Value.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (message.nullValue != null && message.hasOwnProperty("nullValue")) {
- object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue;
- if (options.oneofs)
- object.kind = "nullValue";
- }
- if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
- object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue;
- if (options.oneofs)
- object.kind = "numberValue";
- }
- if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
- object.stringValue = message.stringValue;
- if (options.oneofs)
- object.kind = "stringValue";
- }
- if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
- object.boolValue = message.boolValue;
- if (options.oneofs)
- object.kind = "boolValue";
- }
- if (message.structValue != null && message.hasOwnProperty("structValue")) {
- object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options);
- if (options.oneofs)
- object.kind = "structValue";
- }
- if (message.listValue != null && message.hasOwnProperty("listValue")) {
- object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options);
- if (options.oneofs)
- object.kind = "listValue";
- }
- return object;
- };
+ /**
+ * Converts this Document to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.Document
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Document.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Converts this Value to JSON.
- * @function toJSON
- * @memberof google.protobuf.Value
- * @instance
- * @returns {Object.} JSON object
- */
- Value.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for Value
- * @function getTypeUrl
- * @memberof google.protobuf.Value
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.Value";
- };
+ /**
+ * Gets the default type url for Document
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.Document
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Document.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.Document";
+ };
- return Value;
- })();
+ return Document;
+ })();
- /**
- * NullValue enum.
- * @name google.protobuf.NullValue
- * @enum {string}
- * @property {string} NULL_VALUE=NULL_VALUE NULL_VALUE value
- */
- protobuf.NullValue = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "NULL_VALUE"] = "NULL_VALUE";
- return values;
- })();
+ v1.Value = (function() {
- protobuf.ListValue = (function() {
+ /**
+ * Properties of a Value.
+ * @memberof google.firestore.v1
+ * @interface IValue
+ * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue
+ * @property {boolean|null} [booleanValue] Value booleanValue
+ * @property {number|string|null} [integerValue] Value integerValue
+ * @property {number|null} [doubleValue] Value doubleValue
+ * @property {google.protobuf.ITimestamp|null} [timestampValue] Value timestampValue
+ * @property {string|null} [stringValue] Value stringValue
+ * @property {Uint8Array|null} [bytesValue] Value bytesValue
+ * @property {string|null} [referenceValue] Value referenceValue
+ * @property {google.type.ILatLng|null} [geoPointValue] Value geoPointValue
+ * @property {google.firestore.v1.IArrayValue|null} [arrayValue] Value arrayValue
+ * @property {google.firestore.v1.IMapValue|null} [mapValue] Value mapValue
+ * @property {string|null} [fieldReferenceValue] Value fieldReferenceValue
+ * @property {google.firestore.v1.IFunction|null} [functionValue] Value functionValue
+ * @property {google.firestore.v1.IPipeline|null} [pipelineValue] Value pipelineValue
+ */
- /**
- * Properties of a ListValue.
- * @memberof google.protobuf
- * @interface IListValue
- * @property {Array.|null} [values] ListValue values
- */
+ /**
+ * Constructs a new Value.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a Value.
+ * @implements IValue
+ * @constructor
+ * @param {google.firestore.v1.IValue=} [properties] Properties to set
+ */
+ function Value(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * Constructs a new ListValue.
- * @memberof google.protobuf
- * @classdesc Represents a ListValue.
- * @implements IListValue
- * @constructor
- * @param {google.protobuf.IListValue=} [properties] Properties to set
- */
- function ListValue(properties) {
- this.values = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ /**
+ * Value nullValue.
+ * @member {google.protobuf.NullValue|null|undefined} nullValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.nullValue = null;
- /**
- * ListValue values.
- * @member {Array.} values
- * @memberof google.protobuf.ListValue
- * @instance
- */
- ListValue.prototype.values = $util.emptyArray;
+ /**
+ * Value booleanValue.
+ * @member {boolean|null|undefined} booleanValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.booleanValue = null;
- /**
- * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.ListValue
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.ListValue} ListValue
- */
- ListValue.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.ListValue)
- return object;
- var message = new $root.google.protobuf.ListValue();
- if (object.values) {
- if (!Array.isArray(object.values))
- throw TypeError(".google.protobuf.ListValue.values: array expected");
- message.values = [];
- for (var i = 0; i < object.values.length; ++i) {
- if (typeof object.values[i] !== "object")
- throw TypeError(".google.protobuf.ListValue.values: object expected");
- message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]);
- }
- }
- return message;
- };
+ /**
+ * Value integerValue.
+ * @member {number|string|null|undefined} integerValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.integerValue = null;
- /**
- * Creates a plain object from a ListValue message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.ListValue
- * @static
- * @param {google.protobuf.ListValue} message ListValue
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- ListValue.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.values = [];
- if (message.values && message.values.length) {
- object.values = [];
- for (var j = 0; j < message.values.length; ++j)
- object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options);
- }
- return object;
- };
+ /**
+ * Value doubleValue.
+ * @member {number|null|undefined} doubleValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.doubleValue = null;
- /**
- * Converts this ListValue to JSON.
- * @function toJSON
- * @memberof google.protobuf.ListValue
- * @instance
- * @returns {Object.} JSON object
- */
- ListValue.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Value timestampValue.
+ * @member {google.protobuf.ITimestamp|null|undefined} timestampValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.timestampValue = null;
- /**
- * Gets the default type url for ListValue
- * @function getTypeUrl
- * @memberof google.protobuf.ListValue
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- ListValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.ListValue";
- };
+ /**
+ * Value stringValue.
+ * @member {string|null|undefined} stringValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.stringValue = null;
- return ListValue;
- })();
+ /**
+ * Value bytesValue.
+ * @member {Uint8Array|null|undefined} bytesValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.bytesValue = null;
- protobuf.Timestamp = (function() {
+ /**
+ * Value referenceValue.
+ * @member {string|null|undefined} referenceValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.referenceValue = null;
- /**
- * Properties of a Timestamp.
- * @memberof google.protobuf
- * @interface ITimestamp
- * @property {number|string|null} [seconds] Timestamp seconds
- * @property {number|null} [nanos] Timestamp nanos
- */
+ /**
+ * Value geoPointValue.
+ * @member {google.type.ILatLng|null|undefined} geoPointValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.geoPointValue = null;
- /**
- * Constructs a new Timestamp.
- * @memberof google.protobuf
- * @classdesc Represents a Timestamp.
- * @implements ITimestamp
- * @constructor
- * @param {google.protobuf.ITimestamp=} [properties] Properties to set
- */
- function Timestamp(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
-
- /**
- * Timestamp seconds.
- * @member {number|string} seconds
- * @memberof google.protobuf.Timestamp
- * @instance
- */
- Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
-
- /**
- * Timestamp nanos.
- * @member {number} nanos
- * @memberof google.protobuf.Timestamp
- * @instance
- */
- Timestamp.prototype.nanos = 0;
-
- /**
- * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.Timestamp
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.Timestamp} Timestamp
- */
- Timestamp.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.Timestamp)
- return object;
- var message = new $root.google.protobuf.Timestamp();
- if (object.seconds != null)
- if ($util.Long)
- (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
- else if (typeof object.seconds === "string")
- message.seconds = parseInt(object.seconds, 10);
- else if (typeof object.seconds === "number")
- message.seconds = object.seconds;
- else if (typeof object.seconds === "object")
- message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber();
- if (object.nanos != null)
- message.nanos = object.nanos | 0;
- return message;
- };
-
- /**
- * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.Timestamp
- * @static
- * @param {google.protobuf.Timestamp} message Timestamp
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- Timestamp.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.seconds = options.longs === String ? "0" : 0;
- object.nanos = 0;
- }
- if (message.seconds != null && message.hasOwnProperty("seconds"))
- if (typeof message.seconds === "number")
- object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
- else
- object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
- if (message.nanos != null && message.hasOwnProperty("nanos"))
- object.nanos = message.nanos;
- return object;
- };
-
- /**
- * Converts this Timestamp to JSON.
- * @function toJSON
- * @memberof google.protobuf.Timestamp
- * @instance
- * @returns {Object.} JSON object
- */
- Timestamp.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Value arrayValue.
+ * @member {google.firestore.v1.IArrayValue|null|undefined} arrayValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.arrayValue = null;
- /**
- * Gets the default type url for Timestamp
- * @function getTypeUrl
- * @memberof google.protobuf.Timestamp
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.Timestamp";
- };
+ /**
+ * Value mapValue.
+ * @member {google.firestore.v1.IMapValue|null|undefined} mapValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.mapValue = null;
- return Timestamp;
- })();
+ /**
+ * Value fieldReferenceValue.
+ * @member {string|null|undefined} fieldReferenceValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.fieldReferenceValue = null;
- protobuf.FileDescriptorSet = (function() {
+ /**
+ * Value functionValue.
+ * @member {google.firestore.v1.IFunction|null|undefined} functionValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.functionValue = null;
- /**
- * Properties of a FileDescriptorSet.
- * @memberof google.protobuf
- * @interface IFileDescriptorSet
- * @property {Array.|null} [file] FileDescriptorSet file
- */
+ /**
+ * Value pipelineValue.
+ * @member {google.firestore.v1.IPipeline|null|undefined} pipelineValue
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Value.prototype.pipelineValue = null;
- /**
- * Constructs a new FileDescriptorSet.
- * @memberof google.protobuf
- * @classdesc Represents a FileDescriptorSet.
- * @implements IFileDescriptorSet
- * @constructor
- * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
- */
- function FileDescriptorSet(properties) {
- this.file = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
- /**
- * FileDescriptorSet file.
- * @member {Array.} file
- * @memberof google.protobuf.FileDescriptorSet
- * @instance
- */
- FileDescriptorSet.prototype.file = $util.emptyArray;
+ /**
+ * Value valueType.
+ * @member {"nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"stringValue"|"bytesValue"|"referenceValue"|"geoPointValue"|"arrayValue"|"mapValue"|"fieldReferenceValue"|"functionValue"|"pipelineValue"|undefined} valueType
+ * @memberof google.firestore.v1.Value
+ * @instance
+ */
+ Object.defineProperty(Value.prototype, "valueType", {
+ get: $util.oneOfGetter($oneOfFields = ["nullValue", "booleanValue", "integerValue", "doubleValue", "timestampValue", "stringValue", "bytesValue", "referenceValue", "geoPointValue", "arrayValue", "mapValue", "fieldReferenceValue", "functionValue", "pipelineValue"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
- /**
- * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.FileDescriptorSet
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
- */
- FileDescriptorSet.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.FileDescriptorSet)
- return object;
- var message = new $root.google.protobuf.FileDescriptorSet();
- if (object.file) {
- if (!Array.isArray(object.file))
- throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");
- message.file = [];
- for (var i = 0; i < object.file.length; ++i) {
- if (typeof object.file[i] !== "object")
- throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");
- message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]);
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.Value
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.Value} Value
+ */
+ Value.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.Value)
+ return object;
+ var message = new $root.google.firestore.v1.Value();
+ switch (object.nullValue) {
+ default:
+ if (typeof object.nullValue === "number") {
+ message.nullValue = object.nullValue;
+ break;
+ }
+ break;
+ case "NULL_VALUE":
+ case 0:
+ message.nullValue = 0;
+ break;
}
- }
- return message;
- };
-
- /**
- * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.FileDescriptorSet
- * @static
- * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- FileDescriptorSet.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.file = [];
- if (message.file && message.file.length) {
- object.file = [];
- for (var j = 0; j < message.file.length; ++j)
- object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options);
- }
- return object;
- };
-
- /**
- * Converts this FileDescriptorSet to JSON.
- * @function toJSON
- * @memberof google.protobuf.FileDescriptorSet
- * @instance
- * @returns {Object.} JSON object
- */
- FileDescriptorSet.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for FileDescriptorSet
- * @function getTypeUrl
- * @memberof google.protobuf.FileDescriptorSet
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.FileDescriptorSet";
- };
+ if (object.booleanValue != null)
+ message.booleanValue = Boolean(object.booleanValue);
+ if (object.integerValue != null)
+ if ($util.Long)
+ (message.integerValue = $util.Long.fromValue(object.integerValue)).unsigned = false;
+ else if (typeof object.integerValue === "string")
+ message.integerValue = parseInt(object.integerValue, 10);
+ else if (typeof object.integerValue === "number")
+ message.integerValue = object.integerValue;
+ else if (typeof object.integerValue === "object")
+ message.integerValue = new $util.LongBits(object.integerValue.low >>> 0, object.integerValue.high >>> 0).toNumber();
+ if (object.doubleValue != null)
+ message.doubleValue = Number(object.doubleValue);
+ if (object.timestampValue != null) {
+ if (typeof object.timestampValue !== "object")
+ throw TypeError(".google.firestore.v1.Value.timestampValue: object expected");
+ message.timestampValue = $root.google.protobuf.Timestamp.fromObject(object.timestampValue);
+ }
+ if (object.stringValue != null)
+ message.stringValue = String(object.stringValue);
+ if (object.bytesValue != null)
+ if (typeof object.bytesValue === "string")
+ $util.base64.decode(object.bytesValue, message.bytesValue = $util.newBuffer($util.base64.length(object.bytesValue)), 0);
+ else if (object.bytesValue.length >= 0)
+ message.bytesValue = object.bytesValue;
+ if (object.referenceValue != null)
+ message.referenceValue = String(object.referenceValue);
+ if (object.geoPointValue != null) {
+ if (typeof object.geoPointValue !== "object")
+ throw TypeError(".google.firestore.v1.Value.geoPointValue: object expected");
+ message.geoPointValue = $root.google.type.LatLng.fromObject(object.geoPointValue);
+ }
+ if (object.arrayValue != null) {
+ if (typeof object.arrayValue !== "object")
+ throw TypeError(".google.firestore.v1.Value.arrayValue: object expected");
+ message.arrayValue = $root.google.firestore.v1.ArrayValue.fromObject(object.arrayValue);
+ }
+ if (object.mapValue != null) {
+ if (typeof object.mapValue !== "object")
+ throw TypeError(".google.firestore.v1.Value.mapValue: object expected");
+ message.mapValue = $root.google.firestore.v1.MapValue.fromObject(object.mapValue);
+ }
+ if (object.fieldReferenceValue != null)
+ message.fieldReferenceValue = String(object.fieldReferenceValue);
+ if (object.functionValue != null) {
+ if (typeof object.functionValue !== "object")
+ throw TypeError(".google.firestore.v1.Value.functionValue: object expected");
+ message.functionValue = $root.google.firestore.v1.Function.fromObject(object.functionValue);
+ }
+ if (object.pipelineValue != null) {
+ if (typeof object.pipelineValue !== "object")
+ throw TypeError(".google.firestore.v1.Value.pipelineValue: object expected");
+ message.pipelineValue = $root.google.firestore.v1.Pipeline.fromObject(object.pipelineValue);
+ }
+ return message;
+ };
- return FileDescriptorSet;
- })();
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.Value
+ * @static
+ * @param {google.firestore.v1.Value} message Value
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Value.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.booleanValue != null && message.hasOwnProperty("booleanValue")) {
+ object.booleanValue = message.booleanValue;
+ if (options.oneofs)
+ object.valueType = "booleanValue";
+ }
+ if (message.integerValue != null && message.hasOwnProperty("integerValue")) {
+ if (typeof message.integerValue === "number")
+ object.integerValue = options.longs === String ? String(message.integerValue) : message.integerValue;
+ else
+ object.integerValue = options.longs === String ? $util.Long.prototype.toString.call(message.integerValue) : options.longs === Number ? new $util.LongBits(message.integerValue.low >>> 0, message.integerValue.high >>> 0).toNumber() : message.integerValue;
+ if (options.oneofs)
+ object.valueType = "integerValue";
+ }
+ if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) {
+ object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue;
+ if (options.oneofs)
+ object.valueType = "doubleValue";
+ }
+ if (message.referenceValue != null && message.hasOwnProperty("referenceValue")) {
+ object.referenceValue = message.referenceValue;
+ if (options.oneofs)
+ object.valueType = "referenceValue";
+ }
+ if (message.mapValue != null && message.hasOwnProperty("mapValue")) {
+ object.mapValue = $root.google.firestore.v1.MapValue.toObject(message.mapValue, options);
+ if (options.oneofs)
+ object.valueType = "mapValue";
+ }
+ if (message.geoPointValue != null && message.hasOwnProperty("geoPointValue")) {
+ object.geoPointValue = $root.google.type.LatLng.toObject(message.geoPointValue, options);
+ if (options.oneofs)
+ object.valueType = "geoPointValue";
+ }
+ if (message.arrayValue != null && message.hasOwnProperty("arrayValue")) {
+ object.arrayValue = $root.google.firestore.v1.ArrayValue.toObject(message.arrayValue, options);
+ if (options.oneofs)
+ object.valueType = "arrayValue";
+ }
+ if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) {
+ object.timestampValue = $root.google.protobuf.Timestamp.toObject(message.timestampValue, options);
+ if (options.oneofs)
+ object.valueType = "timestampValue";
+ }
+ if (message.nullValue != null && message.hasOwnProperty("nullValue")) {
+ object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue;
+ if (options.oneofs)
+ object.valueType = "nullValue";
+ }
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
+ object.stringValue = message.stringValue;
+ if (options.oneofs)
+ object.valueType = "stringValue";
+ }
+ if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) {
+ object.bytesValue = options.bytes === String ? $util.base64.encode(message.bytesValue, 0, message.bytesValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesValue) : message.bytesValue;
+ if (options.oneofs)
+ object.valueType = "bytesValue";
+ }
+ if (message.fieldReferenceValue != null && message.hasOwnProperty("fieldReferenceValue")) {
+ object.fieldReferenceValue = message.fieldReferenceValue;
+ if (options.oneofs)
+ object.valueType = "fieldReferenceValue";
+ }
+ if (message.functionValue != null && message.hasOwnProperty("functionValue")) {
+ object.functionValue = $root.google.firestore.v1.Function.toObject(message.functionValue, options);
+ if (options.oneofs)
+ object.valueType = "functionValue";
+ }
+ if (message.pipelineValue != null && message.hasOwnProperty("pipelineValue")) {
+ object.pipelineValue = $root.google.firestore.v1.Pipeline.toObject(message.pipelineValue, options);
+ if (options.oneofs)
+ object.valueType = "pipelineValue";
+ }
+ return object;
+ };
- /**
- * Edition enum.
- * @name google.protobuf.Edition
- * @enum {string}
- * @property {string} EDITION_UNKNOWN=EDITION_UNKNOWN EDITION_UNKNOWN value
- * @property {string} EDITION_LEGACY=EDITION_LEGACY EDITION_LEGACY value
- * @property {string} EDITION_PROTO2=EDITION_PROTO2 EDITION_PROTO2 value
- * @property {string} EDITION_PROTO3=EDITION_PROTO3 EDITION_PROTO3 value
- * @property {string} EDITION_2023=EDITION_2023 EDITION_2023 value
- * @property {string} EDITION_2024=EDITION_2024 EDITION_2024 value
- * @property {string} EDITION_1_TEST_ONLY=EDITION_1_TEST_ONLY EDITION_1_TEST_ONLY value
- * @property {string} EDITION_2_TEST_ONLY=EDITION_2_TEST_ONLY EDITION_2_TEST_ONLY value
- * @property {string} EDITION_99997_TEST_ONLY=EDITION_99997_TEST_ONLY EDITION_99997_TEST_ONLY value
- * @property {string} EDITION_99998_TEST_ONLY=EDITION_99998_TEST_ONLY EDITION_99998_TEST_ONLY value
- * @property {string} EDITION_99999_TEST_ONLY=EDITION_99999_TEST_ONLY EDITION_99999_TEST_ONLY value
- * @property {string} EDITION_MAX=EDITION_MAX EDITION_MAX value
- */
- protobuf.Edition = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "EDITION_UNKNOWN"] = "EDITION_UNKNOWN";
- values[valuesById[900] = "EDITION_LEGACY"] = "EDITION_LEGACY";
- values[valuesById[998] = "EDITION_PROTO2"] = "EDITION_PROTO2";
- values[valuesById[999] = "EDITION_PROTO3"] = "EDITION_PROTO3";
- values[valuesById[1000] = "EDITION_2023"] = "EDITION_2023";
- values[valuesById[1001] = "EDITION_2024"] = "EDITION_2024";
- values[valuesById[1] = "EDITION_1_TEST_ONLY"] = "EDITION_1_TEST_ONLY";
- values[valuesById[2] = "EDITION_2_TEST_ONLY"] = "EDITION_2_TEST_ONLY";
- values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = "EDITION_99997_TEST_ONLY";
- values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = "EDITION_99998_TEST_ONLY";
- values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = "EDITION_99999_TEST_ONLY";
- values[valuesById[2147483647] = "EDITION_MAX"] = "EDITION_MAX";
- return values;
- })();
+ /**
+ * Converts this Value to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.Value
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Value.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- protobuf.FileDescriptorProto = (function() {
+ /**
+ * Gets the default type url for Value
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.Value
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.Value";
+ };
- /**
- * Properties of a FileDescriptorProto.
- * @memberof google.protobuf
- * @interface IFileDescriptorProto
- * @property {string|null} [name] FileDescriptorProto name
- * @property {string|null} ["package"] FileDescriptorProto package
- * @property {Array.|null} [dependency] FileDescriptorProto dependency
- * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency
- * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency
- * @property {Array.|null} [messageType] FileDescriptorProto messageType
- * @property {Array.|null} [enumType] FileDescriptorProto enumType
- * @property {Array.|null} [service] FileDescriptorProto service
- * @property {Array.|null} [extension] FileDescriptorProto extension
- * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options
- * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo
- * @property {string|null} [syntax] FileDescriptorProto syntax
- * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition
- */
+ return Value;
+ })();
- /**
- * Constructs a new FileDescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents a FileDescriptorProto.
- * @implements IFileDescriptorProto
- * @constructor
- * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set
- */
- function FileDescriptorProto(properties) {
- this.dependency = [];
- this.publicDependency = [];
- this.weakDependency = [];
- this.messageType = [];
- this.enumType = [];
- this.service = [];
- this.extension = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ v1.ArrayValue = (function() {
- /**
- * FileDescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.name = "";
+ /**
+ * Properties of an ArrayValue.
+ * @memberof google.firestore.v1
+ * @interface IArrayValue
+ * @property {Array.|null} [values] ArrayValue values
+ */
- /**
- * FileDescriptorProto package.
- * @member {string} package
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype["package"] = "";
+ /**
+ * Constructs a new ArrayValue.
+ * @memberof google.firestore.v1
+ * @classdesc Represents an ArrayValue.
+ * @implements IArrayValue
+ * @constructor
+ * @param {google.firestore.v1.IArrayValue=} [properties] Properties to set
+ */
+ function ArrayValue(properties) {
+ this.values = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * FileDescriptorProto dependency.
- * @member {Array.} dependency
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.dependency = $util.emptyArray;
+ /**
+ * ArrayValue values.
+ * @member {Array.} values
+ * @memberof google.firestore.v1.ArrayValue
+ * @instance
+ */
+ ArrayValue.prototype.values = $util.emptyArray;
- /**
- * FileDescriptorProto publicDependency.
- * @member {Array.} publicDependency
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.publicDependency = $util.emptyArray;
+ /**
+ * Creates an ArrayValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.ArrayValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.ArrayValue} ArrayValue
+ */
+ ArrayValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.ArrayValue)
+ return object;
+ var message = new $root.google.firestore.v1.ArrayValue();
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.firestore.v1.ArrayValue.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i) {
+ if (typeof object.values[i] !== "object")
+ throw TypeError(".google.firestore.v1.ArrayValue.values: object expected");
+ message.values[i] = $root.google.firestore.v1.Value.fromObject(object.values[i]);
+ }
+ }
+ return message;
+ };
- /**
- * FileDescriptorProto weakDependency.
- * @member {Array.} weakDependency
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
+ /**
+ * Creates a plain object from an ArrayValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.ArrayValue
+ * @static
+ * @param {google.firestore.v1.ArrayValue} message ArrayValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ArrayValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = $root.google.firestore.v1.Value.toObject(message.values[j], options);
+ }
+ return object;
+ };
- /**
- * FileDescriptorProto messageType.
- * @member {Array.} messageType
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.messageType = $util.emptyArray;
+ /**
+ * Converts this ArrayValue to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.ArrayValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ArrayValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * FileDescriptorProto enumType.
- * @member {Array.} enumType
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.enumType = $util.emptyArray;
+ /**
+ * Gets the default type url for ArrayValue
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.ArrayValue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.ArrayValue";
+ };
- /**
- * FileDescriptorProto service.
- * @member {Array.} service
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.service = $util.emptyArray;
+ return ArrayValue;
+ })();
- /**
- * FileDescriptorProto extension.
- * @member {Array.} extension
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.extension = $util.emptyArray;
+ v1.MapValue = (function() {
- /**
- * FileDescriptorProto options.
- * @member {google.protobuf.IFileOptions|null|undefined} options
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.options = null;
+ /**
+ * Properties of a MapValue.
+ * @memberof google.firestore.v1
+ * @interface IMapValue
+ * @property {Object.|null} [fields] MapValue fields
+ */
- /**
- * FileDescriptorProto sourceCodeInfo.
- * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.sourceCodeInfo = null;
+ /**
+ * Constructs a new MapValue.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a MapValue.
+ * @implements IMapValue
+ * @constructor
+ * @param {google.firestore.v1.IMapValue=} [properties] Properties to set
+ */
+ function MapValue(properties) {
+ this.fields = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * FileDescriptorProto syntax.
- * @member {string} syntax
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.syntax = "";
+ /**
+ * MapValue fields.
+ * @member {Object.} fields
+ * @memberof google.firestore.v1.MapValue
+ * @instance
+ */
+ MapValue.prototype.fields = $util.emptyObject;
- /**
- * FileDescriptorProto edition.
- * @member {google.protobuf.Edition} edition
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- */
- FileDescriptorProto.prototype.edition = 0;
+ /**
+ * Creates a MapValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.MapValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.MapValue} MapValue
+ */
+ MapValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.MapValue)
+ return object;
+ var message = new $root.google.firestore.v1.MapValue();
+ if (object.fields) {
+ if (typeof object.fields !== "object")
+ throw TypeError(".google.firestore.v1.MapValue.fields: object expected");
+ message.fields = {};
+ for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) {
+ if (typeof object.fields[keys[i]] !== "object")
+ throw TypeError(".google.firestore.v1.MapValue.fields: object expected");
+ message.fields[keys[i]] = $root.google.firestore.v1.Value.fromObject(object.fields[keys[i]]);
+ }
+ }
+ return message;
+ };
- /**
- * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.FileDescriptorProto
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto
- */
- FileDescriptorProto.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.FileDescriptorProto)
- return object;
- var message = new $root.google.protobuf.FileDescriptorProto();
- if (object.name != null)
- message.name = String(object.name);
- if (object["package"] != null)
- message["package"] = String(object["package"]);
- if (object.dependency) {
- if (!Array.isArray(object.dependency))
- throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");
- message.dependency = [];
- for (var i = 0; i < object.dependency.length; ++i)
- message.dependency[i] = String(object.dependency[i]);
- }
- if (object.publicDependency) {
- if (!Array.isArray(object.publicDependency))
- throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");
- message.publicDependency = [];
- for (var i = 0; i < object.publicDependency.length; ++i)
- message.publicDependency[i] = object.publicDependency[i] | 0;
- }
- if (object.weakDependency) {
- if (!Array.isArray(object.weakDependency))
- throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");
- message.weakDependency = [];
- for (var i = 0; i < object.weakDependency.length; ++i)
- message.weakDependency[i] = object.weakDependency[i] | 0;
- }
- if (object.messageType) {
- if (!Array.isArray(object.messageType))
- throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
- message.messageType = [];
- for (var i = 0; i < object.messageType.length; ++i) {
- if (typeof object.messageType[i] !== "object")
- throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");
- message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]);
+ /**
+ * Creates a plain object from a MapValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.MapValue
+ * @static
+ * @param {google.firestore.v1.MapValue} message MapValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MapValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.fields = {};
+ var keys2;
+ if (message.fields && (keys2 = Object.keys(message.fields)).length) {
+ object.fields = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.fields[keys2[j]] = $root.google.firestore.v1.Value.toObject(message.fields[keys2[j]], options);
}
- }
- if (object.enumType) {
- if (!Array.isArray(object.enumType))
- throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");
- message.enumType = [];
- for (var i = 0; i < object.enumType.length; ++i) {
- if (typeof object.enumType[i] !== "object")
- throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");
- message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]);
+ return object;
+ };
+
+ /**
+ * Converts this MapValue to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.MapValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MapValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MapValue
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.MapValue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MapValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
}
+ return typeUrlPrefix + "/google.firestore.v1.MapValue";
+ };
+
+ return MapValue;
+ })();
+
+ v1.Function = (function() {
+
+ /**
+ * Properties of a Function.
+ * @memberof google.firestore.v1
+ * @interface IFunction
+ * @property {string|null} [name] Function name
+ * @property {Array.|null} [args] Function args
+ * @property {Object.|null} [options] Function options
+ */
+
+ /**
+ * Constructs a new Function.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a Function.
+ * @implements IFunction
+ * @constructor
+ * @param {google.firestore.v1.IFunction=} [properties] Properties to set
+ */
+ function Function(properties) {
+ this.args = [];
+ this.options = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
}
- if (object.service) {
- if (!Array.isArray(object.service))
- throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");
- message.service = [];
- for (var i = 0; i < object.service.length; ++i) {
- if (typeof object.service[i] !== "object")
- throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");
- message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]);
+
+ /**
+ * Function name.
+ * @member {string} name
+ * @memberof google.firestore.v1.Function
+ * @instance
+ */
+ Function.prototype.name = "";
+
+ /**
+ * Function args.
+ * @member {Array.} args
+ * @memberof google.firestore.v1.Function
+ * @instance
+ */
+ Function.prototype.args = $util.emptyArray;
+
+ /**
+ * Function options.
+ * @member {Object.} options
+ * @memberof google.firestore.v1.Function
+ * @instance
+ */
+ Function.prototype.options = $util.emptyObject;
+
+ /**
+ * Creates a Function message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.Function
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.Function} Function
+ */
+ Function.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.Function)
+ return object;
+ var message = new $root.google.firestore.v1.Function();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.args) {
+ if (!Array.isArray(object.args))
+ throw TypeError(".google.firestore.v1.Function.args: array expected");
+ message.args = [];
+ for (var i = 0; i < object.args.length; ++i) {
+ if (typeof object.args[i] !== "object")
+ throw TypeError(".google.firestore.v1.Function.args: object expected");
+ message.args[i] = $root.google.firestore.v1.Value.fromObject(object.args[i]);
+ }
}
- }
- if (object.extension) {
- if (!Array.isArray(object.extension))
- throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");
- message.extension = [];
- for (var i = 0; i < object.extension.length; ++i) {
- if (typeof object.extension[i] !== "object")
- throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");
- message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]);
+ if (object.options) {
+ if (typeof object.options !== "object")
+ throw TypeError(".google.firestore.v1.Function.options: object expected");
+ message.options = {};
+ for (var keys = Object.keys(object.options), i = 0; i < keys.length; ++i) {
+ if (typeof object.options[keys[i]] !== "object")
+ throw TypeError(".google.firestore.v1.Function.options: object expected");
+ message.options[keys[i]] = $root.google.firestore.v1.Value.fromObject(object.options[keys[i]]);
+ }
}
- }
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");
- message.options = $root.google.protobuf.FileOptions.fromObject(object.options);
- }
- if (object.sourceCodeInfo != null) {
- if (typeof object.sourceCodeInfo !== "object")
- throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");
- message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo);
- }
- if (object.syntax != null)
- message.syntax = String(object.syntax);
- switch (object.edition) {
- default:
- if (typeof object.edition === "number") {
- message.edition = object.edition;
- break;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Function message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.Function
+ * @static
+ * @param {google.firestore.v1.Function} message Function
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Function.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.args = [];
+ if (options.objects || options.defaults)
+ object.options = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.args && message.args.length) {
+ object.args = [];
+ for (var j = 0; j < message.args.length; ++j)
+ object.args[j] = $root.google.firestore.v1.Value.toObject(message.args[j], options);
}
- break;
- case "EDITION_UNKNOWN":
- case 0:
- message.edition = 0;
- break;
- case "EDITION_LEGACY":
- case 900:
- message.edition = 900;
- break;
- case "EDITION_PROTO2":
- case 998:
- message.edition = 998;
- break;
- case "EDITION_PROTO3":
- case 999:
- message.edition = 999;
- break;
- case "EDITION_2023":
- case 1000:
- message.edition = 1000;
- break;
- case "EDITION_2024":
- case 1001:
- message.edition = 1001;
- break;
- case "EDITION_1_TEST_ONLY":
- case 1:
- message.edition = 1;
- break;
- case "EDITION_2_TEST_ONLY":
- case 2:
- message.edition = 2;
- break;
- case "EDITION_99997_TEST_ONLY":
- case 99997:
- message.edition = 99997;
- break;
- case "EDITION_99998_TEST_ONLY":
- case 99998:
- message.edition = 99998;
- break;
- case "EDITION_99999_TEST_ONLY":
- case 99999:
- message.edition = 99999;
- break;
- case "EDITION_MAX":
- case 2147483647:
- message.edition = 2147483647;
- break;
- }
- return message;
- };
+ var keys2;
+ if (message.options && (keys2 = Object.keys(message.options)).length) {
+ object.options = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.options[keys2[j]] = $root.google.firestore.v1.Value.toObject(message.options[keys2[j]], options);
+ }
+ return object;
+ };
- /**
- * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.FileDescriptorProto
- * @static
- * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- FileDescriptorProto.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.dependency = [];
- object.messageType = [];
- object.enumType = [];
- object.service = [];
- object.extension = [];
- object.publicDependency = [];
- object.weakDependency = [];
- }
- if (options.defaults) {
- object.name = "";
- object["package"] = "";
- object.options = null;
- object.sourceCodeInfo = null;
- object.syntax = "";
- object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message["package"] != null && message.hasOwnProperty("package"))
- object["package"] = message["package"];
- if (message.dependency && message.dependency.length) {
- object.dependency = [];
- for (var j = 0; j < message.dependency.length; ++j)
- object.dependency[j] = message.dependency[j];
- }
- if (message.messageType && message.messageType.length) {
- object.messageType = [];
- for (var j = 0; j < message.messageType.length; ++j)
- object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options);
- }
- if (message.enumType && message.enumType.length) {
- object.enumType = [];
- for (var j = 0; j < message.enumType.length; ++j)
- object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options);
- }
- if (message.service && message.service.length) {
- object.service = [];
- for (var j = 0; j < message.service.length; ++j)
- object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options);
- }
- if (message.extension && message.extension.length) {
- object.extension = [];
- for (var j = 0; j < message.extension.length; ++j)
- object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options);
- }
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.FileOptions.toObject(message.options, options);
- if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo"))
- object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options);
- if (message.publicDependency && message.publicDependency.length) {
- object.publicDependency = [];
- for (var j = 0; j < message.publicDependency.length; ++j)
- object.publicDependency[j] = message.publicDependency[j];
- }
- if (message.weakDependency && message.weakDependency.length) {
- object.weakDependency = [];
- for (var j = 0; j < message.weakDependency.length; ++j)
- object.weakDependency[j] = message.weakDependency[j];
- }
- if (message.syntax != null && message.hasOwnProperty("syntax"))
- object.syntax = message.syntax;
- if (message.edition != null && message.hasOwnProperty("edition"))
- object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
- return object;
- };
+ /**
+ * Converts this Function to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.Function
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Function.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Converts this FileDescriptorProto to JSON.
- * @function toJSON
- * @memberof google.protobuf.FileDescriptorProto
- * @instance
- * @returns {Object.} JSON object
- */
- FileDescriptorProto.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Gets the default type url for Function
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.Function
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Function.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.Function";
+ };
- /**
- * Gets the default type url for FileDescriptorProto
- * @function getTypeUrl
- * @memberof google.protobuf.FileDescriptorProto
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.FileDescriptorProto";
- };
+ return Function;
+ })();
- return FileDescriptorProto;
- })();
+ v1.Pipeline = (function() {
- protobuf.DescriptorProto = (function() {
+ /**
+ * Properties of a Pipeline.
+ * @memberof google.firestore.v1
+ * @interface IPipeline
+ * @property {Array.|null} [stages] Pipeline stages
+ */
- /**
- * Properties of a DescriptorProto.
- * @memberof google.protobuf
- * @interface IDescriptorProto
- * @property {string|null} [name] DescriptorProto name
- * @property {Array.|null} [field] DescriptorProto field
- * @property {Array.|null} [extension] DescriptorProto extension
- * @property {Array.|null} [nestedType] DescriptorProto nestedType
- * @property {Array.|null} [enumType] DescriptorProto enumType
- * @property {Array.|null} [extensionRange] DescriptorProto extensionRange
- * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl
- * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
- * @property {Array.|null} [reservedRange] DescriptorProto reservedRange
- * @property {Array.|null} [reservedName] DescriptorProto reservedName
- */
+ /**
+ * Constructs a new Pipeline.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a Pipeline.
+ * @implements IPipeline
+ * @constructor
+ * @param {google.firestore.v1.IPipeline=} [properties] Properties to set
+ */
+ function Pipeline(properties) {
+ this.stages = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * Constructs a new DescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents a DescriptorProto.
- * @implements IDescriptorProto
- * @constructor
- * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set
- */
- function DescriptorProto(properties) {
- this.field = [];
- this.extension = [];
- this.nestedType = [];
- this.enumType = [];
- this.extensionRange = [];
- this.oneofDecl = [];
- this.reservedRange = [];
- this.reservedName = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ /**
+ * Pipeline stages.
+ * @member {Array.} stages
+ * @memberof google.firestore.v1.Pipeline
+ * @instance
+ */
+ Pipeline.prototype.stages = $util.emptyArray;
- /**
- * DescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.name = "";
+ /**
+ * Creates a Pipeline message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.Pipeline
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.Pipeline} Pipeline
+ */
+ Pipeline.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.Pipeline)
+ return object;
+ var message = new $root.google.firestore.v1.Pipeline();
+ if (object.stages) {
+ if (!Array.isArray(object.stages))
+ throw TypeError(".google.firestore.v1.Pipeline.stages: array expected");
+ message.stages = [];
+ for (var i = 0; i < object.stages.length; ++i) {
+ if (typeof object.stages[i] !== "object")
+ throw TypeError(".google.firestore.v1.Pipeline.stages: object expected");
+ message.stages[i] = $root.google.firestore.v1.Pipeline.Stage.fromObject(object.stages[i]);
+ }
+ }
+ return message;
+ };
- /**
- * DescriptorProto field.
- * @member {Array.} field
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.field = $util.emptyArray;
+ /**
+ * Creates a plain object from a Pipeline message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.Pipeline
+ * @static
+ * @param {google.firestore.v1.Pipeline} message Pipeline
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Pipeline.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.stages = [];
+ if (message.stages && message.stages.length) {
+ object.stages = [];
+ for (var j = 0; j < message.stages.length; ++j)
+ object.stages[j] = $root.google.firestore.v1.Pipeline.Stage.toObject(message.stages[j], options);
+ }
+ return object;
+ };
- /**
- * DescriptorProto extension.
- * @member {Array.} extension
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.extension = $util.emptyArray;
+ /**
+ * Converts this Pipeline to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.Pipeline
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Pipeline.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * DescriptorProto nestedType.
- * @member {Array.} nestedType
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.nestedType = $util.emptyArray;
+ /**
+ * Gets the default type url for Pipeline
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.Pipeline
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Pipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.Pipeline";
+ };
- /**
- * DescriptorProto enumType.
- * @member {Array.} enumType
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.enumType = $util.emptyArray;
+ Pipeline.Stage = (function() {
- /**
- * DescriptorProto extensionRange.
- * @member {Array.} extensionRange
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.extensionRange = $util.emptyArray;
+ /**
+ * Properties of a Stage.
+ * @memberof google.firestore.v1.Pipeline
+ * @interface IStage
+ * @property {string|null} [name] Stage name
+ * @property {Array.|null} [args] Stage args
+ * @property {Object.|null} [options] Stage options
+ */
- /**
- * DescriptorProto oneofDecl.
- * @member {Array.} oneofDecl
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.oneofDecl = $util.emptyArray;
+ /**
+ * Constructs a new Stage.
+ * @memberof google.firestore.v1.Pipeline
+ * @classdesc Represents a Stage.
+ * @implements IStage
+ * @constructor
+ * @param {google.firestore.v1.Pipeline.IStage=} [properties] Properties to set
+ */
+ function Stage(properties) {
+ this.args = [];
+ this.options = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * DescriptorProto options.
- * @member {google.protobuf.IMessageOptions|null|undefined} options
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.options = null;
+ /**
+ * Stage name.
+ * @member {string} name
+ * @memberof google.firestore.v1.Pipeline.Stage
+ * @instance
+ */
+ Stage.prototype.name = "";
- /**
- * DescriptorProto reservedRange.
- * @member {Array.} reservedRange
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.reservedRange = $util.emptyArray;
+ /**
+ * Stage args.
+ * @member {Array.} args
+ * @memberof google.firestore.v1.Pipeline.Stage
+ * @instance
+ */
+ Stage.prototype.args = $util.emptyArray;
- /**
- * DescriptorProto reservedName.
- * @member {Array.} reservedName
- * @memberof google.protobuf.DescriptorProto
- * @instance
- */
- DescriptorProto.prototype.reservedName = $util.emptyArray;
+ /**
+ * Stage options.
+ * @member {Object.} options
+ * @memberof google.firestore.v1.Pipeline.Stage
+ * @instance
+ */
+ Stage.prototype.options = $util.emptyObject;
- /**
- * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.DescriptorProto
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.DescriptorProto} DescriptorProto
- */
- DescriptorProto.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.DescriptorProto)
- return object;
- var message = new $root.google.protobuf.DescriptorProto();
- if (object.name != null)
- message.name = String(object.name);
- if (object.field) {
- if (!Array.isArray(object.field))
- throw TypeError(".google.protobuf.DescriptorProto.field: array expected");
- message.field = [];
- for (var i = 0; i < object.field.length; ++i) {
- if (typeof object.field[i] !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.field: object expected");
- message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]);
- }
- }
- if (object.extension) {
- if (!Array.isArray(object.extension))
- throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");
- message.extension = [];
- for (var i = 0; i < object.extension.length; ++i) {
- if (typeof object.extension[i] !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");
- message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]);
- }
- }
- if (object.nestedType) {
- if (!Array.isArray(object.nestedType))
- throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");
- message.nestedType = [];
- for (var i = 0; i < object.nestedType.length; ++i) {
- if (typeof object.nestedType[i] !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");
- message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]);
- }
- }
- if (object.enumType) {
- if (!Array.isArray(object.enumType))
- throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");
- message.enumType = [];
- for (var i = 0; i < object.enumType.length; ++i) {
- if (typeof object.enumType[i] !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");
- message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]);
- }
- }
- if (object.extensionRange) {
- if (!Array.isArray(object.extensionRange))
- throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");
- message.extensionRange = [];
- for (var i = 0; i < object.extensionRange.length; ++i) {
- if (typeof object.extensionRange[i] !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");
- message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]);
- }
- }
- if (object.oneofDecl) {
- if (!Array.isArray(object.oneofDecl))
- throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");
- message.oneofDecl = [];
- for (var i = 0; i < object.oneofDecl.length; ++i) {
- if (typeof object.oneofDecl[i] !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");
- message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]);
- }
- }
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.options: object expected");
- message.options = $root.google.protobuf.MessageOptions.fromObject(object.options);
- }
- if (object.reservedRange) {
- if (!Array.isArray(object.reservedRange))
- throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");
- message.reservedRange = [];
- for (var i = 0; i < object.reservedRange.length; ++i) {
- if (typeof object.reservedRange[i] !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");
- message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]);
- }
- }
- if (object.reservedName) {
- if (!Array.isArray(object.reservedName))
- throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");
- message.reservedName = [];
- for (var i = 0; i < object.reservedName.length; ++i)
- message.reservedName[i] = String(object.reservedName[i]);
- }
- return message;
- };
+ /**
+ * Creates a Stage message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.Pipeline.Stage
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.Pipeline.Stage} Stage
+ */
+ Stage.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.Pipeline.Stage)
+ return object;
+ var message = new $root.google.firestore.v1.Pipeline.Stage();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.args) {
+ if (!Array.isArray(object.args))
+ throw TypeError(".google.firestore.v1.Pipeline.Stage.args: array expected");
+ message.args = [];
+ for (var i = 0; i < object.args.length; ++i) {
+ if (typeof object.args[i] !== "object")
+ throw TypeError(".google.firestore.v1.Pipeline.Stage.args: object expected");
+ message.args[i] = $root.google.firestore.v1.Value.fromObject(object.args[i]);
+ }
+ }
+ if (object.options) {
+ if (typeof object.options !== "object")
+ throw TypeError(".google.firestore.v1.Pipeline.Stage.options: object expected");
+ message.options = {};
+ for (var keys = Object.keys(object.options), i = 0; i < keys.length; ++i) {
+ if (typeof object.options[keys[i]] !== "object")
+ throw TypeError(".google.firestore.v1.Pipeline.Stage.options: object expected");
+ message.options[keys[i]] = $root.google.firestore.v1.Value.fromObject(object.options[keys[i]]);
+ }
+ }
+ return message;
+ };
- /**
- * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.DescriptorProto
- * @static
- * @param {google.protobuf.DescriptorProto} message DescriptorProto
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- DescriptorProto.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.field = [];
- object.nestedType = [];
- object.enumType = [];
- object.extensionRange = [];
- object.extension = [];
- object.oneofDecl = [];
- object.reservedRange = [];
- object.reservedName = [];
- }
- if (options.defaults) {
- object.name = "";
- object.options = null;
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.field && message.field.length) {
- object.field = [];
- for (var j = 0; j < message.field.length; ++j)
- object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options);
- }
- if (message.nestedType && message.nestedType.length) {
- object.nestedType = [];
- for (var j = 0; j < message.nestedType.length; ++j)
- object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options);
- }
- if (message.enumType && message.enumType.length) {
- object.enumType = [];
- for (var j = 0; j < message.enumType.length; ++j)
- object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options);
- }
- if (message.extensionRange && message.extensionRange.length) {
- object.extensionRange = [];
- for (var j = 0; j < message.extensionRange.length; ++j)
- object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options);
- }
- if (message.extension && message.extension.length) {
- object.extension = [];
- for (var j = 0; j < message.extension.length; ++j)
- object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options);
- }
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options);
- if (message.oneofDecl && message.oneofDecl.length) {
- object.oneofDecl = [];
- for (var j = 0; j < message.oneofDecl.length; ++j)
- object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options);
- }
- if (message.reservedRange && message.reservedRange.length) {
- object.reservedRange = [];
- for (var j = 0; j < message.reservedRange.length; ++j)
- object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options);
- }
- if (message.reservedName && message.reservedName.length) {
- object.reservedName = [];
- for (var j = 0; j < message.reservedName.length; ++j)
- object.reservedName[j] = message.reservedName[j];
- }
- return object;
- };
+ /**
+ * Creates a plain object from a Stage message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.Pipeline.Stage
+ * @static
+ * @param {google.firestore.v1.Pipeline.Stage} message Stage
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Stage.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.args = [];
+ if (options.objects || options.defaults)
+ object.options = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.args && message.args.length) {
+ object.args = [];
+ for (var j = 0; j < message.args.length; ++j)
+ object.args[j] = $root.google.firestore.v1.Value.toObject(message.args[j], options);
+ }
+ var keys2;
+ if (message.options && (keys2 = Object.keys(message.options)).length) {
+ object.options = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.options[keys2[j]] = $root.google.firestore.v1.Value.toObject(message.options[keys2[j]], options);
+ }
+ return object;
+ };
- /**
- * Converts this DescriptorProto to JSON.
- * @function toJSON
- * @memberof google.protobuf.DescriptorProto
- * @instance
- * @returns {Object.} JSON object
- */
- DescriptorProto.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Converts this Stage to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.Pipeline.Stage
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Stage.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Gets the default type url for DescriptorProto
- * @function getTypeUrl
- * @memberof google.protobuf.DescriptorProto
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.DescriptorProto";
- };
+ /**
+ * Gets the default type url for Stage
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.Pipeline.Stage
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Stage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.Pipeline.Stage";
+ };
- DescriptorProto.ExtensionRange = (function() {
+ return Stage;
+ })();
+
+ return Pipeline;
+ })();
+
+ v1.BitSequence = (function() {
/**
- * Properties of an ExtensionRange.
- * @memberof google.protobuf.DescriptorProto
- * @interface IExtensionRange
- * @property {number|null} [start] ExtensionRange start
- * @property {number|null} [end] ExtensionRange end
- * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options
+ * Properties of a BitSequence.
+ * @memberof google.firestore.v1
+ * @interface IBitSequence
+ * @property {Uint8Array|null} [bitmap] BitSequence bitmap
+ * @property {number|null} [padding] BitSequence padding
*/
/**
- * Constructs a new ExtensionRange.
- * @memberof google.protobuf.DescriptorProto
- * @classdesc Represents an ExtensionRange.
- * @implements IExtensionRange
+ * Constructs a new BitSequence.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a BitSequence.
+ * @implements IBitSequence
* @constructor
- * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set
+ * @param {google.firestore.v1.IBitSequence=} [properties] Properties to set
*/
- function ExtensionRange(properties) {
+ function BitSequence(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -2332,128 +2174,121 @@
}
/**
- * ExtensionRange start.
- * @member {number} start
- * @memberof google.protobuf.DescriptorProto.ExtensionRange
- * @instance
- */
- ExtensionRange.prototype.start = 0;
-
- /**
- * ExtensionRange end.
- * @member {number} end
- * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * BitSequence bitmap.
+ * @member {Uint8Array} bitmap
+ * @memberof google.firestore.v1.BitSequence
* @instance
*/
- ExtensionRange.prototype.end = 0;
+ BitSequence.prototype.bitmap = $util.newBuffer([]);
/**
- * ExtensionRange options.
- * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options
- * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * BitSequence padding.
+ * @member {number} padding
+ * @memberof google.firestore.v1.BitSequence
* @instance
*/
- ExtensionRange.prototype.options = null;
+ BitSequence.prototype.padding = 0;
/**
- * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * Creates a BitSequence message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @memberof google.firestore.v1.BitSequence
* @static
* @param {Object.} object Plain object
- * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange
+ * @returns {google.firestore.v1.BitSequence} BitSequence
*/
- ExtensionRange.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange)
+ BitSequence.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.BitSequence)
return object;
- var message = new $root.google.protobuf.DescriptorProto.ExtensionRange();
- if (object.start != null)
- message.start = object.start | 0;
- if (object.end != null)
- message.end = object.end | 0;
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");
- message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options);
- }
+ var message = new $root.google.firestore.v1.BitSequence();
+ if (object.bitmap != null)
+ if (typeof object.bitmap === "string")
+ $util.base64.decode(object.bitmap, message.bitmap = $util.newBuffer($util.base64.length(object.bitmap)), 0);
+ else if (object.bitmap.length >= 0)
+ message.bitmap = object.bitmap;
+ if (object.padding != null)
+ message.padding = object.padding | 0;
return message;
};
/**
- * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * Creates a plain object from a BitSequence message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @memberof google.firestore.v1.BitSequence
* @static
- * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange
+ * @param {google.firestore.v1.BitSequence} message BitSequence
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ExtensionRange.toObject = function toObject(message, options) {
+ BitSequence.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
- object.start = 0;
- object.end = 0;
- object.options = null;
+ if (options.bytes === String)
+ object.bitmap = "";
+ else {
+ object.bitmap = [];
+ if (options.bytes !== Array)
+ object.bitmap = $util.newBuffer(object.bitmap);
+ }
+ object.padding = 0;
}
- if (message.start != null && message.hasOwnProperty("start"))
- object.start = message.start;
- if (message.end != null && message.hasOwnProperty("end"))
- object.end = message.end;
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options);
+ if (message.bitmap != null && message.hasOwnProperty("bitmap"))
+ object.bitmap = options.bytes === String ? $util.base64.encode(message.bitmap, 0, message.bitmap.length) : options.bytes === Array ? Array.prototype.slice.call(message.bitmap) : message.bitmap;
+ if (message.padding != null && message.hasOwnProperty("padding"))
+ object.padding = message.padding;
return object;
};
/**
- * Converts this ExtensionRange to JSON.
+ * Converts this BitSequence to JSON.
* @function toJSON
- * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @memberof google.firestore.v1.BitSequence
* @instance
* @returns {Object.} JSON object
*/
- ExtensionRange.prototype.toJSON = function toJSON() {
+ BitSequence.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for ExtensionRange
+ * Gets the default type url for BitSequence
* @function getTypeUrl
- * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @memberof google.firestore.v1.BitSequence
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ BitSequence.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange";
+ return typeUrlPrefix + "/google.firestore.v1.BitSequence";
};
- return ExtensionRange;
+ return BitSequence;
})();
- DescriptorProto.ReservedRange = (function() {
+ v1.BloomFilter = (function() {
/**
- * Properties of a ReservedRange.
- * @memberof google.protobuf.DescriptorProto
- * @interface IReservedRange
- * @property {number|null} [start] ReservedRange start
- * @property {number|null} [end] ReservedRange end
+ * Properties of a BloomFilter.
+ * @memberof google.firestore.v1
+ * @interface IBloomFilter
+ * @property {google.firestore.v1.IBitSequence|null} [bits] BloomFilter bits
+ * @property {number|null} [hashCount] BloomFilter hashCount
*/
/**
- * Constructs a new ReservedRange.
- * @memberof google.protobuf.DescriptorProto
- * @classdesc Represents a ReservedRange.
- * @implements IReservedRange
+ * Constructs a new BloomFilter.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a BloomFilter.
+ * @implements IBloomFilter
* @constructor
- * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set
+ * @param {google.firestore.v1.IBloomFilter=} [properties] Properties to set
*/
- function ReservedRange(properties) {
+ function BloomFilter(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -2461,299 +2296,115 @@
}
/**
- * ReservedRange start.
- * @member {number} start
- * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * BloomFilter bits.
+ * @member {google.firestore.v1.IBitSequence|null|undefined} bits
+ * @memberof google.firestore.v1.BloomFilter
* @instance
*/
- ReservedRange.prototype.start = 0;
+ BloomFilter.prototype.bits = null;
/**
- * ReservedRange end.
- * @member {number} end
- * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * BloomFilter hashCount.
+ * @member {number} hashCount
+ * @memberof google.firestore.v1.BloomFilter
* @instance
*/
- ReservedRange.prototype.end = 0;
+ BloomFilter.prototype.hashCount = 0;
/**
- * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * Creates a BloomFilter message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @memberof google.firestore.v1.BloomFilter
* @static
* @param {Object.} object Plain object
- * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange
+ * @returns {google.firestore.v1.BloomFilter} BloomFilter
*/
- ReservedRange.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange)
+ BloomFilter.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.BloomFilter)
return object;
- var message = new $root.google.protobuf.DescriptorProto.ReservedRange();
- if (object.start != null)
- message.start = object.start | 0;
- if (object.end != null)
- message.end = object.end | 0;
+ var message = new $root.google.firestore.v1.BloomFilter();
+ if (object.bits != null) {
+ if (typeof object.bits !== "object")
+ throw TypeError(".google.firestore.v1.BloomFilter.bits: object expected");
+ message.bits = $root.google.firestore.v1.BitSequence.fromObject(object.bits);
+ }
+ if (object.hashCount != null)
+ message.hashCount = object.hashCount | 0;
return message;
};
/**
- * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * Creates a plain object from a BloomFilter message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @memberof google.firestore.v1.BloomFilter
* @static
- * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange
+ * @param {google.firestore.v1.BloomFilter} message BloomFilter
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ReservedRange.toObject = function toObject(message, options) {
+ BloomFilter.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
- object.start = 0;
- object.end = 0;
+ object.bits = null;
+ object.hashCount = 0;
}
- if (message.start != null && message.hasOwnProperty("start"))
- object.start = message.start;
- if (message.end != null && message.hasOwnProperty("end"))
- object.end = message.end;
+ if (message.bits != null && message.hasOwnProperty("bits"))
+ object.bits = $root.google.firestore.v1.BitSequence.toObject(message.bits, options);
+ if (message.hashCount != null && message.hasOwnProperty("hashCount"))
+ object.hashCount = message.hashCount;
return object;
};
/**
- * Converts this ReservedRange to JSON.
+ * Converts this BloomFilter to JSON.
* @function toJSON
- * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @memberof google.firestore.v1.BloomFilter
* @instance
* @returns {Object.} JSON object
*/
- ReservedRange.prototype.toJSON = function toJSON() {
+ BloomFilter.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for ReservedRange
+ * Gets the default type url for BloomFilter
* @function getTypeUrl
- * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @memberof google.firestore.v1.BloomFilter
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ BloomFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange";
+ return typeUrlPrefix + "/google.firestore.v1.BloomFilter";
};
- return ReservedRange;
+ return BloomFilter;
})();
- return DescriptorProto;
- })();
-
- protobuf.ExtensionRangeOptions = (function() {
+ v1.DocumentMask = (function() {
- /**
- * Properties of an ExtensionRangeOptions.
- * @memberof google.protobuf
- * @interface IExtensionRangeOptions
- * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption
- * @property {Array.|null} [declaration] ExtensionRangeOptions declaration
- * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features
- * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification
- */
-
- /**
- * Constructs a new ExtensionRangeOptions.
- * @memberof google.protobuf
- * @classdesc Represents an ExtensionRangeOptions.
- * @implements IExtensionRangeOptions
- * @constructor
- * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set
- */
- function ExtensionRangeOptions(properties) {
- this.uninterpretedOption = [];
- this.declaration = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
-
- /**
- * ExtensionRangeOptions uninterpretedOption.
- * @member {Array.} uninterpretedOption
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- */
- ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray;
-
- /**
- * ExtensionRangeOptions declaration.
- * @member {Array.} declaration
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- */
- ExtensionRangeOptions.prototype.declaration = $util.emptyArray;
-
- /**
- * ExtensionRangeOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- */
- ExtensionRangeOptions.prototype.features = null;
-
- /**
- * ExtensionRangeOptions verification.
- * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- */
- ExtensionRangeOptions.prototype.verification = 1;
-
- /**
- * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.ExtensionRangeOptions
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions
- */
- ExtensionRangeOptions.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.ExtensionRangeOptions)
- return object;
- var message = new $root.google.protobuf.ExtensionRangeOptions();
- if (object.uninterpretedOption) {
- if (!Array.isArray(object.uninterpretedOption))
- throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected");
- message.uninterpretedOption = [];
- for (var i = 0; i < object.uninterpretedOption.length; ++i) {
- if (typeof object.uninterpretedOption[i] !== "object")
- throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected");
- message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
- }
- }
- if (object.declaration) {
- if (!Array.isArray(object.declaration))
- throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");
- message.declaration = [];
- for (var i = 0; i < object.declaration.length; ++i) {
- if (typeof object.declaration[i] !== "object")
- throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");
- message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]);
- }
- }
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
- switch (object.verification) {
- case "DECLARATION":
- case 0:
- message.verification = 0;
- break;
- default:
- if (typeof object.verification === "number") {
- message.verification = object.verification;
- break;
- }
- break;
- case "UNVERIFIED":
- case 1:
- message.verification = 1;
- break;
- }
- return message;
- };
-
- /**
- * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.ExtensionRangeOptions
- * @static
- * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- ExtensionRangeOptions.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.declaration = [];
- object.uninterpretedOption = [];
- }
- if (options.defaults) {
- object.verification = options.enums === String ? "UNVERIFIED" : 1;
- object.features = null;
- }
- if (message.declaration && message.declaration.length) {
- object.declaration = [];
- for (var j = 0; j < message.declaration.length; ++j)
- object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options);
- }
- if (message.verification != null && message.hasOwnProperty("verification"))
- object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
- if (message.uninterpretedOption && message.uninterpretedOption.length) {
- object.uninterpretedOption = [];
- for (var j = 0; j < message.uninterpretedOption.length; ++j)
- object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options);
- }
- return object;
- };
-
- /**
- * Converts this ExtensionRangeOptions to JSON.
- * @function toJSON
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- * @returns {Object.} JSON object
- */
- ExtensionRangeOptions.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for ExtensionRangeOptions
- * @function getTypeUrl
- * @memberof google.protobuf.ExtensionRangeOptions
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions";
- };
-
- ExtensionRangeOptions.Declaration = (function() {
+ /**
+ * Properties of a DocumentMask.
+ * @memberof google.firestore.v1
+ * @interface IDocumentMask
+ * @property {Array.|null} [fieldPaths] DocumentMask fieldPaths
+ */
/**
- * Properties of a Declaration.
- * @memberof google.protobuf.ExtensionRangeOptions
- * @interface IDeclaration
- * @property {number|null} [number] Declaration number
- * @property {string|null} [fullName] Declaration fullName
- * @property {string|null} [type] Declaration type
- * @property {boolean|null} [reserved] Declaration reserved
- * @property {boolean|null} [repeated] Declaration repeated
- */
-
- /**
- * Constructs a new Declaration.
- * @memberof google.protobuf.ExtensionRangeOptions
- * @classdesc Represents a Declaration.
- * @implements IDeclaration
+ * Constructs a new DocumentMask.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a DocumentMask.
+ * @implements IDocumentMask
* @constructor
- * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
+ * @param {google.firestore.v1.IDocumentMask=} [properties] Properties to set
*/
- function Declaration(properties) {
+ function DocumentMask(properties) {
+ this.fieldPaths = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -2761,2686 +2412,2524 @@
}
/**
- * Declaration number.
- * @member {number} number
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.number = 0;
-
- /**
- * Declaration fullName.
- * @member {string} fullName
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.fullName = "";
-
- /**
- * Declaration type.
- * @member {string} type
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.type = "";
-
- /**
- * Declaration reserved.
- * @member {boolean} reserved
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.reserved = false;
-
- /**
- * Declaration repeated.
- * @member {boolean} repeated
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
+ * DocumentMask fieldPaths.
+ * @member {Array.} fieldPaths
+ * @memberof google.firestore.v1.DocumentMask
* @instance
*/
- Declaration.prototype.repeated = false;
+ DocumentMask.prototype.fieldPaths = $util.emptyArray;
/**
- * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * Creates a DocumentMask message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
+ * @memberof google.firestore.v1.DocumentMask
* @static
* @param {Object.} object Plain object
- * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
+ * @returns {google.firestore.v1.DocumentMask} DocumentMask
*/
- Declaration.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration)
+ DocumentMask.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.DocumentMask)
return object;
- var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
- if (object.number != null)
- message.number = object.number | 0;
- if (object.fullName != null)
- message.fullName = String(object.fullName);
- if (object.type != null)
- message.type = String(object.type);
- if (object.reserved != null)
- message.reserved = Boolean(object.reserved);
- if (object.repeated != null)
- message.repeated = Boolean(object.repeated);
+ var message = new $root.google.firestore.v1.DocumentMask();
+ if (object.fieldPaths) {
+ if (!Array.isArray(object.fieldPaths))
+ throw TypeError(".google.firestore.v1.DocumentMask.fieldPaths: array expected");
+ message.fieldPaths = [];
+ for (var i = 0; i < object.fieldPaths.length; ++i)
+ message.fieldPaths[i] = String(object.fieldPaths[i]);
+ }
return message;
};
/**
- * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * Creates a plain object from a DocumentMask message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
+ * @memberof google.firestore.v1.DocumentMask
* @static
- * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration
+ * @param {google.firestore.v1.DocumentMask} message DocumentMask
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- Declaration.toObject = function toObject(message, options) {
+ DocumentMask.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults) {
- object.number = 0;
- object.fullName = "";
- object.type = "";
- object.reserved = false;
- object.repeated = false;
+ if (options.arrays || options.defaults)
+ object.fieldPaths = [];
+ if (message.fieldPaths && message.fieldPaths.length) {
+ object.fieldPaths = [];
+ for (var j = 0; j < message.fieldPaths.length; ++j)
+ object.fieldPaths[j] = message.fieldPaths[j];
}
- if (message.number != null && message.hasOwnProperty("number"))
- object.number = message.number;
- if (message.fullName != null && message.hasOwnProperty("fullName"))
- object.fullName = message.fullName;
- if (message.type != null && message.hasOwnProperty("type"))
- object.type = message.type;
- if (message.reserved != null && message.hasOwnProperty("reserved"))
- object.reserved = message.reserved;
- if (message.repeated != null && message.hasOwnProperty("repeated"))
- object.repeated = message.repeated;
return object;
};
/**
- * Converts this Declaration to JSON.
+ * Converts this DocumentMask to JSON.
* @function toJSON
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
+ * @memberof google.firestore.v1.DocumentMask
* @instance
* @returns {Object.} JSON object
*/
- Declaration.prototype.toJSON = function toJSON() {
+ DocumentMask.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Gets the default type url for Declaration
+ * Gets the default type url for DocumentMask
* @function getTypeUrl
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
+ * @memberof google.firestore.v1.DocumentMask
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
- Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ DocumentMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
- return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration";
+ return typeUrlPrefix + "/google.firestore.v1.DocumentMask";
};
- return Declaration;
+ return DocumentMask;
})();
- /**
- * VerificationState enum.
- * @name google.protobuf.ExtensionRangeOptions.VerificationState
- * @enum {string}
- * @property {string} DECLARATION=DECLARATION DECLARATION value
- * @property {string} UNVERIFIED=UNVERIFIED UNVERIFIED value
- */
- ExtensionRangeOptions.VerificationState = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "DECLARATION"] = "DECLARATION";
- values[valuesById[1] = "UNVERIFIED"] = "UNVERIFIED";
- return values;
- })();
+ v1.Precondition = (function() {
- return ExtensionRangeOptions;
- })();
+ /**
+ * Properties of a Precondition.
+ * @memberof google.firestore.v1
+ * @interface IPrecondition
+ * @property {boolean|null} [exists] Precondition exists
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Precondition updateTime
+ */
- protobuf.FieldDescriptorProto = (function() {
+ /**
+ * Constructs a new Precondition.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a Precondition.
+ * @implements IPrecondition
+ * @constructor
+ * @param {google.firestore.v1.IPrecondition=} [properties] Properties to set
+ */
+ function Precondition(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * Properties of a FieldDescriptorProto.
- * @memberof google.protobuf
- * @interface IFieldDescriptorProto
- * @property {string|null} [name] FieldDescriptorProto name
- * @property {number|null} [number] FieldDescriptorProto number
- * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label
- * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type
- * @property {string|null} [typeName] FieldDescriptorProto typeName
- * @property {string|null} [extendee] FieldDescriptorProto extendee
- * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue
- * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex
- * @property {string|null} [jsonName] FieldDescriptorProto jsonName
- * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options
- * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional
- */
+ /**
+ * Precondition exists.
+ * @member {boolean|null|undefined} exists
+ * @memberof google.firestore.v1.Precondition
+ * @instance
+ */
+ Precondition.prototype.exists = null;
- /**
- * Constructs a new FieldDescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents a FieldDescriptorProto.
- * @implements IFieldDescriptorProto
- * @constructor
- * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set
- */
- function FieldDescriptorProto(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ /**
+ * Precondition updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.firestore.v1.Precondition
+ * @instance
+ */
+ Precondition.prototype.updateTime = null;
- /**
- * FieldDescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.name = "";
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
- /**
- * FieldDescriptorProto number.
- * @member {number} number
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.number = 0;
+ /**
+ * Precondition conditionType.
+ * @member {"exists"|"updateTime"|undefined} conditionType
+ * @memberof google.firestore.v1.Precondition
+ * @instance
+ */
+ Object.defineProperty(Precondition.prototype, "conditionType", {
+ get: $util.oneOfGetter($oneOfFields = ["exists", "updateTime"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
- /**
- * FieldDescriptorProto label.
- * @member {google.protobuf.FieldDescriptorProto.Label} label
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.label = 1;
+ /**
+ * Creates a Precondition message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.Precondition
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.Precondition} Precondition
+ */
+ Precondition.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.Precondition)
+ return object;
+ var message = new $root.google.firestore.v1.Precondition();
+ if (object.exists != null)
+ message.exists = Boolean(object.exists);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.firestore.v1.Precondition.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ return message;
+ };
- /**
- * FieldDescriptorProto type.
- * @member {google.protobuf.FieldDescriptorProto.Type} type
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.type = 1;
+ /**
+ * Creates a plain object from a Precondition message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.Precondition
+ * @static
+ * @param {google.firestore.v1.Precondition} message Precondition
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Precondition.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.exists != null && message.hasOwnProperty("exists")) {
+ object.exists = message.exists;
+ if (options.oneofs)
+ object.conditionType = "exists";
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (options.oneofs)
+ object.conditionType = "updateTime";
+ }
+ return object;
+ };
- /**
- * FieldDescriptorProto typeName.
- * @member {string} typeName
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.typeName = "";
+ /**
+ * Converts this Precondition to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.Precondition
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Precondition.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * FieldDescriptorProto extendee.
- * @member {string} extendee
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.extendee = "";
+ /**
+ * Gets the default type url for Precondition
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.Precondition
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Precondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.Precondition";
+ };
- /**
- * FieldDescriptorProto defaultValue.
- * @member {string} defaultValue
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.defaultValue = "";
+ return Precondition;
+ })();
- /**
- * FieldDescriptorProto oneofIndex.
- * @member {number} oneofIndex
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.oneofIndex = 0;
+ v1.TransactionOptions = (function() {
- /**
- * FieldDescriptorProto jsonName.
- * @member {string} jsonName
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.jsonName = "";
+ /**
+ * Properties of a TransactionOptions.
+ * @memberof google.firestore.v1
+ * @interface ITransactionOptions
+ * @property {google.firestore.v1.TransactionOptions.IReadOnly|null} [readOnly] TransactionOptions readOnly
+ * @property {google.firestore.v1.TransactionOptions.IReadWrite|null} [readWrite] TransactionOptions readWrite
+ */
- /**
- * FieldDescriptorProto options.
- * @member {google.protobuf.IFieldOptions|null|undefined} options
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.options = null;
+ /**
+ * Constructs a new TransactionOptions.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a TransactionOptions.
+ * @implements ITransactionOptions
+ * @constructor
+ * @param {google.firestore.v1.ITransactionOptions=} [properties] Properties to set
+ */
+ function TransactionOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * FieldDescriptorProto proto3Optional.
- * @member {boolean} proto3Optional
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.proto3Optional = false;
+ /**
+ * TransactionOptions readOnly.
+ * @member {google.firestore.v1.TransactionOptions.IReadOnly|null|undefined} readOnly
+ * @memberof google.firestore.v1.TransactionOptions
+ * @instance
+ */
+ TransactionOptions.prototype.readOnly = null;
- /**
- * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.FieldDescriptorProto
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto
- */
- FieldDescriptorProto.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.FieldDescriptorProto)
- return object;
- var message = new $root.google.protobuf.FieldDescriptorProto();
- if (object.name != null)
- message.name = String(object.name);
- if (object.number != null)
- message.number = object.number | 0;
- switch (object.label) {
- default:
- if (typeof object.label === "number") {
- message.label = object.label;
- break;
+ /**
+ * TransactionOptions readWrite.
+ * @member {google.firestore.v1.TransactionOptions.IReadWrite|null|undefined} readWrite
+ * @memberof google.firestore.v1.TransactionOptions
+ * @instance
+ */
+ TransactionOptions.prototype.readWrite = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * TransactionOptions mode.
+ * @member {"readOnly"|"readWrite"|undefined} mode
+ * @memberof google.firestore.v1.TransactionOptions
+ * @instance
+ */
+ Object.defineProperty(TransactionOptions.prototype, "mode", {
+ get: $util.oneOfGetter($oneOfFields = ["readOnly", "readWrite"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.TransactionOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.TransactionOptions} TransactionOptions
+ */
+ TransactionOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.TransactionOptions)
+ return object;
+ var message = new $root.google.firestore.v1.TransactionOptions();
+ if (object.readOnly != null) {
+ if (typeof object.readOnly !== "object")
+ throw TypeError(".google.firestore.v1.TransactionOptions.readOnly: object expected");
+ message.readOnly = $root.google.firestore.v1.TransactionOptions.ReadOnly.fromObject(object.readOnly);
}
- break;
- case "LABEL_OPTIONAL":
- case 1:
- message.label = 1;
- break;
- case "LABEL_REPEATED":
- case 3:
- message.label = 3;
- break;
- case "LABEL_REQUIRED":
- case 2:
- message.label = 2;
- break;
- }
- switch (object.type) {
- default:
- if (typeof object.type === "number") {
- message.type = object.type;
- break;
+ if (object.readWrite != null) {
+ if (typeof object.readWrite !== "object")
+ throw TypeError(".google.firestore.v1.TransactionOptions.readWrite: object expected");
+ message.readWrite = $root.google.firestore.v1.TransactionOptions.ReadWrite.fromObject(object.readWrite);
}
- break;
- case "TYPE_DOUBLE":
- case 1:
- message.type = 1;
- break;
- case "TYPE_FLOAT":
- case 2:
- message.type = 2;
- break;
- case "TYPE_INT64":
- case 3:
- message.type = 3;
- break;
- case "TYPE_UINT64":
- case 4:
- message.type = 4;
- break;
- case "TYPE_INT32":
- case 5:
- message.type = 5;
- break;
- case "TYPE_FIXED64":
- case 6:
- message.type = 6;
- break;
- case "TYPE_FIXED32":
- case 7:
- message.type = 7;
- break;
- case "TYPE_BOOL":
- case 8:
- message.type = 8;
- break;
- case "TYPE_STRING":
- case 9:
- message.type = 9;
- break;
- case "TYPE_GROUP":
- case 10:
- message.type = 10;
- break;
- case "TYPE_MESSAGE":
- case 11:
- message.type = 11;
- break;
- case "TYPE_BYTES":
- case 12:
- message.type = 12;
- break;
- case "TYPE_UINT32":
- case 13:
- message.type = 13;
- break;
- case "TYPE_ENUM":
- case 14:
- message.type = 14;
- break;
- case "TYPE_SFIXED32":
- case 15:
- message.type = 15;
- break;
- case "TYPE_SFIXED64":
- case 16:
- message.type = 16;
- break;
- case "TYPE_SINT32":
- case 17:
- message.type = 17;
- break;
- case "TYPE_SINT64":
- case 18:
- message.type = 18;
- break;
- }
- if (object.typeName != null)
- message.typeName = String(object.typeName);
- if (object.extendee != null)
- message.extendee = String(object.extendee);
- if (object.defaultValue != null)
- message.defaultValue = String(object.defaultValue);
- if (object.oneofIndex != null)
- message.oneofIndex = object.oneofIndex | 0;
- if (object.jsonName != null)
- message.jsonName = String(object.jsonName);
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");
- message.options = $root.google.protobuf.FieldOptions.fromObject(object.options);
- }
- if (object.proto3Optional != null)
- message.proto3Optional = Boolean(object.proto3Optional);
- return message;
- };
+ return message;
+ };
- /**
- * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.FieldDescriptorProto
- * @static
- * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- FieldDescriptorProto.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.name = "";
- object.extendee = "";
- object.number = 0;
- object.label = options.enums === String ? "LABEL_OPTIONAL" : 1;
- object.type = options.enums === String ? "TYPE_DOUBLE" : 1;
- object.typeName = "";
- object.defaultValue = "";
- object.options = null;
- object.oneofIndex = 0;
- object.jsonName = "";
- object.proto3Optional = false;
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.extendee != null && message.hasOwnProperty("extendee"))
- object.extendee = message.extendee;
- if (message.number != null && message.hasOwnProperty("number"))
- object.number = message.number;
- if (message.label != null && message.hasOwnProperty("label"))
- object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label;
- if (message.type != null && message.hasOwnProperty("type"))
- object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type;
- if (message.typeName != null && message.hasOwnProperty("typeName"))
- object.typeName = message.typeName;
- if (message.defaultValue != null && message.hasOwnProperty("defaultValue"))
- object.defaultValue = message.defaultValue;
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options);
- if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex"))
- object.oneofIndex = message.oneofIndex;
- if (message.jsonName != null && message.hasOwnProperty("jsonName"))
- object.jsonName = message.jsonName;
- if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional"))
- object.proto3Optional = message.proto3Optional;
- return object;
- };
-
- /**
- * Converts this FieldDescriptorProto to JSON.
- * @function toJSON
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- * @returns {Object.} JSON object
- */
- FieldDescriptorProto.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for FieldDescriptorProto
- * @function getTypeUrl
- * @memberof google.protobuf.FieldDescriptorProto
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto";
- };
-
- /**
- * Type enum.
- * @name google.protobuf.FieldDescriptorProto.Type
- * @enum {string}
- * @property {string} TYPE_DOUBLE=TYPE_DOUBLE TYPE_DOUBLE value
- * @property {string} TYPE_FLOAT=TYPE_FLOAT TYPE_FLOAT value
- * @property {string} TYPE_INT64=TYPE_INT64 TYPE_INT64 value
- * @property {string} TYPE_UINT64=TYPE_UINT64 TYPE_UINT64 value
- * @property {string} TYPE_INT32=TYPE_INT32 TYPE_INT32 value
- * @property {string} TYPE_FIXED64=TYPE_FIXED64 TYPE_FIXED64 value
- * @property {string} TYPE_FIXED32=TYPE_FIXED32 TYPE_FIXED32 value
- * @property {string} TYPE_BOOL=TYPE_BOOL TYPE_BOOL value
- * @property {string} TYPE_STRING=TYPE_STRING TYPE_STRING value
- * @property {string} TYPE_GROUP=TYPE_GROUP TYPE_GROUP value
- * @property {string} TYPE_MESSAGE=TYPE_MESSAGE TYPE_MESSAGE value
- * @property {string} TYPE_BYTES=TYPE_BYTES TYPE_BYTES value
- * @property {string} TYPE_UINT32=TYPE_UINT32 TYPE_UINT32 value
- * @property {string} TYPE_ENUM=TYPE_ENUM TYPE_ENUM value
- * @property {string} TYPE_SFIXED32=TYPE_SFIXED32 TYPE_SFIXED32 value
- * @property {string} TYPE_SFIXED64=TYPE_SFIXED64 TYPE_SFIXED64 value
- * @property {string} TYPE_SINT32=TYPE_SINT32 TYPE_SINT32 value
- * @property {string} TYPE_SINT64=TYPE_SINT64 TYPE_SINT64 value
- */
- FieldDescriptorProto.Type = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[1] = "TYPE_DOUBLE"] = "TYPE_DOUBLE";
- values[valuesById[2] = "TYPE_FLOAT"] = "TYPE_FLOAT";
- values[valuesById[3] = "TYPE_INT64"] = "TYPE_INT64";
- values[valuesById[4] = "TYPE_UINT64"] = "TYPE_UINT64";
- values[valuesById[5] = "TYPE_INT32"] = "TYPE_INT32";
- values[valuesById[6] = "TYPE_FIXED64"] = "TYPE_FIXED64";
- values[valuesById[7] = "TYPE_FIXED32"] = "TYPE_FIXED32";
- values[valuesById[8] = "TYPE_BOOL"] = "TYPE_BOOL";
- values[valuesById[9] = "TYPE_STRING"] = "TYPE_STRING";
- values[valuesById[10] = "TYPE_GROUP"] = "TYPE_GROUP";
- values[valuesById[11] = "TYPE_MESSAGE"] = "TYPE_MESSAGE";
- values[valuesById[12] = "TYPE_BYTES"] = "TYPE_BYTES";
- values[valuesById[13] = "TYPE_UINT32"] = "TYPE_UINT32";
- values[valuesById[14] = "TYPE_ENUM"] = "TYPE_ENUM";
- values[valuesById[15] = "TYPE_SFIXED32"] = "TYPE_SFIXED32";
- values[valuesById[16] = "TYPE_SFIXED64"] = "TYPE_SFIXED64";
- values[valuesById[17] = "TYPE_SINT32"] = "TYPE_SINT32";
- values[valuesById[18] = "TYPE_SINT64"] = "TYPE_SINT64";
- return values;
- })();
+ /**
+ * Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.TransactionOptions
+ * @static
+ * @param {google.firestore.v1.TransactionOptions} message TransactionOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TransactionOptions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.readOnly != null && message.hasOwnProperty("readOnly")) {
+ object.readOnly = $root.google.firestore.v1.TransactionOptions.ReadOnly.toObject(message.readOnly, options);
+ if (options.oneofs)
+ object.mode = "readOnly";
+ }
+ if (message.readWrite != null && message.hasOwnProperty("readWrite")) {
+ object.readWrite = $root.google.firestore.v1.TransactionOptions.ReadWrite.toObject(message.readWrite, options);
+ if (options.oneofs)
+ object.mode = "readWrite";
+ }
+ return object;
+ };
- /**
- * Label enum.
- * @name google.protobuf.FieldDescriptorProto.Label
- * @enum {string}
- * @property {string} LABEL_OPTIONAL=LABEL_OPTIONAL LABEL_OPTIONAL value
- * @property {string} LABEL_REPEATED=LABEL_REPEATED LABEL_REPEATED value
- * @property {string} LABEL_REQUIRED=LABEL_REQUIRED LABEL_REQUIRED value
- */
- FieldDescriptorProto.Label = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[1] = "LABEL_OPTIONAL"] = "LABEL_OPTIONAL";
- values[valuesById[3] = "LABEL_REPEATED"] = "LABEL_REPEATED";
- values[valuesById[2] = "LABEL_REQUIRED"] = "LABEL_REQUIRED";
- return values;
- })();
+ /**
+ * Converts this TransactionOptions to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.TransactionOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TransactionOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- return FieldDescriptorProto;
- })();
+ /**
+ * Gets the default type url for TransactionOptions
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.TransactionOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TransactionOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.TransactionOptions";
+ };
- protobuf.OneofDescriptorProto = (function() {
+ TransactionOptions.ReadWrite = (function() {
- /**
- * Properties of an OneofDescriptorProto.
- * @memberof google.protobuf
- * @interface IOneofDescriptorProto
- * @property {string|null} [name] OneofDescriptorProto name
- * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options
- */
+ /**
+ * Properties of a ReadWrite.
+ * @memberof google.firestore.v1.TransactionOptions
+ * @interface IReadWrite
+ * @property {Uint8Array|null} [retryTransaction] ReadWrite retryTransaction
+ */
- /**
- * Constructs a new OneofDescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents an OneofDescriptorProto.
- * @implements IOneofDescriptorProto
- * @constructor
- * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set
- */
- function OneofDescriptorProto(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ /**
+ * Constructs a new ReadWrite.
+ * @memberof google.firestore.v1.TransactionOptions
+ * @classdesc Represents a ReadWrite.
+ * @implements IReadWrite
+ * @constructor
+ * @param {google.firestore.v1.TransactionOptions.IReadWrite=} [properties] Properties to set
+ */
+ function ReadWrite(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * OneofDescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.OneofDescriptorProto
- * @instance
- */
- OneofDescriptorProto.prototype.name = "";
+ /**
+ * ReadWrite retryTransaction.
+ * @member {Uint8Array} retryTransaction
+ * @memberof google.firestore.v1.TransactionOptions.ReadWrite
+ * @instance
+ */
+ ReadWrite.prototype.retryTransaction = $util.newBuffer([]);
- /**
- * OneofDescriptorProto options.
- * @member {google.protobuf.IOneofOptions|null|undefined} options
- * @memberof google.protobuf.OneofDescriptorProto
- * @instance
- */
- OneofDescriptorProto.prototype.options = null;
+ /**
+ * Creates a ReadWrite message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.TransactionOptions.ReadWrite
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.TransactionOptions.ReadWrite} ReadWrite
+ */
+ ReadWrite.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.TransactionOptions.ReadWrite)
+ return object;
+ var message = new $root.google.firestore.v1.TransactionOptions.ReadWrite();
+ if (object.retryTransaction != null)
+ if (typeof object.retryTransaction === "string")
+ $util.base64.decode(object.retryTransaction, message.retryTransaction = $util.newBuffer($util.base64.length(object.retryTransaction)), 0);
+ else if (object.retryTransaction.length >= 0)
+ message.retryTransaction = object.retryTransaction;
+ return message;
+ };
- /**
- * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.OneofDescriptorProto
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto
- */
- OneofDescriptorProto.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.OneofDescriptorProto)
- return object;
- var message = new $root.google.protobuf.OneofDescriptorProto();
- if (object.name != null)
- message.name = String(object.name);
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");
- message.options = $root.google.protobuf.OneofOptions.fromObject(object.options);
- }
- return message;
- };
+ /**
+ * Creates a plain object from a ReadWrite message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.TransactionOptions.ReadWrite
+ * @static
+ * @param {google.firestore.v1.TransactionOptions.ReadWrite} message ReadWrite
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReadWrite.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ if (options.bytes === String)
+ object.retryTransaction = "";
+ else {
+ object.retryTransaction = [];
+ if (options.bytes !== Array)
+ object.retryTransaction = $util.newBuffer(object.retryTransaction);
+ }
+ if (message.retryTransaction != null && message.hasOwnProperty("retryTransaction"))
+ object.retryTransaction = options.bytes === String ? $util.base64.encode(message.retryTransaction, 0, message.retryTransaction.length) : options.bytes === Array ? Array.prototype.slice.call(message.retryTransaction) : message.retryTransaction;
+ return object;
+ };
- /**
- * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.OneofDescriptorProto
- * @static
- * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- OneofDescriptorProto.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.name = "";
- object.options = null;
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options);
- return object;
- };
+ /**
+ * Converts this ReadWrite to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.TransactionOptions.ReadWrite
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReadWrite.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Converts this OneofDescriptorProto to JSON.
- * @function toJSON
- * @memberof google.protobuf.OneofDescriptorProto
- * @instance
- * @returns {Object.} JSON object
- */
- OneofDescriptorProto.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Gets the default type url for ReadWrite
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.TransactionOptions.ReadWrite
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReadWrite.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.TransactionOptions.ReadWrite";
+ };
- /**
- * Gets the default type url for OneofDescriptorProto
- * @function getTypeUrl
- * @memberof google.protobuf.OneofDescriptorProto
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto";
- };
+ return ReadWrite;
+ })();
- return OneofDescriptorProto;
- })();
+ TransactionOptions.ReadOnly = (function() {
- protobuf.EnumDescriptorProto = (function() {
+ /**
+ * Properties of a ReadOnly.
+ * @memberof google.firestore.v1.TransactionOptions
+ * @interface IReadOnly
+ * @property {google.protobuf.ITimestamp|null} [readTime] ReadOnly readTime
+ */
- /**
- * Properties of an EnumDescriptorProto.
- * @memberof google.protobuf
- * @interface IEnumDescriptorProto
- * @property {string|null} [name] EnumDescriptorProto name
- * @property {Array.|null} [value] EnumDescriptorProto value
- * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
- * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange
- * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName
- */
+ /**
+ * Constructs a new ReadOnly.
+ * @memberof google.firestore.v1.TransactionOptions
+ * @classdesc Represents a ReadOnly.
+ * @implements IReadOnly
+ * @constructor
+ * @param {google.firestore.v1.TransactionOptions.IReadOnly=} [properties] Properties to set
+ */
+ function ReadOnly(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
- /**
- * Constructs a new EnumDescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents an EnumDescriptorProto.
- * @implements IEnumDescriptorProto
- * @constructor
- * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set
- */
- function EnumDescriptorProto(properties) {
- this.value = [];
- this.reservedRange = [];
- this.reservedName = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ /**
+ * ReadOnly readTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} readTime
+ * @memberof google.firestore.v1.TransactionOptions.ReadOnly
+ * @instance
+ */
+ ReadOnly.prototype.readTime = null;
- /**
- * EnumDescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.EnumDescriptorProto
- * @instance
- */
- EnumDescriptorProto.prototype.name = "";
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
- /**
- * EnumDescriptorProto value.
- * @member {Array.} value
- * @memberof google.protobuf.EnumDescriptorProto
- * @instance
- */
- EnumDescriptorProto.prototype.value = $util.emptyArray;
+ /**
+ * ReadOnly consistencySelector.
+ * @member {"readTime"|undefined} consistencySelector
+ * @memberof google.firestore.v1.TransactionOptions.ReadOnly
+ * @instance
+ */
+ Object.defineProperty(ReadOnly.prototype, "consistencySelector", {
+ get: $util.oneOfGetter($oneOfFields = ["readTime"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
- /**
- * EnumDescriptorProto options.
- * @member {google.protobuf.IEnumOptions|null|undefined} options
- * @memberof google.protobuf.EnumDescriptorProto
- * @instance
- */
- EnumDescriptorProto.prototype.options = null;
+ /**
+ * Creates a ReadOnly message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.firestore.v1.TransactionOptions.ReadOnly
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.firestore.v1.TransactionOptions.ReadOnly} ReadOnly
+ */
+ ReadOnly.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.firestore.v1.TransactionOptions.ReadOnly)
+ return object;
+ var message = new $root.google.firestore.v1.TransactionOptions.ReadOnly();
+ if (object.readTime != null) {
+ if (typeof object.readTime !== "object")
+ throw TypeError(".google.firestore.v1.TransactionOptions.ReadOnly.readTime: object expected");
+ message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime);
+ }
+ return message;
+ };
- /**
- * EnumDescriptorProto reservedRange.
- * @member {Array.} reservedRange
- * @memberof google.protobuf.EnumDescriptorProto
- * @instance
- */
- EnumDescriptorProto.prototype.reservedRange = $util.emptyArray;
+ /**
+ * Creates a plain object from a ReadOnly message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.firestore.v1.TransactionOptions.ReadOnly
+ * @static
+ * @param {google.firestore.v1.TransactionOptions.ReadOnly} message ReadOnly
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReadOnly.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.readTime != null && message.hasOwnProperty("readTime")) {
+ object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options);
+ if (options.oneofs)
+ object.consistencySelector = "readTime";
+ }
+ return object;
+ };
- /**
- * EnumDescriptorProto reservedName.
- * @member {Array.} reservedName
- * @memberof google.protobuf.EnumDescriptorProto
- * @instance
- */
- EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
+ /**
+ * Converts this ReadOnly to JSON.
+ * @function toJSON
+ * @memberof google.firestore.v1.TransactionOptions.ReadOnly
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReadOnly.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.EnumDescriptorProto
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto
- */
- EnumDescriptorProto.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.EnumDescriptorProto)
- return object;
- var message = new $root.google.protobuf.EnumDescriptorProto();
- if (object.name != null)
- message.name = String(object.name);
- if (object.value) {
- if (!Array.isArray(object.value))
- throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");
- message.value = [];
- for (var i = 0; i < object.value.length; ++i) {
- if (typeof object.value[i] !== "object")
- throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");
- message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]);
- }
- }
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");
- message.options = $root.google.protobuf.EnumOptions.fromObject(object.options);
- }
- if (object.reservedRange) {
- if (!Array.isArray(object.reservedRange))
- throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected");
- message.reservedRange = [];
- for (var i = 0; i < object.reservedRange.length; ++i) {
- if (typeof object.reservedRange[i] !== "object")
- throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected");
- message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]);
- }
- }
- if (object.reservedName) {
- if (!Array.isArray(object.reservedName))
- throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected");
- message.reservedName = [];
- for (var i = 0; i < object.reservedName.length; ++i)
- message.reservedName[i] = String(object.reservedName[i]);
- }
- return message;
- };
+ /**
+ * Gets the default type url for ReadOnly
+ * @function getTypeUrl
+ * @memberof google.firestore.v1.TransactionOptions.ReadOnly
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReadOnly.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.firestore.v1.TransactionOptions.ReadOnly";
+ };
- /**
- * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.EnumDescriptorProto
- * @static
- * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- EnumDescriptorProto.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.value = [];
- object.reservedRange = [];
- object.reservedName = [];
- }
- if (options.defaults) {
- object.name = "";
- object.options = null;
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.value && message.value.length) {
- object.value = [];
- for (var j = 0; j < message.value.length; ++j)
- object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options);
- }
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options);
- if (message.reservedRange && message.reservedRange.length) {
- object.reservedRange = [];
- for (var j = 0; j < message.reservedRange.length; ++j)
- object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options);
- }
- if (message.reservedName && message.reservedName.length) {
- object.reservedName = [];
- for (var j = 0; j < message.reservedName.length; ++j)
- object.reservedName[j] = message.reservedName[j];
- }
- return object;
- };
+ return ReadOnly;
+ })();
- /**
- * Converts this EnumDescriptorProto to JSON.
- * @function toJSON
- * @memberof google.protobuf.EnumDescriptorProto
- * @instance
- * @returns {Object.} JSON object
- */
- EnumDescriptorProto.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ return TransactionOptions;
+ })();
- /**
- * Gets the default type url for EnumDescriptorProto
- * @function getTypeUrl
- * @memberof google.protobuf.EnumDescriptorProto
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
+ v1.Firestore = (function() {
+
+ /**
+ * Constructs a new Firestore service.
+ * @memberof google.firestore.v1
+ * @classdesc Represents a Firestore
+ * @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 Firestore(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
}
- return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto";
- };
- EnumDescriptorProto.EnumReservedRange = (function() {
+ (Firestore.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Firestore;
/**
- * Properties of an EnumReservedRange.
- * @memberof google.protobuf.EnumDescriptorProto
- * @interface IEnumReservedRange
- * @property {number|null} [start] EnumReservedRange start
- * @property {number|null} [end] EnumReservedRange end
+ * Callback as used by {@link google.firestore.v1.Firestore#getDocument}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef GetDocumentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.Document} [response] Document
*/
/**
- * Constructs a new EnumReservedRange.
- * @memberof google.protobuf.EnumDescriptorProto
- * @classdesc Represents an EnumReservedRange.
- * @implements IEnumReservedRange
- * @constructor
- * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set
+ * Calls GetDocument.
+ * @function getDocument
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IGetDocumentRequest} request GetDocumentRequest message or plain object
+ * @param {google.firestore.v1.Firestore.GetDocumentCallback} callback Node-style callback called with the error, if any, and Document
+ * @returns {undefined}
+ * @variation 1
*/
- function EnumReservedRange(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ Object.defineProperty(Firestore.prototype.getDocument = function getDocument(request, callback) {
+ return this.rpcCall(getDocument, $root.google.firestore.v1.GetDocumentRequest, $root.google.firestore.v1.Document, request, callback);
+ }, "name", { value: "GetDocument" });
/**
- * EnumReservedRange start.
- * @member {number} start
- * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange
+ * Calls GetDocument.
+ * @function getDocument
+ * @memberof google.firestore.v1.Firestore
* @instance
+ * @param {google.firestore.v1.IGetDocumentRequest} request GetDocumentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
*/
- EnumReservedRange.prototype.start = 0;
/**
- * EnumReservedRange end.
- * @member {number} end
- * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange
- * @instance
+ * Callback as used by {@link google.firestore.v1.Firestore#listDocuments}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef ListDocumentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.ListDocumentsResponse} [response] ListDocumentsResponse
*/
- EnumReservedRange.prototype.end = 0;
/**
- * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange
+ * Calls ListDocuments.
+ * @function listDocuments
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IListDocumentsRequest} request ListDocumentsRequest message or plain object
+ * @param {google.firestore.v1.Firestore.ListDocumentsCallback} callback Node-style callback called with the error, if any, and ListDocumentsResponse
+ * @returns {undefined}
+ * @variation 1
*/
- EnumReservedRange.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange)
- return object;
- var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange();
- if (object.start != null)
- message.start = object.start | 0;
- if (object.end != null)
- message.end = object.end | 0;
- return message;
- };
+ Object.defineProperty(Firestore.prototype.listDocuments = function listDocuments(request, callback) {
+ return this.rpcCall(listDocuments, $root.google.firestore.v1.ListDocumentsRequest, $root.google.firestore.v1.ListDocumentsResponse, request, callback);
+ }, "name", { value: "ListDocuments" });
/**
- * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange
- * @static
- * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
+ * Calls ListDocuments.
+ * @function listDocuments
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IListDocumentsRequest} request ListDocumentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
*/
- EnumReservedRange.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.start = 0;
- object.end = 0;
- }
- if (message.start != null && message.hasOwnProperty("start"))
- object.start = message.start;
- if (message.end != null && message.hasOwnProperty("end"))
- object.end = message.end;
- return object;
- };
/**
- * Converts this EnumReservedRange to JSON.
- * @function toJSON
- * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange
+ * Callback as used by {@link google.firestore.v1.Firestore#updateDocument}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef UpdateDocumentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.Document} [response] Document
+ */
+
+ /**
+ * Calls UpdateDocument.
+ * @function updateDocument
+ * @memberof google.firestore.v1.Firestore
* @instance
- * @returns {Object.} JSON object
+ * @param {google.firestore.v1.IUpdateDocumentRequest} request UpdateDocumentRequest message or plain object
+ * @param {google.firestore.v1.Firestore.UpdateDocumentCallback} callback Node-style callback called with the error, if any, and Document
+ * @returns {undefined}
+ * @variation 1
*/
- EnumReservedRange.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ Object.defineProperty(Firestore.prototype.updateDocument = function updateDocument(request, callback) {
+ return this.rpcCall(updateDocument, $root.google.firestore.v1.UpdateDocumentRequest, $root.google.firestore.v1.Document, request, callback);
+ }, "name", { value: "UpdateDocument" });
/**
- * Gets the default type url for EnumReservedRange
- * @function getTypeUrl
- * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
+ * Calls UpdateDocument.
+ * @function updateDocument
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IUpdateDocumentRequest} request UpdateDocumentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
*/
- EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange";
- };
- return EnumReservedRange;
- })();
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#deleteDocument}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef DeleteDocumentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
- return EnumDescriptorProto;
- })();
+ /**
+ * Calls DeleteDocument.
+ * @function deleteDocument
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IDeleteDocumentRequest} request DeleteDocumentRequest message or plain object
+ * @param {google.firestore.v1.Firestore.DeleteDocumentCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.deleteDocument = function deleteDocument(request, callback) {
+ return this.rpcCall(deleteDocument, $root.google.firestore.v1.DeleteDocumentRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteDocument" });
- protobuf.EnumValueDescriptorProto = (function() {
+ /**
+ * Calls DeleteDocument.
+ * @function deleteDocument
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IDeleteDocumentRequest} request DeleteDocumentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
- /**
- * Properties of an EnumValueDescriptorProto.
- * @memberof google.protobuf
- * @interface IEnumValueDescriptorProto
- * @property {string|null} [name] EnumValueDescriptorProto name
- * @property {number|null} [number] EnumValueDescriptorProto number
- * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options
- */
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#batchGetDocuments}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef BatchGetDocumentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.BatchGetDocumentsResponse} [response] BatchGetDocumentsResponse
+ */
- /**
- * Constructs a new EnumValueDescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents an EnumValueDescriptorProto.
- * @implements IEnumValueDescriptorProto
- * @constructor
- * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set
- */
- function EnumValueDescriptorProto(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ /**
+ * Calls BatchGetDocuments.
+ * @function batchGetDocuments
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IBatchGetDocumentsRequest} request BatchGetDocumentsRequest message or plain object
+ * @param {google.firestore.v1.Firestore.BatchGetDocumentsCallback} callback Node-style callback called with the error, if any, and BatchGetDocumentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.batchGetDocuments = function batchGetDocuments(request, callback) {
+ return this.rpcCall(batchGetDocuments, $root.google.firestore.v1.BatchGetDocumentsRequest, $root.google.firestore.v1.BatchGetDocumentsResponse, request, callback);
+ }, "name", { value: "BatchGetDocuments" });
- /**
- * EnumValueDescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.EnumValueDescriptorProto
- * @instance
- */
- EnumValueDescriptorProto.prototype.name = "";
+ /**
+ * Calls BatchGetDocuments.
+ * @function batchGetDocuments
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IBatchGetDocumentsRequest} request BatchGetDocumentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
- /**
- * EnumValueDescriptorProto number.
- * @member {number} number
- * @memberof google.protobuf.EnumValueDescriptorProto
- * @instance
- */
- EnumValueDescriptorProto.prototype.number = 0;
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#beginTransaction}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef BeginTransactionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.BeginTransactionResponse} [response] BeginTransactionResponse
+ */
- /**
- * EnumValueDescriptorProto options.
- * @member {google.protobuf.IEnumValueOptions|null|undefined} options
- * @memberof google.protobuf.EnumValueDescriptorProto
- * @instance
- */
- EnumValueDescriptorProto.prototype.options = null;
+ /**
+ * Calls BeginTransaction.
+ * @function beginTransaction
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IBeginTransactionRequest} request BeginTransactionRequest message or plain object
+ * @param {google.firestore.v1.Firestore.BeginTransactionCallback} callback Node-style callback called with the error, if any, and BeginTransactionResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.beginTransaction = function beginTransaction(request, callback) {
+ return this.rpcCall(beginTransaction, $root.google.firestore.v1.BeginTransactionRequest, $root.google.firestore.v1.BeginTransactionResponse, request, callback);
+ }, "name", { value: "BeginTransaction" });
- /**
- * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.EnumValueDescriptorProto
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto
- */
- EnumValueDescriptorProto.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.EnumValueDescriptorProto)
- return object;
- var message = new $root.google.protobuf.EnumValueDescriptorProto();
- if (object.name != null)
- message.name = String(object.name);
- if (object.number != null)
- message.number = object.number | 0;
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");
- message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options);
- }
- return message;
- };
+ /**
+ * Calls BeginTransaction.
+ * @function beginTransaction
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IBeginTransactionRequest} request BeginTransactionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
- /**
- * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.EnumValueDescriptorProto
- * @static
- * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- EnumValueDescriptorProto.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.name = "";
- object.number = 0;
- object.options = null;
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.number != null && message.hasOwnProperty("number"))
- object.number = message.number;
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options);
- return object;
- };
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#commit}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef CommitCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.CommitResponse} [response] CommitResponse
+ */
- /**
- * Converts this EnumValueDescriptorProto to JSON.
- * @function toJSON
- * @memberof google.protobuf.EnumValueDescriptorProto
- * @instance
- * @returns {Object.} JSON object
- */
- EnumValueDescriptorProto.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Calls Commit.
+ * @function commit
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.ICommitRequest} request CommitRequest message or plain object
+ * @param {google.firestore.v1.Firestore.CommitCallback} callback Node-style callback called with the error, if any, and CommitResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.commit = function commit(request, callback) {
+ return this.rpcCall(commit, $root.google.firestore.v1.CommitRequest, $root.google.firestore.v1.CommitResponse, request, callback);
+ }, "name", { value: "Commit" });
- /**
- * Gets the default type url for EnumValueDescriptorProto
- * @function getTypeUrl
- * @memberof google.protobuf.EnumValueDescriptorProto
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto";
- };
+ /**
+ * Calls Commit.
+ * @function commit
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.ICommitRequest} request CommitRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
- return EnumValueDescriptorProto;
- })();
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#rollback}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef RollbackCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
- protobuf.ServiceDescriptorProto = (function() {
+ /**
+ * Calls Rollback.
+ * @function rollback
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IRollbackRequest} request RollbackRequest message or plain object
+ * @param {google.firestore.v1.Firestore.RollbackCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.rollback = function rollback(request, callback) {
+ return this.rpcCall(rollback, $root.google.firestore.v1.RollbackRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "Rollback" });
- /**
- * Properties of a ServiceDescriptorProto.
- * @memberof google.protobuf
- * @interface IServiceDescriptorProto
- * @property {string|null} [name] ServiceDescriptorProto name
- * @property {Array.|null} [method] ServiceDescriptorProto method
- * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options
- */
+ /**
+ * Calls Rollback.
+ * @function rollback
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IRollbackRequest} request RollbackRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
- /**
- * Constructs a new ServiceDescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents a ServiceDescriptorProto.
- * @implements IServiceDescriptorProto
- * @constructor
- * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set
- */
- function ServiceDescriptorProto(properties) {
- this.method = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#runQuery}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef RunQueryCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.RunQueryResponse} [response] RunQueryResponse
+ */
- /**
- * ServiceDescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.ServiceDescriptorProto
- * @instance
- */
- ServiceDescriptorProto.prototype.name = "";
+ /**
+ * Calls RunQuery.
+ * @function runQuery
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IRunQueryRequest} request RunQueryRequest message or plain object
+ * @param {google.firestore.v1.Firestore.RunQueryCallback} callback Node-style callback called with the error, if any, and RunQueryResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.runQuery = function runQuery(request, callback) {
+ return this.rpcCall(runQuery, $root.google.firestore.v1.RunQueryRequest, $root.google.firestore.v1.RunQueryResponse, request, callback);
+ }, "name", { value: "RunQuery" });
- /**
- * ServiceDescriptorProto method.
- * @member {Array.} method
- * @memberof google.protobuf.ServiceDescriptorProto
- * @instance
- */
- ServiceDescriptorProto.prototype.method = $util.emptyArray;
+ /**
+ * Calls RunQuery.
+ * @function runQuery
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IRunQueryRequest} request RunQueryRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
- /**
- * ServiceDescriptorProto options.
- * @member {google.protobuf.IServiceOptions|null|undefined} options
- * @memberof google.protobuf.ServiceDescriptorProto
- * @instance
- */
- ServiceDescriptorProto.prototype.options = null;
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#executePipeline}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef ExecutePipelineCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.ExecutePipelineResponse} [response] ExecutePipelineResponse
+ */
- /**
- * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.ServiceDescriptorProto
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto
- */
- ServiceDescriptorProto.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.ServiceDescriptorProto)
- return object;
- var message = new $root.google.protobuf.ServiceDescriptorProto();
- if (object.name != null)
- message.name = String(object.name);
- if (object.method) {
- if (!Array.isArray(object.method))
- throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");
- message.method = [];
- for (var i = 0; i < object.method.length; ++i) {
- if (typeof object.method[i] !== "object")
- throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");
- message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]);
- }
- }
- if (object.options != null) {
- if (typeof object.options !== "object")
- throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");
- message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options);
- }
- return message;
- };
+ /**
+ * Calls ExecutePipeline.
+ * @function executePipeline
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IExecutePipelineRequest} request ExecutePipelineRequest message or plain object
+ * @param {google.firestore.v1.Firestore.ExecutePipelineCallback} callback Node-style callback called with the error, if any, and ExecutePipelineResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.executePipeline = function executePipeline(request, callback) {
+ return this.rpcCall(executePipeline, $root.google.firestore.v1.ExecutePipelineRequest, $root.google.firestore.v1.ExecutePipelineResponse, request, callback);
+ }, "name", { value: "ExecutePipeline" });
- /**
- * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.ServiceDescriptorProto
- * @static
- * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- ServiceDescriptorProto.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.method = [];
- if (options.defaults) {
- object.name = "";
- object.options = null;
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.method && message.method.length) {
- object.method = [];
- for (var j = 0; j < message.method.length; ++j)
- object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options);
- }
- if (message.options != null && message.hasOwnProperty("options"))
- object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options);
- return object;
- };
+ /**
+ * Calls ExecutePipeline.
+ * @function executePipeline
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IExecutePipelineRequest} request ExecutePipelineRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
- /**
- * Converts this ServiceDescriptorProto to JSON.
- * @function toJSON
- * @memberof google.protobuf.ServiceDescriptorProto
- * @instance
- * @returns {Object.} JSON object
- */
- ServiceDescriptorProto.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
+ /**
+ * Callback as used by {@link google.firestore.v1.Firestore#runAggregationQuery}.
+ * @memberof google.firestore.v1.Firestore
+ * @typedef RunAggregationQueryCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.firestore.v1.RunAggregationQueryResponse} [response] RunAggregationQueryResponse
+ */
- /**
- * Gets the default type url for ServiceDescriptorProto
- * @function getTypeUrl
- * @memberof google.protobuf.ServiceDescriptorProto
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto";
- };
+ /**
+ * Calls RunAggregationQuery.
+ * @function runAggregationQuery
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IRunAggregationQueryRequest} request RunAggregationQueryRequest message or plain object
+ * @param {google.firestore.v1.Firestore.RunAggregationQueryCallback} callback Node-style callback called with the error, if any, and RunAggregationQueryResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Firestore.prototype.runAggregationQuery = function runAggregationQuery(request, callback) {
+ return this.rpcCall(runAggregationQuery, $root.google.firestore.v1.RunAggregationQueryRequest, $root.google.firestore.v1.RunAggregationQueryResponse, request, callback);
+ }, "name", { value: "RunAggregationQuery" });
- return ServiceDescriptorProto;
- })();
+ /**
+ * Calls RunAggregationQuery.
+ * @function runAggregationQuery
+ * @memberof google.firestore.v1.Firestore
+ * @instance
+ * @param {google.firestore.v1.IRunAggregationQueryRequest} request RunAggregationQueryRequest message or plain object
+ * @returns {Promise