diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 16c6eb41325..f29a5bebdf2 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -49,6 +49,7 @@
"packages/google-cloud-gaming": "3.1.3",
"packages/google-cloud-functions": "2.2.3",
"packages/google-cloud-documentai": "6.1.0",
+ "packages/google-cloud-filestore": "2.2.0",
"packages/google-cloud-gkeconnect-gateway": "2.0.5",
"packages/google-cloud-gkehub": "3.2.2",
"packages/google-cloud-gkemulticloud": "0.1.4",
diff --git a/packages/google-cloud-filestore/.OwlBot.yaml b/packages/google-cloud-filestore/.OwlBot.yaml
new file mode 100644
index 00000000000..a9e89d47113
--- /dev/null
+++ b/packages/google-cloud-filestore/.OwlBot.yaml
@@ -0,0 +1,20 @@
+# Copyright 2021 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.
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/filestore/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-filestore/$1
diff --git a/packages/google-cloud-filestore/.eslintignore b/packages/google-cloud-filestore/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-filestore/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-filestore/.eslintrc.json b/packages/google-cloud-filestore/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-filestore/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-filestore/.gitattributes b/packages/google-cloud-filestore/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-filestore/.gitattributes
@@ -0,0 +1,4 @@
+*.ts text eol=lf
+*.js text eol=lf
+protos/* linguist-generated
+**/api-extractor.json linguist-language=JSON-with-Comments
diff --git a/packages/google-cloud-filestore/.gitignore b/packages/google-cloud-filestore/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-filestore/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+.coverage
+coverage
+.nyc_output
+docs/
+out/
+build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-cloud-filestore/.jsdoc.js b/packages/google-cloud-filestore/.jsdoc.js
new file mode 100644
index 00000000000..52876d4262e
--- /dev/null
+++ b/packages/google-cloud-filestore/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2022 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/filestore',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-filestore/.mocharc.js b/packages/google-cloud-filestore/.mocharc.js
new file mode 100644
index 00000000000..cdb7b752160
--- /dev/null
+++ b/packages/google-cloud-filestore/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2022 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.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-filestore/.nycrc b/packages/google-cloud-filestore/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-filestore/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
diff --git a/packages/google-cloud-filestore/.prettierignore b/packages/google-cloud-filestore/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-filestore/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-filestore/.prettierrc.js b/packages/google-cloud-filestore/.prettierrc.js
new file mode 100644
index 00000000000..d546a4ad546
--- /dev/null
+++ b/packages/google-cloud-filestore/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-filestore/.repo-metadata.json b/packages/google-cloud-filestore/.repo-metadata.json
new file mode 100644
index 00000000000..cccd51f65b1
--- /dev/null
+++ b/packages/google-cloud-filestore/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "name": "filestore",
+ "api_shortname": "filestore",
+ "name_pretty": "Filestore",
+ "product_documentation": "https://cloud.google.com/filestore/",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/filestore/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "stable",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/filestore",
+ "api_id": "file.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-filestore/CHANGELOG.md b/packages/google-cloud-filestore/CHANGELOG.md
new file mode 100644
index 00000000000..79188054a86
--- /dev/null
+++ b/packages/google-cloud-filestore/CHANGELOG.md
@@ -0,0 +1,80 @@
+# Changelog
+
+## [2.2.0](https://github.com/googleapis/nodejs-filestore/compare/v2.1.0...v2.2.0) (2022-11-11)
+
+
+### Features
+
+* New APIs added to reflect updates to the filestore service ([#93](https://github.com/googleapis/nodejs-filestore/issues/93)) ([619e7f1](https://github.com/googleapis/nodejs-filestore/commit/619e7f142a621303afc58b38261711d33584ea5f))
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#82](https://github.com/googleapis/nodejs-filestore/issues/82)) ([37a928b](https://github.com/googleapis/nodejs-filestore/commit/37a928bf3c049d0cd66e4efa5d41717fa5ff9a28))
+* Better support for fallback mode ([#77](https://github.com/googleapis/nodejs-filestore/issues/77)) ([c339f3f](https://github.com/googleapis/nodejs-filestore/commit/c339f3f49c0a10fd2d42a64de20a9d2f06ae061e))
+* Change import long to require ([#78](https://github.com/googleapis/nodejs-filestore/issues/78)) ([c9ce9d1](https://github.com/googleapis/nodejs-filestore/commit/c9ce9d147dd1cc6f99b63e53af9cf75c1999dc90))
+* **deps:** Use google-gax v3.5.2 ([#89](https://github.com/googleapis/nodejs-filestore/issues/89)) ([5fde972](https://github.com/googleapis/nodejs-filestore/commit/5fde972b08be1106b42bce644f1282f690b93677))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-filestore/issues/1553)) ([#81](https://github.com/googleapis/nodejs-filestore/issues/81)) ([e0b4ac4](https://github.com/googleapis/nodejs-filestore/commit/e0b4ac42145ad648f3ae5f6c77917a2dd94d5192))
+* Preserve default values in x-goog-request-params header ([#83](https://github.com/googleapis/nodejs-filestore/issues/83)) ([2cd3cb0](https://github.com/googleapis/nodejs-filestore/commit/2cd3cb022d1cb11fa3d04dbda58fd32de995c462))
+* Regenerated protos JS and TS definitions ([#92](https://github.com/googleapis/nodejs-filestore/issues/92)) ([cb324b9](https://github.com/googleapis/nodejs-filestore/commit/cb324b9f3f93eaea7228386e5bf406ed570bafcc))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-filestore/issues/1546)) ([#80](https://github.com/googleapis/nodejs-filestore/issues/80)) ([73de8d6](https://github.com/googleapis/nodejs-filestore/commit/73de8d63b8b221df09c193400d1028cf3924a6ae))
+* use google-gax v3.3.0 ([e0b4ac4](https://github.com/googleapis/nodejs-filestore/commit/e0b4ac42145ad648f3ae5f6c77917a2dd94d5192))
+
+## [2.1.0](https://github.com/googleapis/nodejs-filestore/compare/v2.0.0...v2.1.0) (2022-06-30)
+
+
+### Features
+
+* support regapic LRO ([#71](https://github.com/googleapis/nodejs-filestore/issues/71)) ([69dedbe](https://github.com/googleapis/nodejs-filestore/commit/69dedbeb0ba429dbb768b4823a53bab01caa3e7d))
+
+## [2.0.0](https://github.com/googleapis/nodejs-filestore/compare/v1.1.2...v2.0.0) (2022-05-19)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#66)
+
+### Build System
+
+* update library to use Node 12 ([#66](https://github.com/googleapis/nodejs-filestore/issues/66)) ([fed26fc](https://github.com/googleapis/nodejs-filestore/commit/fed26fc96372b8c15237a1500ae27ce88d4ec936))
+
+### [1.1.2](https://github.com/googleapis/nodejs-filestore/compare/v1.1.1...v1.1.2) (2022-02-03)
+
+
+### Bug Fixes
+
+* update the pattern for "file.googleapis.com/Snapshot" resource for the Filestore V1Beta1 ([#43](https://github.com/googleapis/nodejs-filestore/issues/43)) ([1b6e7b7](https://github.com/googleapis/nodejs-filestore/commit/1b6e7b71d739c3c428410b343c824907e3d58cc6))
+
+### [1.1.1](https://www.github.com/googleapis/nodejs-filestore/compare/v1.1.0...v1.1.1) (2021-10-14)
+
+
+### Bug Fixes
+
+* **filestore:** add missing operation_metadata.proto import ([#24](https://www.github.com/googleapis/nodejs-filestore/issues/24)) ([58f6bd0](https://www.github.com/googleapis/nodejs-filestore/commit/58f6bd08080f79e8b60967f27990783660b0f1be))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-filestore/compare/v1.0.1...v1.1.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#14](https://www.github.com/googleapis/nodejs-filestore/issues/14)) ([00c32a4](https://www.github.com/googleapis/nodejs-filestore/commit/00c32a4eaeaf6e4f19559a38e51d2b5ec23197b4))
+
+### [1.0.1](https://www.github.com/googleapis/nodejs-filestore/compare/v1.0.0...v1.0.1) (2021-08-17)
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#11](https://www.github.com/googleapis/nodejs-filestore/issues/11)) ([ce9e2eb](https://www.github.com/googleapis/nodejs-filestore/commit/ce9e2eb86e80b122d67f0b283597ba13e4b366ad))
+* **deps:** google-gax v2.24.1 ([#13](https://www.github.com/googleapis/nodejs-filestore/issues/13)) ([1a27c34](https://www.github.com/googleapis/nodejs-filestore/commit/1a27c34790099af5a5aa6e091b2c1207cc43d7da))
+
+## 1.0.0 (2021-07-21)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial generation of filestore API (#2)
+
+### Features
+
+* initial generation of filestore API ([#2](https://www.github.com/googleapis/nodejs-filestore/issues/2)) ([385821e](https://www.github.com/googleapis/nodejs-filestore/commit/385821e88e1036e780b4d7ca9c784e771afa024f))
+* initial stub of library ([59904e4](https://www.github.com/googleapis/nodejs-filestore/commit/59904e4219e4c8d2b5bd4a474d604ccd91647322))
diff --git a/packages/google-cloud-filestore/CODE_OF_CONDUCT.md b/packages/google-cloud-filestore/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-filestore/CODE_OF_CONDUCT.md
@@ -0,0 +1,94 @@
+
+# Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, gender identity and expression, level of
+experience, education, socio-economic status, nationality, personal appearance,
+race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, or to ban temporarily or permanently any
+contributor for other behaviors that they deem inappropriate, threatening,
+offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+This Code of Conduct also applies outside the project spaces when the Project
+Steward has a reasonable belief that an individual's behavior may have a
+negative impact on the project or its community.
+
+## Conflict Resolution
+
+We do not believe that all conflict is bad; healthy debate and disagreement
+often yield positive results. However, it is never okay to be disrespectful or
+to engage in behavior that violates the project’s code of conduct.
+
+If you see someone violating the code of conduct, you are encouraged to address
+the behavior directly with those involved. Many issues can be resolved quickly
+and easily, and this gives people more control over the outcome of their
+dispute. If you are unable to resolve the matter for any reason, or if the
+behavior is threatening or harassing, report it. We are dedicated to providing
+an environment where participants feel welcome and safe.
+
+Reports should be directed to *googleapis-stewards@google.com*, the
+Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
+receive and address reported violations of the code of conduct. They will then
+work with a committee consisting of representatives from the Open Source
+Programs Office and the Google Open Source Strategy team. If for any reason you
+are uncomfortable reaching out to the Project Steward, please email
+opensource@google.com.
+
+We will investigate every complaint, but you may not receive a direct response.
+We will use our discretion in determining when and how to follow up on reported
+incidents, which may range from not taking action to permanent expulsion from
+the project and project-sponsored spaces. We will notify the accused of the
+report and provide them an opportunity to discuss it before any action is taken.
+The identity of the reporter will be omitted from the details of the report
+supplied to the accused. In potentially harmful situations, such as ongoing
+harassment or threats to anyone's safety, we may take action without notice.
+
+## Attribution
+
+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
diff --git a/packages/google-cloud-filestore/CONTRIBUTING.md b/packages/google-cloud-filestore/CONTRIBUTING.md
new file mode 100644
index 00000000000..4d20b52f046
--- /dev/null
+++ b/packages/google-cloud-filestore/CONTRIBUTING.md
@@ -0,0 +1,76 @@
+# How to become a contributor and submit your own code
+
+**Table of contents**
+
+* [Contributor License Agreements](#contributor-license-agreements)
+* [Contributing a patch](#contributing-a-patch)
+* [Running the tests](#running-the-tests)
+* [Releasing the library](#releasing-the-library)
+
+## Contributor License Agreements
+
+We'd love to accept your sample apps and patches! Before we can take them, we
+have to jump a couple of legal hurdles.
+
+Please fill out either the individual or corporate Contributor License Agreement
+(CLA).
+
+ * If you are an individual writing original source code and you're sure you
+ own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
+ * If you work for a company that wants to allow you to contribute your work,
+ then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
+
+Follow either of the two links above to access the appropriate CLA and
+instructions for how to sign and return it. Once we receive it, we'll be able to
+accept your pull requests.
+
+## Contributing A Patch
+
+1. Submit an issue describing your proposed change to the repo in question.
+1. The repo owner will respond to your issue promptly.
+1. If your proposed change is accepted, and you haven't already done so, sign a
+ Contributor License Agreement (see details above).
+1. Fork the desired repo, develop and test your code changes.
+1. Ensure that your code adheres to the existing style in the code to which
+ you are contributing.
+1. Ensure that your code has an appropriate set of tests which all pass.
+1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling.
+1. Submit a pull request.
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Filestore API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+
+## Running the tests
+
+1. [Prepare your environment for Node.js setup][setup].
+
+1. Install dependencies:
+
+ npm install
+
+1. Run the tests:
+
+ # Run unit tests.
+ npm test
+
+ # Run sample integration tests.
+ npm run samples-test
+
+ # Run all system tests.
+ npm run system-test
+
+1. Lint (and maybe fix) any changes:
+
+ npm run fix
+
+[setup]: https://cloud.google.com/nodejs/docs/setup
+[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=file.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-filestore/LICENSE b/packages/google-cloud-filestore/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-filestore/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
diff --git a/packages/google-cloud-filestore/README.md b/packages/google-cloud-filestore/README.md
new file mode 100644
index 00000000000..d97cd43a79e
--- /dev/null
+++ b/packages/google-cloud-filestore/README.md
@@ -0,0 +1,192 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Filestore: Node.js Client](https://github.com/googleapis/google-cloud-node)
+
+[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
+[![npm version](https://img.shields.io/npm/v/@google-cloud/filestore.svg)](https://www.npmjs.org/package/@google-cloud/filestore)
+
+
+
+
+file client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-filestore/CHANGELOG.md).
+
+* [Filestore Node.js Client API Reference][client-docs]
+* [Filestore Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-filestore](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-filestore)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+ * [Using the client library](#using-the-client-library)
+* [Samples](#samples)
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Filestore API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+### Installing the client library
+
+```bash
+npm install @google-cloud/filestore
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+// const projectId = 'my-project';
+// const location = 'us-central1-a';
+
+// Imports the Google Cloud Some API library
+const {CloudFilestoreManagerClient} = require('@google-cloud/filestore');
+const client = new CloudFilestoreManagerClient();
+async function listInstances() {
+ for await (const instance of client.listInstancesAsync({
+ parent: `projects/${projectId}/locations/${location}`,
+ })) {
+ console.info(instance);
+ }
+}
+listInstances();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Cloud_filestore_manager.create_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.create_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.create_backup.js,samples/README.md) |
+| Cloud_filestore_manager.create_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.create_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.create_instance.js,samples/README.md) |
+| Cloud_filestore_manager.delete_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.delete_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.delete_backup.js,samples/README.md) |
+| Cloud_filestore_manager.delete_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.delete_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.delete_instance.js,samples/README.md) |
+| Cloud_filestore_manager.get_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.get_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.get_backup.js,samples/README.md) |
+| Cloud_filestore_manager.get_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.get_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.get_instance.js,samples/README.md) |
+| Cloud_filestore_manager.list_backups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.list_backups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.list_backups.js,samples/README.md) |
+| Cloud_filestore_manager.list_instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.list_instances.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.list_instances.js,samples/README.md) |
+| Cloud_filestore_manager.restore_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.restore_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.restore_instance.js,samples/README.md) |
+| Cloud_filestore_manager.update_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.update_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.update_backup.js,samples/README.md) |
+| Cloud_filestore_manager.update_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.update_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1/cloud_filestore_manager.update_instance.js,samples/README.md) |
+| Cloud_filestore_manager.create_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_backup.js,samples/README.md) |
+| Cloud_filestore_manager.create_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_instance.js,samples/README.md) |
+| Cloud_filestore_manager.create_share | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_share.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_share.js,samples/README.md) |
+| Cloud_filestore_manager.create_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.create_snapshot.js,samples/README.md) |
+| Cloud_filestore_manager.delete_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_backup.js,samples/README.md) |
+| Cloud_filestore_manager.delete_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_instance.js,samples/README.md) |
+| Cloud_filestore_manager.delete_share | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_share.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_share.js,samples/README.md) |
+| Cloud_filestore_manager.delete_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.delete_snapshot.js,samples/README.md) |
+| Cloud_filestore_manager.get_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_backup.js,samples/README.md) |
+| Cloud_filestore_manager.get_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_instance.js,samples/README.md) |
+| Cloud_filestore_manager.get_share | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_share.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_share.js,samples/README.md) |
+| Cloud_filestore_manager.get_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.get_snapshot.js,samples/README.md) |
+| Cloud_filestore_manager.list_backups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_backups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_backups.js,samples/README.md) |
+| Cloud_filestore_manager.list_instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_instances.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_instances.js,samples/README.md) |
+| Cloud_filestore_manager.list_shares | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_shares.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_shares.js,samples/README.md) |
+| Cloud_filestore_manager.list_snapshots | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_snapshots.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.list_snapshots.js,samples/README.md) |
+| Cloud_filestore_manager.restore_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.restore_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.restore_instance.js,samples/README.md) |
+| Cloud_filestore_manager.revert_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.revert_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.revert_instance.js,samples/README.md) |
+| Cloud_filestore_manager.update_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_backup.js,samples/README.md) |
+| Cloud_filestore_manager.update_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_instance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_instance.js,samples/README.md) |
+| Cloud_filestore_manager.update_share | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_share.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_share.js,samples/README.md) |
+| Cloud_filestore_manager.update_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/generated/v1beta1/cloud_filestore_manager.update_snapshot.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/quickstart.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-filestore/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-filestore/samples/test/quickstart.js,samples/README.md) |
+
+
+
+The [Filestore Node.js Client API Reference][client-docs] documentation
+also contains samples.
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/filestore@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
+unless absolutely necessary (e.g. because of critical security issues) or with
+an extensive deprecation period. Issues and requests against **stable** libraries
+are addressed with the highest priority.
+
+
+
+
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/filestore/latest
+[product-docs]: https://cloud.google.com/filestore/
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=file.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-filestore/linkinator.config.json b/packages/google-cloud-filestore/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-filestore/linkinator.config.json
@@ -0,0 +1,16 @@
+{
+ "recurse": true,
+ "skip": [
+ "https://codecov.io/gh/googleapis/",
+ "www.googleapis.com",
+ "img.shields.io",
+ "https://console.cloud.google.com/cloudshell",
+ "https://support.google.com"
+ ],
+ "silent": true,
+ "concurrency": 5,
+ "retry": true,
+ "retryErrors": true,
+ "retryErrorsCount": 5,
+ "retryErrorsJitter": 3000
+}
diff --git a/packages/google-cloud-filestore/package.json b/packages/google-cloud-filestore/package.json
new file mode 100644
index 00000000000..8d20c8d57b0
--- /dev/null
+++ b/packages/google-cloud-filestore/package.json
@@ -0,0 +1,71 @@
+{
+ "name": "@google-cloud/filestore",
+ "version": "2.2.0",
+ "description": "file client for Node.js",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-filestore",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google file",
+ "file",
+ "file service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "prelint": "cd samples; npm link ../; npm install",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "test": "c8 mocha build/test"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.7.2",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.1.2",
+ "typescript": "^4.6.4",
+ "webpack": "^5.36.2",
+ "webpack-cli": "^4.7.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-filestore"
+}
diff --git a/packages/google-cloud-filestore/protos/google/cloud/common/operation_metadata.proto b/packages/google-cloud-filestore/protos/google/cloud/common/operation_metadata.proto
new file mode 100644
index 00000000000..24300e36f8a
--- /dev/null
+++ b/packages/google-cloud-filestore/protos/google/cloud/common/operation_metadata.proto
@@ -0,0 +1,53 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.common;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/common;common";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.common";
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have successfully been cancelled
+ // have [Operation.error][] value with a [google.rpc.Status.code][] of 1,
+ // corresponding to `Code.CANCELLED`.
+ bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-filestore/protos/google/cloud/filestore/v1/cloud_filestore_service.proto b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1/cloud_filestore_service.proto
new file mode 100644
index 00000000000..676fa0b2fc5
--- /dev/null
+++ b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1/cloud_filestore_service.proto
@@ -0,0 +1,718 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.filestore.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/common/operation_metadata.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+
+option csharp_namespace = "Google.Cloud.Filestore.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/filestore/v1;filestore";
+option java_multiple_files = true;
+option java_outer_classname = "CloudFilestoreServiceProto";
+option java_package = "com.google.cloud.filestore.v1";
+option php_namespace = "Google\\Cloud\\Filestore\\V1";
+
+// Configures and manages Cloud Filestore resources.
+//
+// Cloud Filestore Manager v1.
+//
+// The `file.googleapis.com` service implements the Cloud Filestore API and
+// defines the following resource model for managing instances:
+// * The service works with a collection of cloud projects, named: `/projects/*`
+// * Each project has a collection of available locations, named: `/locations/*`
+// * Each location has a collection of instances and backups, named:
+// `/instances/*` and `/backups/*` respectively.
+// * As such, Cloud Filestore instances are resources of the form:
+// `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
+// and backups are resources of the form:
+// `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
+//
+// Note that location_id must be a GCP `zone` for instances and but to a GCP
+// `region` for backups; for example:
+// * `projects/12345/locations/us-central1-c/instances/my-filestore`
+// * `projects/12345/locations/us-central1/backups/my-backup`
+service CloudFilestoreManager {
+ option (google.api.default_host) = "file.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists all instances in a project for either a specified location
+ // or for all locations.
+ rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/instances"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a specific instance.
+ rpc GetInstance(GetInstanceRequest) returns (Instance) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/instances/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates an instance.
+ // When creating from a backup, the capacity of the new instance needs to be
+ // equal to or larger than the capacity of the backup (and also equal to or
+ // larger than the minimum capacity of the tier).
+ rpc CreateInstance(CreateInstanceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/instances"
+ body: "instance"
+ };
+ option (google.api.method_signature) = "parent,instance,instance_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific instance.
+ rpc UpdateInstance(UpdateInstanceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{instance.name=projects/*/locations/*/instances/*}"
+ body: "instance"
+ };
+ option (google.api.method_signature) = "instance,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Restores an existing instance's file share from a backup.
+ //
+ // The capacity of the instance needs to be equal to or larger than the
+ // capacity of the backup (and also equal to or larger than the minimum
+ // capacity of the tier).
+ rpc RestoreInstance(RestoreInstanceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/instances/*}:restore"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Deletes an instance.
+ rpc DeleteInstance(DeleteInstanceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/instances/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Lists all backups in a project for either a specified location or for all
+ // locations.
+ rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/backups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a specific backup.
+ rpc GetBackup(GetBackupRequest) returns (Backup) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a backup.
+ rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/backups"
+ body: "backup"
+ };
+ option (google.api.method_signature) = "parent,backup,backup_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Backup"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Deletes a backup.
+ rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific backup.
+ rpc UpdateBackup(UpdateBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{backup.name=projects/*/locations/*/backups/*}"
+ body: "backup"
+ };
+ option (google.api.method_signature) = "backup,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Backup"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+}
+
+// Network configuration for the instance.
+message NetworkConfig {
+ // Internet protocol versions supported by Cloud Filestore.
+ enum AddressMode {
+ // Internet protocol not set.
+ ADDRESS_MODE_UNSPECIFIED = 0;
+
+ // Use the IPv4 internet protocol.
+ MODE_IPV4 = 1;
+ }
+
+ // The name of the Google Compute Engine
+ // [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
+ // instance is connected.
+ string network = 1;
+
+ // Internet protocol versions for which the instance has IP addresses
+ // assigned. For this version, only MODE_IPV4 is supported.
+ repeated AddressMode modes = 3;
+
+ // A /29 CIDR block in one of the
+ // [internal IP address
+ // ranges](https://www.arin.net/reference/research/statistics/address_filters/)
+ // that identifies the range of IP addresses reserved for this instance. For
+ // example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify can't overlap
+ // with either existing subnets or assigned IP address ranges for other Cloud
+ // Filestore instances in the selected VPC network.
+ string reserved_ip_range = 4;
+
+ // Output only. IPv4 addresses in the format
+ // IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+ // IPv6 addresses in the format
+ // `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
+ repeated string ip_addresses = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// File share configuration for the instance.
+message FileShareConfig {
+ // The name of the file share (must be 16 characters or less).
+ string name = 1;
+
+ // File share capacity in gigabytes (GB).
+ // Cloud Filestore defines 1 GB as 1024^3 bytes.
+ int64 capacity_gb = 2;
+
+ // The source that this file share has been restored from. Empty if the file
+ // share is created from scratch.
+ oneof source {
+ // The resource name of the backup, in the format
+ // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
+ // that this file share has been restored from.
+ string source_backup = 8 [
+ (google.api.resource_reference) = { type: "file.googleapis.com/Backup" }
+ ];
+ }
+
+ // Nfs Export Options.
+ // There is a limit of 10 export options per file share.
+ repeated NfsExportOptions nfs_export_options = 7;
+}
+
+// NFS export options specifications.
+message NfsExportOptions {
+ // The access mode.
+ enum AccessMode {
+ // AccessMode not set.
+ ACCESS_MODE_UNSPECIFIED = 0;
+
+ // The client can only read the file share.
+ READ_ONLY = 1;
+
+ // The client can read and write the file share (default).
+ READ_WRITE = 2;
+ }
+
+ // The squash mode.
+ enum SquashMode {
+ // SquashMode not set.
+ SQUASH_MODE_UNSPECIFIED = 0;
+
+ // The Root user has root access to the file share (default).
+ NO_ROOT_SQUASH = 1;
+
+ // The Root user has squashed access to the anonymous uid/gid.
+ ROOT_SQUASH = 2;
+ }
+
+ // List of either an IPv4 addresses in the format
+ // `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
+ // `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
+ // file share.
+ // Overlapping IP ranges are not allowed, both within and across
+ // NfsExportOptions. An error will be returned.
+ // The limit is 64 IP ranges/addresses for each FileShareConfig among all
+ // NfsExportOptions.
+ repeated string ip_ranges = 1;
+
+ // Either READ_ONLY, for allowing only read requests on the exported
+ // directory, or READ_WRITE, for allowing both read and write requests.
+ // The default is READ_WRITE.
+ AccessMode access_mode = 2;
+
+ // Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
+ // or ROOT_SQUASH, for not allowing root access. The default is
+ // NO_ROOT_SQUASH.
+ SquashMode squash_mode = 3;
+
+ // An integer representing the anonymous user id with a default value of
+ // 65534.
+ // Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
+ // returned if this field is specified for other squash_mode settings.
+ int64 anon_uid = 4;
+
+ // An integer representing the anonymous group id with a default value of
+ // 65534.
+ // Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
+ // returned if this field is specified for other squash_mode settings.
+ int64 anon_gid = 5;
+}
+
+// A Cloud Filestore instance.
+message Instance {
+ option (google.api.resource) = {
+ type: "file.googleapis.com/Instance"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}"
+ };
+
+ // The instance state.
+ enum State {
+ // State not set.
+ STATE_UNSPECIFIED = 0;
+
+ // The instance is being created.
+ CREATING = 1;
+
+ // The instance is available for use.
+ READY = 2;
+
+ // Work is being done on the instance. You can get further details from the
+ // `statusMessage` field of the `Instance` resource.
+ REPAIRING = 3;
+
+ // The instance is shutting down.
+ DELETING = 4;
+
+ // The instance is experiencing an issue and might be unusable. You can get
+ // further details from the `statusMessage` field of the `Instance`
+ // resource.
+ ERROR = 6;
+
+ // The instance is restoring a backup to an existing file share and may be
+ // unusable during this time.
+ RESTORING = 7;
+ }
+
+ // Available service tiers.
+ enum Tier {
+ // Not set.
+ TIER_UNSPECIFIED = 0;
+
+ // STANDARD tier.
+ STANDARD = 1;
+
+ // PREMIUM tier.
+ PREMIUM = 2;
+
+ // BASIC instances offer a maximum capacity of 63.9 TB.
+ // BASIC_HDD is an alias for STANDARD Tier, offering economical
+ // performance backed by HDD.
+ BASIC_HDD = 3;
+
+ // BASIC instances offer a maximum capacity of 63.9 TB.
+ // BASIC_SSD is an alias for PREMIUM Tier, and offers improved
+ // performance backed by SSD.
+ BASIC_SSD = 4;
+
+ // HIGH_SCALE instances offer expanded capacity and performance scaling
+ // capabilities.
+ HIGH_SCALE_SSD = 5;
+ }
+
+ // Output only. The resource name of the instance, in the format
+ // `projects/{project}/locations/{location}/instances/{instance}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The description of the instance (2048 characters or less).
+ string description = 2;
+
+ // Output only. The instance state.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Additional information about the instance state, if available.
+ string status_message = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the instance was created.
+ google.protobuf.Timestamp create_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The service tier of the instance.
+ Tier tier = 8;
+
+ // Resource labels to represent user provided metadata.
+ map labels = 9;
+
+ // File system shares on the instance.
+ // For this version, only a single file share is supported.
+ repeated FileShareConfig file_shares = 10;
+
+ // VPC networks to which the instance is connected.
+ // For this version, only a single network is supported.
+ repeated NetworkConfig networks = 11;
+
+ // Server-specified ETag for the instance resource to prevent simultaneous
+ // updates from overwriting each other.
+ string etag = 12;
+
+ // Output only. Reserved for future use.
+ google.protobuf.BoolValue satisfies_pzs = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// CreateInstanceRequest creates an instance.
+message CreateInstanceRequest {
+ // Required. The instance's project and location, in the format
+ // `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+ // locations map to GCP zones, for example **us-west1-b**.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The name of the instance to create.
+ // The name must be unique for the specified project and location.
+ string instance_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. An [instance resource][google.cloud.filestore.v1.Instance]
+ Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// GetInstanceRequest gets the state of an instance.
+message GetInstanceRequest {
+ // Required. The instance resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "file.googleapis.com/Instance" }
+ ];
+}
+
+// UpdateInstanceRequest updates the settings of an instance.
+message UpdateInstanceRequest {
+ // Mask of fields to update. At least one path must be supplied in this
+ // field. The elements of the repeated paths field may only include these
+ // fields:
+ //
+ // * "description"
+ // * "file_shares"
+ // * "labels"
+ google.protobuf.FieldMask update_mask = 1;
+
+ // Only fields specified in update_mask are updated.
+ Instance instance = 2;
+}
+
+// RestoreInstanceRequest restores an existing instances's file share from a
+// backup.
+message RestoreInstanceRequest {
+ // Required. The resource name of the instance, in the format
+ // `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "file.googleapis.com/Instance" }
+ ];
+
+ // Required. Name of the file share in the Cloud Filestore instance that the
+ // backup is being restored to.
+ string file_share = 2 [(google.api.field_behavior) = REQUIRED];
+
+ oneof source {
+ // The resource name of the backup, in the format
+ // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
+ string source_backup = 3 [
+ (google.api.resource_reference) = { type: "file.googleapis.com/Backup" }
+ ];
+ }
+}
+
+// DeleteInstanceRequest deletes an instance.
+message DeleteInstanceRequest {
+ // Required. The instance resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "file.googleapis.com/Instance" }
+ ];
+}
+
+// ListInstancesRequest lists instances.
+message ListInstancesRequest {
+ // Required. The project and location for which to retrieve instance
+ // information, in the format `projects/{project_id}/locations/{location}`. In
+ // Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
+ // retrieve instance information for all locations, use "-" for the
+ // `{location}` value.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value to use if there are additional
+ // results to retrieve for this list request.
+ string page_token = 3;
+
+ // Sort results. Supported values are "name", "name desc" or "" (unsorted).
+ string order_by = 4;
+
+ // List filter.
+ string filter = 5;
+}
+
+// ListInstancesResponse is the result of ListInstancesRequest.
+message ListInstancesResponse {
+ // A list of instances in the project for the specified location.
+ //
+ // If the `{location}` value in the request is "-", the response contains a
+ // list of instances from all locations. If any location is unreachable, the
+ // response will only return instances in reachable locations and the
+ // "unreachable" field will be populated with a list of unreachable locations.
+ repeated Instance instances = 1;
+
+ // The token you can use to retrieve the next page of results. Not returned
+ // if there are no more results in the list.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// A Cloud Filestore backup.
+message Backup {
+ option (google.api.resource) = {
+ type: "file.googleapis.com/Backup"
+ pattern: "projects/{project}/locations/{location}/backups/{backup}"
+ };
+
+ // The backup state.
+ enum State {
+ // State not set.
+ STATE_UNSPECIFIED = 0;
+
+ // Backup is being created.
+ CREATING = 1;
+
+ // Backup has been taken and the operation is being finalized. At this
+ // point, changes to the file share will not be reflected in the backup.
+ FINALIZING = 2;
+
+ // Backup is available for use.
+ READY = 3;
+
+ // Backup is being deleted.
+ DELETING = 4;
+ }
+
+ // Output only. The resource name of the backup, in the format
+ // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A description of the backup with 2048 characters or less.
+ // Requests with longer descriptions will be rejected.
+ string description = 2;
+
+ // Output only. The backup state.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the backup was created.
+ google.protobuf.Timestamp create_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Resource labels to represent user provided metadata.
+ map labels = 5;
+
+ // Output only. Capacity of the source file share when the backup was created.
+ int64 capacity_gb = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The size of the storage used by the backup. As backups share
+ // storage, this number is expected to change with backup creation/deletion.
+ int64 storage_bytes = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The resource name of the source Cloud Filestore instance, in the format
+ // `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
+ // used to create this backup.
+ string source_instance = 8 [
+ (google.api.resource_reference) = { type: "file.googleapis.com/Instance" }
+ ];
+
+ // Name of the file share in the source Cloud Filestore instance that the
+ // backup is created from.
+ string source_file_share = 9;
+
+ // Output only. The service tier of the source Cloud Filestore instance that
+ // this backup is created from.
+ Instance.Tier source_instance_tier = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Amount of bytes that will be downloaded if the backup is
+ // restored. This may be different than storage bytes, since sequential
+ // backups of the same disk will share storage.
+ int64 download_bytes = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Reserved for future use.
+ google.protobuf.BoolValue satisfies_pzs = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// CreateBackupRequest creates a backup.
+message CreateBackupRequest {
+ // Required. The backup's project and location, in the format
+ // `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+ // backup locations map to GCP regions, for example **us-west1**.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. A [backup resource][google.cloud.filestore.v1.Backup]
+ Backup backup = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the backup.
+ // The ID must be unique within the specified project and location.
+ //
+ // This value must start with a lowercase letter followed by up to 62
+ // lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+ // Values that do not match this pattern will trigger an INVALID_ARGUMENT
+ // error.
+ string backup_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteBackupRequest deletes a backup.
+message DeleteBackupRequest {
+ // Required. The backup resource name, in the format
+ // `projects/{project_number}/locations/{location}/backups/{backup_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "file.googleapis.com/Backup" }
+ ];
+}
+
+// UpdateBackupRequest updates description and/or labels for a backup.
+message UpdateBackupRequest {
+ // Required. A [backup resource][google.cloud.filestore.v1.Backup]
+ Backup backup = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Mask of fields to update. At least one path must be supplied in
+ // this field.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// GetBackupRequest gets the state of a backup.
+message GetBackupRequest {
+ // Required. The backup resource name, in the format
+ // `projects/{project_number}/locations/{location}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "file.googleapis.com/Backup" }
+ ];
+}
+
+// ListBackupsRequest lists backups.
+message ListBackupsRequest {
+ // Required. The project and location for which to retrieve backup
+ // information, in the format
+ // `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+ // backup locations map to GCP regions, for example **us-west1**. To retrieve
+ // backup information for all locations, use "-" for the
+ // `{location}` value.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value to use if there are additional
+ // results to retrieve for this list request.
+ string page_token = 3;
+
+ // Sort results. Supported values are "name", "name desc" or "" (unsorted).
+ string order_by = 4;
+
+ // List filter.
+ string filter = 5;
+}
+
+// ListBackupsResponse is the result of ListBackupsRequest.
+message ListBackupsResponse {
+ // A list of backups in the project for the specified location.
+ //
+ // If the `{location}` value in the request is "-", the response contains a
+ // list of backups from all locations. If any location is unreachable, the
+ // response will only return backups in reachable locations and the
+ // "unreachable" field will be populated with a list of unreachable
+ // locations.
+ repeated Backup backups = 1;
+
+ // The token you can use to retrieve the next page of results. Not returned
+ // if there are no more results in the list.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
diff --git a/packages/google-cloud-filestore/protos/google/cloud/filestore/v1beta1/cloud_filestore_service.proto b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1beta1/cloud_filestore_service.proto
new file mode 100644
index 00000000000..bf600312e2d
--- /dev/null
+++ b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1beta1/cloud_filestore_service.proto
@@ -0,0 +1,1242 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.filestore.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/common/operation_metadata.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+
+option csharp_namespace = "Google.Cloud.Filestore.V1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/filestore/v1beta1;filestore";
+option java_multiple_files = true;
+option java_outer_classname = "CloudFilestoreServiceProto";
+option java_package = "com.google.cloud.filestore.v1beta1";
+option php_namespace = "Google\\Cloud\\Filestore\\V1beta1";
+
+// Configures and manages Filestore resources.
+//
+// Filestore Manager v1beta1.
+//
+// The `file.googleapis.com` service implements the Filestore API and
+// defines the following model for managing resources:
+// * The service works with a collection of cloud projects, named: `/projects/*`
+// * Each project has a collection of available locations, named: `/locations/*`
+// * Each location has a collection of instances and backups, named:
+// `/instances/*` and `/backups/*` respectively.
+// * As such, Filestore instances are resources of the form:
+// `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+// backups are resources of the form:
+// `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+//
+// Note that location_id can represent a GCP `zone` or `region` depending on the
+// resource.
+// for example:
+// A zonal Filestore instance:
+// * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+// A regional Filestore instance:
+// * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+service CloudFilestoreManager {
+ option (google.api.default_host) = "file.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists all instances in a project for either a specified location
+ // or for all locations.
+ rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*}/instances"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a specific instance.
+ rpc GetInstance(GetInstanceRequest) returns (Instance) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/instances/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates an instance.
+ // When creating from a backup, the capacity of the new instance needs to be
+ // equal to or larger than the capacity of the backup (and also equal to or
+ // larger than the minimum capacity of the tier).
+ rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}/instances"
+ body: "instance"
+ };
+ option (google.api.method_signature) = "parent,instance,instance_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific instance.
+ rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{instance.name=projects/*/locations/*/instances/*}"
+ body: "instance"
+ };
+ option (google.api.method_signature) = "instance,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Restores an existing instance's file share from a backup.
+ //
+ // The capacity of the instance needs to be equal to or larger than the
+ // capacity of the backup (and also equal to or larger than the minimum
+ // capacity of the tier).
+ rpc RestoreInstance(RestoreInstanceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/instances/*}:restore"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Revert an existing instance's file system to a specified snapshot.
+ rpc RevertInstance(RevertInstanceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/instances/*}:revert"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Deletes an instance.
+ rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/instances/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Lists all snapshots in a project for either a specified location
+ // or for all locations.
+ rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*/instances/*}/snapshots"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a specific snapshot.
+ rpc GetSnapshot(GetSnapshotRequest) returns (Snapshot) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/instances/*/snapshots/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a snapshot.
+ rpc CreateSnapshot(CreateSnapshotRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*/instances/*}/snapshots"
+ body: "snapshot"
+ };
+ option (google.api.method_signature) = "parent,snapshot,snapshot_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Snapshot"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Deletes a snapshot.
+ rpc DeleteSnapshot(DeleteSnapshotRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/instances/*/snapshots/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific snapshot.
+ rpc UpdateSnapshot(UpdateSnapshotRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{snapshot.name=projects/*/locations/*/instances/*/snapshots/*}"
+ body: "snapshot"
+ };
+ option (google.api.method_signature) = "snapshot,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Snapshot"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Lists all backups in a project for either a specified location or for all
+ // locations.
+ rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*}/backups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a specific backup.
+ rpc GetBackup(GetBackupRequest) returns (Backup) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a backup.
+ rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}/backups"
+ body: "backup"
+ };
+ option (google.api.method_signature) = "parent,backup,backup_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Backup"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Deletes a backup.
+ rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/backups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific backup.
+ rpc UpdateBackup(UpdateBackupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{backup.name=projects/*/locations/*/backups/*}"
+ body: "backup"
+ };
+ option (google.api.method_signature) = "backup,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Backup"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Lists all shares for a specified instance.
+ rpc ListShares(ListSharesRequest) returns (ListSharesResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*/instances/*}/shares"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the details of a specific share.
+ rpc GetShare(GetShareRequest) returns (Share) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/instances/*/shares/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a share.
+ rpc CreateShare(CreateShareRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*/instances/*}/shares"
+ body: "share"
+ };
+ option (google.api.method_signature) = "parent,share,share_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Share"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Deletes a share.
+ rpc DeleteShare(DeleteShareRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/instances/*/shares/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific share.
+ rpc UpdateShare(UpdateShareRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{share.name=projects/*/locations/*/instances/*/shares/*}"
+ body: "share"
+ };
+ option (google.api.method_signature) = "share,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Share"
+ metadata_type: "google.cloud.common.OperationMetadata"
+ };
+ }
+}
+
+// Network configuration for the instance.
+message NetworkConfig {
+ // Internet protocol versions supported by Filestore.
+ enum AddressMode {
+ // Internet protocol not set.
+ ADDRESS_MODE_UNSPECIFIED = 0;
+
+ // Use the IPv4 internet protocol.
+ MODE_IPV4 = 1;
+ }
+
+ // Available connection modes.
+ enum ConnectMode {
+ // ConnectMode not set.
+ CONNECT_MODE_UNSPECIFIED = 0;
+
+ // Connect via direct peering to the Filestore service.
+ DIRECT_PEERING = 1;
+
+ // Connect to your Filestore instance using Private Service
+ // Access. Private services access provides an IP address range for multiple
+ // Google Cloud services, including Filestore.
+ PRIVATE_SERVICE_ACCESS = 2;
+ }
+
+ // The name of the Google Compute Engine
+ // [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
+ // instance is connected.
+ string network = 1;
+
+ // Internet protocol versions for which the instance has IP addresses
+ // assigned. For this version, only MODE_IPV4 is supported.
+ repeated AddressMode modes = 3;
+
+ // Optional, reserved_ip_range can have one of the following two types of
+ // values.
+ //
+ // * CIDR range value when using DIRECT_PEERING connect mode.
+ // * [Allocated IP address
+ // range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+ // when using PRIVATE_SERVICE_ACCESS connect mode.
+ //
+ // When the name of an allocated IP address range is specified, it must be one
+ // of the ranges associated with the private service access connection.
+ // When specified as a direct CIDR value, it must be a /29 CIDR block for
+ // Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+ // Enterprise tier in one of the [internal IP address
+ // ranges](https://www.arin.net/reference/research/statistics/address_filters/)
+ // that identifies the range of IP addresses reserved for this instance. For
+ // example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+ // range you specify can't overlap with either existing subnets or assigned IP
+ // address ranges for other Filestore instances in the selected VPC
+ // network.
+ string reserved_ip_range = 4;
+
+ // Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+ // IPv6 addresses in the format
+ // `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
+ repeated string ip_addresses = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The network connect mode of the Filestore instance.
+ // If not provided, the connect mode defaults to DIRECT_PEERING.
+ ConnectMode connect_mode = 6;
+}
+
+// File share configuration for the instance.
+message FileShareConfig {
+ // The name of the file share (must be 32 characters or less for
+ // Enterprise and High Scale SSD tiers and 16 characters or less for all other
+ // tiers).
+ string name = 1;
+
+ // File share capacity in gigabytes (GB).
+ // Filestore defines 1 GB as 1024^3 bytes.
+ int64 capacity_gb = 2;
+
+ // The source that this file share has been restored from. Empty if the file
+ // share is created from scratch.
+ oneof source {
+ // The resource name of the backup, in the format
+ // `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
+ // this file share has been restored from.
+ string source_backup = 9 [(google.api.resource_reference) = {
+ type: "file.googleapis.com/Backup"
+ }];
+ }
+
+ // Nfs Export Options.
+ // There is a limit of 10 export options per file share.
+ repeated NfsExportOptions nfs_export_options = 8;
+}
+
+// NFS export options specifications.
+message NfsExportOptions {
+ // The access mode.
+ enum AccessMode {
+ // AccessMode not set.
+ ACCESS_MODE_UNSPECIFIED = 0;
+
+ // The client can only read the file share.
+ READ_ONLY = 1;
+
+ // The client can read and write the file share (default).
+ READ_WRITE = 2;
+ }
+
+ // The squash mode.
+ enum SquashMode {
+ // SquashMode not set.
+ SQUASH_MODE_UNSPECIFIED = 0;
+
+ // The Root user has root access to the file share (default).
+ NO_ROOT_SQUASH = 1;
+
+ // The Root user has squashed access to the anonymous uid/gid.
+ ROOT_SQUASH = 2;
+ }
+
+ // List of either an IPv4 addresses in the format
+ // `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
+ // `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
+ // file share.
+ // Overlapping IP ranges are not allowed, both within and across
+ // NfsExportOptions. An error will be returned.
+ // The limit is 64 IP ranges/addresses for each FileShareConfig among all
+ // NfsExportOptions.
+ repeated string ip_ranges = 1;
+
+ // Either READ_ONLY, for allowing only read requests on the exported
+ // directory, or READ_WRITE, for allowing both read and write requests.
+ // The default is READ_WRITE.
+ AccessMode access_mode = 2;
+
+ // Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
+ // or ROOT_SQUASH, for not allowing root access. The default is
+ // NO_ROOT_SQUASH.
+ SquashMode squash_mode = 3;
+
+ // An integer representing the anonymous user id with a default value of
+ // 65534.
+ // Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
+ // returned if this field is specified for other squash_mode settings.
+ int64 anon_uid = 4;
+
+ // An integer representing the anonymous group id with a default value of
+ // 65534.
+ // Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
+ // returned if this field is specified for other squash_mode settings.
+ int64 anon_gid = 5;
+}
+
+// A Filestore instance.
+message Instance {
+ option (google.api.resource) = {
+ type: "file.googleapis.com/Instance"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}"
+ };
+
+ // The instance state.
+ enum State {
+ // State not set.
+ STATE_UNSPECIFIED = 0;
+
+ // The instance is being created.
+ CREATING = 1;
+
+ // The instance is available for use.
+ READY = 2;
+
+ // Work is being done on the instance. You can get further details from the
+ // `statusMessage` field of the `Instance` resource.
+ REPAIRING = 3;
+
+ // The instance is shutting down.
+ DELETING = 4;
+
+ // The instance is experiencing an issue and might be unusable. You can get
+ // further details from the `statusMessage` field of the `Instance`
+ // resource.
+ ERROR = 6;
+
+ // The instance is restoring a snapshot or backup to an existing file share
+ // and may be unusable during this time.
+ RESTORING = 7;
+
+ // The instance is suspended. You can get further details from
+ // the `suspension_reasons` field of the `Instance` resource.
+ SUSPENDED = 8;
+
+ // The instance is reverting to a snapshot.
+ REVERTING = 9;
+
+ // The instance is in the process of becoming suspended.
+ SUSPENDING = 10;
+
+ // The instance is in the process of becoming active.
+ RESUMING = 11;
+ }
+
+ // Available service tiers.
+ enum Tier {
+ // Not set.
+ TIER_UNSPECIFIED = 0;
+
+ // STANDARD tier. BASIC_HDD is the preferred term for this tier.
+ STANDARD = 1;
+
+ // PREMIUM tier. BASIC_SSD is the preferred term for this tier.
+ PREMIUM = 2;
+
+ // BASIC instances offer a maximum capacity of 63.9 TB.
+ // BASIC_HDD is an alias for STANDARD Tier, offering economical
+ // performance backed by HDD.
+ BASIC_HDD = 3;
+
+ // BASIC instances offer a maximum capacity of 63.9 TB.
+ // BASIC_SSD is an alias for PREMIUM Tier, and offers improved
+ // performance backed by SSD.
+ BASIC_SSD = 4;
+
+ // HIGH_SCALE instances offer expanded capacity and performance scaling
+ // capabilities.
+ HIGH_SCALE_SSD = 6;
+
+ // ENTERPRISE instances offer the features and availability needed for
+ // mission-critical workloads.
+ ENTERPRISE = 7;
+ }
+
+ // SuspensionReason contains the possible reasons for a suspension.
+ enum SuspensionReason {
+ // Not set.
+ SUSPENSION_REASON_UNSPECIFIED = 0;
+
+ // The KMS key used by the instance is either revoked or denied access to.
+ KMS_KEY_ISSUE = 1;
+ }
+
+ // Output only. The resource name of the instance, in the format
+ // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The description of the instance (2048 characters or less).
+ string description = 2;
+
+ // Output only. The instance state.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Additional information about the instance state, if available.
+ string status_message = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the instance was created.
+ google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The service tier of the instance.
+ Tier tier = 8;
+
+ // Resource labels to represent user provided metadata.
+ map labels = 9;
+
+ // File system shares on the instance.
+ // For this version, only a single file share is supported.
+ repeated FileShareConfig file_shares = 10;
+
+ // VPC networks to which the instance is connected.
+ // For this version, only a single network is supported.
+ repeated NetworkConfig networks = 11;
+
+ // Server-specified ETag for the instance resource to prevent simultaneous
+ // updates from overwriting each other.
+ string etag = 12;
+
+ // Output only. Reserved for future use.
+ google.protobuf.BoolValue satisfies_pzs = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // KMS key name used for data encryption.
+ string kms_key_name = 14;
+
+ // Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+ repeated SuspensionReason suspension_reasons = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The max capacity of the instance.
+ int64 max_capacity_gb = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The increase/decrease capacity step size.
+ int64 capacity_step_size_gb = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The max number of shares allowed.
+ int64 max_share_count = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
+ // This capacity can be increased up to `max_capacity_gb` GB in multipliers
+ // of `capacity_step_size_gb` GB.
+ int64 capacity_gb = 19;
+
+ // Indicates whether this instance uses a multi-share configuration with which
+ // it can have more than one file-share or none at all. File-shares are added,
+ // updated and removed through the separate file-share APIs.
+ bool multi_share_enabled = 20;
+}
+
+// CreateInstanceRequest creates an instance.
+message CreateInstanceRequest {
+ // Required. The instance's project and location, in the format
+ // `projects/{project_id}/locations/{location}`. In Filestore,
+ // locations map to GCP zones, for example **us-west1-b**.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The ID of the instance to create.
+ // The ID must be unique within the specified project and location.
+ //
+ // This value must start with a lowercase letter followed by up to 62
+ // lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+ string instance_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
+ Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// GetInstanceRequest gets the state of an instance.
+message GetInstanceRequest {
+ // Required. The instance resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+}
+
+// UpdateInstanceRequest updates the settings of an instance.
+message UpdateInstanceRequest {
+ // Required. Mask of fields to update. At least one path must be supplied in this
+ // field. The elements of the repeated paths field may only include these
+ // fields:
+ //
+ // * "description"
+ // * "file_shares"
+ // * "labels"
+ google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Only fields specified in update_mask are updated.
+ Instance instance = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// RestoreInstanceRequest restores an existing instance's file share from a
+// snapshot or backup.
+message RestoreInstanceRequest {
+ // Required. The resource name of the instance, in the format
+ // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+
+ // Required. Name of the file share in the Filestore instance that the snapshot
+ // is being restored to.
+ string file_share = 2 [(google.api.field_behavior) = REQUIRED];
+
+ oneof source {
+ // The resource name of the snapshot, in the format
+ // `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
+ string source_snapshot = 3 [(google.api.resource_reference) = {
+ type: "file.googleapis.com/Snapshot"
+ }];
+
+ // The resource name of the backup, in the format
+ // `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
+ string source_backup = 4 [(google.api.resource_reference) = {
+ type: "file.googleapis.com/Backup"
+ }];
+ }
+}
+
+// RevertInstanceRequest reverts the given instance's file share to the
+// specified snapshot.
+message RevertInstanceRequest {
+ // Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+ // The resource name of the instance, in the format
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+
+ // Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+ // ID is the {snapshot_id} of the fully qualified name like
+ // projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+ string target_snapshot_id = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteInstanceRequest deletes an instance.
+message DeleteInstanceRequest {
+ // Required. The instance resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+
+ // If set to true, any snapshots of the instance will also be deleted.
+ // (Otherwise, the request will only work if the instance has no snapshots.)
+ bool force = 2;
+}
+
+// ListInstancesRequest lists instances.
+message ListInstancesRequest {
+ // Required. The project and location for which to retrieve instance information,
+ // in the format `projects/{project_id}/locations/{location}`. In Cloud
+ // Filestore, locations map to GCP zones, for example **us-west1-b**. To
+ // retrieve instance information for all locations, use "-" for the
+ // `{location}` value.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value to use if there are additional
+ // results to retrieve for this list request.
+ string page_token = 3;
+
+ // Sort results. Supported values are "name", "name desc" or "" (unsorted).
+ string order_by = 4;
+
+ // List filter.
+ string filter = 5;
+}
+
+// ListInstancesResponse is the result of ListInstancesRequest.
+message ListInstancesResponse {
+ // A list of instances in the project for the specified location.
+ //
+ // If the `{location}` value in the request is "-", the response contains a
+ // list of instances from all locations. If any location is unreachable, the
+ // response will only return instances in reachable locations and the
+ // "unreachable" field will be populated with a list of unreachable locations.
+ repeated Instance instances = 1;
+
+ // The token you can use to retrieve the next page of results. Not returned
+ // if there are no more results in the list.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// A Filestore snapshot.
+message Snapshot {
+ option (google.api.resource) = {
+ type: "file.googleapis.com/Snapshot"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/snapshots/{snapshot}"
+ };
+
+ // The snapshot state.
+ enum State {
+ // State not set.
+ STATE_UNSPECIFIED = 0;
+
+ // Snapshot is being created.
+ CREATING = 1;
+
+ // Snapshot is available for use.
+ READY = 3;
+
+ // Snapshot is being deleted.
+ DELETING = 4;
+ }
+
+ // Output only. The resource name of the snapshot, in the format
+ // `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A description of the snapshot with 2048 characters or less.
+ // Requests with longer descriptions will be rejected.
+ string description = 2;
+
+ // Output only. The snapshot state.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the snapshot was created.
+ google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Resource labels to represent user provided metadata.
+ map labels = 5;
+
+ // Output only. The amount of bytes needed to allocate a full copy of the snapshot content
+ int64 filesystem_used_bytes = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// CreateSnapshotRequest creates a snapshot.
+message CreateSnapshotRequest {
+ // Required. The Filestore Instance to create the snapshots of, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+
+ // Required. The ID to use for the snapshot.
+ // The ID must be unique within the specified instance.
+ //
+ // This value must start with a lowercase letter followed by up to 62
+ // lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+ string snapshot_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A snapshot resource
+ Snapshot snapshot = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// GetSnapshotRequest gets the state of a snapshot.
+message GetSnapshotRequest {
+ // Required. The snapshot resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Snapshot"
+ }
+ ];
+}
+
+// DeleteSnapshotRequest deletes a snapshot.
+message DeleteSnapshotRequest {
+ // Required. The snapshot resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Snapshot"
+ }
+ ];
+}
+
+// UpdateSnapshotRequest updates description and/or labels for a snapshot.
+message UpdateSnapshotRequest {
+ // Required. Mask of fields to update. At least one path must be supplied in this
+ // field.
+ google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A snapshot resource
+ Snapshot snapshot = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// ListSnapshotsRequest lists snapshots.
+message ListSnapshotsRequest {
+ // Required. The instance for which to retrieve snapshot information,
+ // in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value to use if there are additional
+ // results to retrieve for this list request.
+ string page_token = 3;
+
+ // Sort results. Supported values are "name", "name desc" or "" (unsorted).
+ string order_by = 4;
+
+ // List filter.
+ string filter = 5;
+}
+
+// ListSnapshotsResponse is the result of ListSnapshotsRequest.
+message ListSnapshotsResponse {
+ // A list of snapshots in the project for the specified instance.
+ repeated Snapshot snapshots = 1;
+
+ // The token you can use to retrieve the next page of results. Not returned
+ // if there are no more results in the list.
+ string next_page_token = 2;
+}
+
+// A Filestore backup.
+message Backup {
+ option (google.api.resource) = {
+ type: "file.googleapis.com/Backup"
+ pattern: "projects/{project}/locations/{location}/backups/{backup}"
+ };
+
+ // The backup state.
+ enum State {
+ // State not set.
+ STATE_UNSPECIFIED = 0;
+
+ // Backup is being created.
+ CREATING = 1;
+
+ // Backup has been taken and the operation is being finalized. At this
+ // point, changes to the file share will not be reflected in the backup.
+ FINALIZING = 2;
+
+ // Backup is available for use.
+ READY = 3;
+
+ // Backup is being deleted.
+ DELETING = 4;
+ }
+
+ // Output only. The resource name of the backup, in the format
+ // `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A description of the backup with 2048 characters or less.
+ // Requests with longer descriptions will be rejected.
+ string description = 2;
+
+ // Output only. The backup state.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the backup was created.
+ google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Resource labels to represent user provided metadata.
+ map labels = 5;
+
+ // Output only. Capacity of the source file share when the backup was created.
+ int64 capacity_gb = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The size of the storage used by the backup. As backups share storage,
+ // this number is expected to change with backup creation/deletion.
+ int64 storage_bytes = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The resource name of the source Filestore instance, in the format
+ // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
+ // used to create this backup.
+ string source_instance = 8 [(google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }];
+
+ // Name of the file share in the source Filestore instance that the
+ // backup is created from.
+ string source_file_share = 9;
+
+ // Output only. The service tier of the source Filestore instance that this backup
+ // is created from.
+ Instance.Tier source_instance_tier = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Amount of bytes that will be downloaded if the backup is restored
+ int64 download_bytes = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Reserved for future use.
+ google.protobuf.BoolValue satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Immutable. KMS key name used for data encryption.
+ string kms_key_name = 13 [(google.api.field_behavior) = IMMUTABLE];
+}
+
+// CreateBackupRequest creates a backup.
+message CreateBackupRequest {
+ // Required. The backup's project and location, in the format
+ // `projects/{project_id}/locations/{location}`. In Filestore,
+ // backup locations map to GCP regions, for example **us-west1**.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
+ Backup backup = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the backup.
+ // The ID must be unique within the specified project and location.
+ //
+ // This value must start with a lowercase letter followed by up to 62
+ // lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+ string backup_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteBackupRequest deletes a backup.
+message DeleteBackupRequest {
+ // Required. The backup resource name, in the format
+ // `projects/{project_id}/locations/{location}/backups/{backup_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Backup"
+ }
+ ];
+}
+
+// UpdateBackupRequest updates description and/or labels for a backup.
+message UpdateBackupRequest {
+ // Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
+ Backup backup = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Mask of fields to update. At least one path must be supplied in this
+ // field.
+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// GetBackupRequest gets the state of a backup.
+message GetBackupRequest {
+ // Required. The backup resource name, in the format
+ // `projects/{project_id}/locations/{location}/backups/{backup_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Backup"
+ }
+ ];
+}
+
+// ListBackupsRequest lists backups.
+message ListBackupsRequest {
+ // Required. The project and location for which to retrieve backup information,
+ // in the format `projects/{project_id}/locations/{location}`.
+ // In Filestore, backup locations map to GCP regions,
+ // for example **us-west1**.
+ // To retrieve backup information for all locations, use "-" for the
+ // `{location}` value.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value to use if there are additional
+ // results to retrieve for this list request.
+ string page_token = 3;
+
+ // Sort results. Supported values are "name", "name desc" or "" (unsorted).
+ string order_by = 4;
+
+ // List filter.
+ string filter = 5;
+}
+
+// ListBackupsResponse is the result of ListBackupsRequest.
+message ListBackupsResponse {
+ // A list of backups in the project for the specified location.
+ //
+ // If the `{location}` value in the request is "-", the response contains a
+ // list of backups from all locations. If any location is unreachable, the
+ // response will only return backups in reachable locations and the
+ // "unreachable" field will be populated with a list of unreachable
+ // locations.
+ repeated Backup backups = 1;
+
+ // The token you can use to retrieve the next page of results. Not returned
+ // if there are no more results in the list.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// A Filestore share.
+message Share {
+ option (google.api.resource) = {
+ type: "file.googleapis.com/Share"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/shares/{share}"
+ };
+
+ // The share state.
+ enum State {
+ // State not set.
+ STATE_UNSPECIFIED = 0;
+
+ // Share is being created.
+ CREATING = 1;
+
+ // Share is ready for use.
+ READY = 3;
+
+ // Share is being deleted.
+ DELETING = 4;
+ }
+
+ // Output only. The resource name of the share, in the format
+ // `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The mount name of the share. Must be 63 characters or less and consist of
+ // uppercase or lowercase letters, numbers, and underscores.
+ string mount_name = 2;
+
+ // A description of the share with 2048 characters or less. Requests with
+ // longer descriptions will be rejected.
+ string description = 3;
+
+ // File share capacity in gigabytes (GB). Filestore defines 1 GB as
+ // 1024^3 bytes. Must be greater than 0.
+ int64 capacity_gb = 4;
+
+ // Nfs Export Options.
+ // There is a limit of 10 export options per file share.
+ repeated NfsExportOptions nfs_export_options = 5;
+
+ // Output only. The share state.
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the share was created.
+ google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Resource labels to represent user provided metadata.
+ map labels = 8;
+}
+
+// CreateShareRequest creates a share.
+message CreateShareRequest {
+ // Required. The Filestore Instance to create the share for, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+
+ // Required. The ID to use for the share.
+ // The ID must be unique within the specified instance.
+ //
+ // This value must start with a lowercase letter followed by up to 62
+ // lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+ string share_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A share resource
+ Share share = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// GetShareRequest gets the state of a share.
+message GetShareRequest {
+ // Required. The share resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Share"
+ }
+ ];
+}
+
+// DeleteShareRequest deletes a share.
+message DeleteShareRequest {
+ // Required. The share resource name, in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Share"
+ }
+ ];
+}
+
+// ListSharesRequest lists shares.
+message ListSharesRequest {
+ // Required. The instance for which to retrieve share information,
+ // in the format
+ // `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "file.googleapis.com/Instance"
+ }
+ ];
+
+ // The maximum number of items to return.
+ int32 page_size = 2;
+
+ // The next_page_token value to use if there are additional
+ // results to retrieve for this list request.
+ string page_token = 3;
+
+ // Sort results. Supported values are "name", "name desc" or "" (unsorted).
+ string order_by = 4;
+
+ // List filter.
+ string filter = 5;
+}
+
+// ListSharesResponse is the result of ListSharesRequest.
+message ListSharesResponse {
+ // A list of shares in the project for the specified instance.
+ repeated Share shares = 1;
+
+ // The token you can use to retrieve the next page of results. Not returned
+ // if there are no more results in the list.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// UpdateShareRequest updates the settings of a share.
+message UpdateShareRequest {
+ // Required. A share resource.
+ // Only fields specified in update_mask are updated.
+ Share share = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Mask of fields to update. At least one path must be supplied in this
+ // field.
+ // The elements of the repeated paths field may only include these fields:
+ //
+ // * "description"
+ // * "capacity_gb"
+ // * "labels"
+ // * "nfs_export_options"
+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-filestore/protos/protos.d.ts b/packages/google-cloud-filestore/protos/protos.d.ts
new file mode 100644
index 00000000000..a58e3cf43e4
--- /dev/null
+++ b/packages/google-cloud-filestore/protos/protos.d.ts
@@ -0,0 +1,13327 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace common. */
+ namespace common {
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusDetail */
+ statusDetail?: (string|null);
+
+ /** OperationMetadata cancelRequested */
+ cancelRequested?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.common.IOperationMetadata);
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target. */
+ public target: string;
+
+ /** OperationMetadata verb. */
+ public verb: string;
+
+ /** OperationMetadata statusDetail. */
+ public statusDetail: string;
+
+ /** OperationMetadata cancelRequested. */
+ public cancelRequested: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.common.IOperationMetadata): google.cloud.common.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.common.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.common.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.common.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.common.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.common.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.common.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.common.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.common.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace filestore. */
+ namespace filestore {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a CloudFilestoreManager */
+ class CloudFilestoreManager extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new CloudFilestoreManager service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new CloudFilestoreManager service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): CloudFilestoreManager;
+
+ /**
+ * Calls ListInstances.
+ * @param request ListInstancesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListInstancesResponse
+ */
+ public listInstances(request: google.cloud.filestore.v1.IListInstancesRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.ListInstancesCallback): void;
+
+ /**
+ * Calls ListInstances.
+ * @param request ListInstancesRequest message or plain object
+ * @returns Promise
+ */
+ public listInstances(request: google.cloud.filestore.v1.IListInstancesRequest): Promise;
+
+ /**
+ * Calls GetInstance.
+ * @param request GetInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Instance
+ */
+ public getInstance(request: google.cloud.filestore.v1.IGetInstanceRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.GetInstanceCallback): void;
+
+ /**
+ * Calls GetInstance.
+ * @param request GetInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public getInstance(request: google.cloud.filestore.v1.IGetInstanceRequest): Promise;
+
+ /**
+ * Calls CreateInstance.
+ * @param request CreateInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createInstance(request: google.cloud.filestore.v1.ICreateInstanceRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.CreateInstanceCallback): void;
+
+ /**
+ * Calls CreateInstance.
+ * @param request CreateInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public createInstance(request: google.cloud.filestore.v1.ICreateInstanceRequest): Promise;
+
+ /**
+ * Calls UpdateInstance.
+ * @param request UpdateInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateInstance(request: google.cloud.filestore.v1.IUpdateInstanceRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstanceCallback): void;
+
+ /**
+ * Calls UpdateInstance.
+ * @param request UpdateInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public updateInstance(request: google.cloud.filestore.v1.IUpdateInstanceRequest): Promise;
+
+ /**
+ * Calls RestoreInstance.
+ * @param request RestoreInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public restoreInstance(request: google.cloud.filestore.v1.IRestoreInstanceRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstanceCallback): void;
+
+ /**
+ * Calls RestoreInstance.
+ * @param request RestoreInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public restoreInstance(request: google.cloud.filestore.v1.IRestoreInstanceRequest): Promise;
+
+ /**
+ * Calls DeleteInstance.
+ * @param request DeleteInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteInstance(request: google.cloud.filestore.v1.IDeleteInstanceRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstanceCallback): void;
+
+ /**
+ * Calls DeleteInstance.
+ * @param request DeleteInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteInstance(request: google.cloud.filestore.v1.IDeleteInstanceRequest): Promise;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBackupsResponse
+ */
+ public listBackups(request: google.cloud.filestore.v1.IListBackupsRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.ListBackupsCallback): void;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @returns Promise
+ */
+ public listBackups(request: google.cloud.filestore.v1.IListBackupsRequest): Promise;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Backup
+ */
+ public getBackup(request: google.cloud.filestore.v1.IGetBackupRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.GetBackupCallback): void;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @returns Promise
+ */
+ public getBackup(request: google.cloud.filestore.v1.IGetBackupRequest): Promise;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createBackup(request: google.cloud.filestore.v1.ICreateBackupRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.CreateBackupCallback): void;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @returns Promise
+ */
+ public createBackup(request: google.cloud.filestore.v1.ICreateBackupRequest): Promise;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteBackup(request: google.cloud.filestore.v1.IDeleteBackupRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackupCallback): void;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBackup(request: google.cloud.filestore.v1.IDeleteBackupRequest): Promise;
+
+ /**
+ * Calls UpdateBackup.
+ * @param request UpdateBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateBackup(request: google.cloud.filestore.v1.IUpdateBackupRequest, callback: google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackupCallback): void;
+
+ /**
+ * Calls UpdateBackup.
+ * @param request UpdateBackupRequest message or plain object
+ * @returns Promise
+ */
+ public updateBackup(request: google.cloud.filestore.v1.IUpdateBackupRequest): Promise;
+ }
+
+ namespace CloudFilestoreManager {
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|listInstances}.
+ * @param error Error, if any
+ * @param [response] ListInstancesResponse
+ */
+ type ListInstancesCallback = (error: (Error|null), response?: google.cloud.filestore.v1.ListInstancesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|getInstance}.
+ * @param error Error, if any
+ * @param [response] Instance
+ */
+ type GetInstanceCallback = (error: (Error|null), response?: google.cloud.filestore.v1.Instance) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|createInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|updateInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|restoreInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RestoreInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|deleteInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|listBackups}.
+ * @param error Error, if any
+ * @param [response] ListBackupsResponse
+ */
+ type ListBackupsCallback = (error: (Error|null), response?: google.cloud.filestore.v1.ListBackupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|getBackup}.
+ * @param error Error, if any
+ * @param [response] Backup
+ */
+ type GetBackupCallback = (error: (Error|null), response?: google.cloud.filestore.v1.Backup) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|createBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|deleteBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|updateBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a NetworkConfig. */
+ interface INetworkConfig {
+
+ /** NetworkConfig network */
+ network?: (string|null);
+
+ /** NetworkConfig modes */
+ modes?: (google.cloud.filestore.v1.NetworkConfig.AddressMode[]|null);
+
+ /** NetworkConfig reservedIpRange */
+ reservedIpRange?: (string|null);
+
+ /** NetworkConfig ipAddresses */
+ ipAddresses?: (string[]|null);
+ }
+
+ /** Represents a NetworkConfig. */
+ class NetworkConfig implements INetworkConfig {
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.INetworkConfig);
+
+ /** NetworkConfig network. */
+ public network: string;
+
+ /** NetworkConfig modes. */
+ public modes: google.cloud.filestore.v1.NetworkConfig.AddressMode[];
+
+ /** NetworkConfig reservedIpRange. */
+ public reservedIpRange: string;
+
+ /** NetworkConfig ipAddresses. */
+ public ipAddresses: string[];
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkConfig instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.INetworkConfig): google.cloud.filestore.v1.NetworkConfig;
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.filestore.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.NetworkConfig;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.NetworkConfig;
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.NetworkConfig;
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @param message NetworkConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace NetworkConfig {
+
+ /** AddressMode enum. */
+ enum AddressMode {
+ ADDRESS_MODE_UNSPECIFIED = 0,
+ MODE_IPV4 = 1
+ }
+ }
+
+ /** Properties of a FileShareConfig. */
+ interface IFileShareConfig {
+
+ /** FileShareConfig name */
+ name?: (string|null);
+
+ /** FileShareConfig capacityGb */
+ capacityGb?: (number|Long|string|null);
+
+ /** FileShareConfig sourceBackup */
+ sourceBackup?: (string|null);
+
+ /** FileShareConfig nfsExportOptions */
+ nfsExportOptions?: (google.cloud.filestore.v1.INfsExportOptions[]|null);
+ }
+
+ /** Represents a FileShareConfig. */
+ class FileShareConfig implements IFileShareConfig {
+
+ /**
+ * Constructs a new FileShareConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IFileShareConfig);
+
+ /** FileShareConfig name. */
+ public name: string;
+
+ /** FileShareConfig capacityGb. */
+ public capacityGb: (number|Long|string);
+
+ /** FileShareConfig sourceBackup. */
+ public sourceBackup?: (string|null);
+
+ /** FileShareConfig nfsExportOptions. */
+ public nfsExportOptions: google.cloud.filestore.v1.INfsExportOptions[];
+
+ /** FileShareConfig source. */
+ public source?: "sourceBackup";
+
+ /**
+ * Creates a new FileShareConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileShareConfig instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IFileShareConfig): google.cloud.filestore.v1.FileShareConfig;
+
+ /**
+ * Encodes the specified FileShareConfig message. Does not implicitly {@link google.cloud.filestore.v1.FileShareConfig.verify|verify} messages.
+ * @param message FileShareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IFileShareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileShareConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.FileShareConfig.verify|verify} messages.
+ * @param message FileShareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IFileShareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.FileShareConfig;
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.FileShareConfig;
+
+ /**
+ * Verifies a FileShareConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileShareConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileShareConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.FileShareConfig;
+
+ /**
+ * Creates a plain object from a FileShareConfig message. Also converts values to other types if specified.
+ * @param message FileShareConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.FileShareConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileShareConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileShareConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NfsExportOptions. */
+ interface INfsExportOptions {
+
+ /** NfsExportOptions ipRanges */
+ ipRanges?: (string[]|null);
+
+ /** NfsExportOptions accessMode */
+ accessMode?: (google.cloud.filestore.v1.NfsExportOptions.AccessMode|keyof typeof google.cloud.filestore.v1.NfsExportOptions.AccessMode|null);
+
+ /** NfsExportOptions squashMode */
+ squashMode?: (google.cloud.filestore.v1.NfsExportOptions.SquashMode|keyof typeof google.cloud.filestore.v1.NfsExportOptions.SquashMode|null);
+
+ /** NfsExportOptions anonUid */
+ anonUid?: (number|Long|string|null);
+
+ /** NfsExportOptions anonGid */
+ anonGid?: (number|Long|string|null);
+ }
+
+ /** Represents a NfsExportOptions. */
+ class NfsExportOptions implements INfsExportOptions {
+
+ /**
+ * Constructs a new NfsExportOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.INfsExportOptions);
+
+ /** NfsExportOptions ipRanges. */
+ public ipRanges: string[];
+
+ /** NfsExportOptions accessMode. */
+ public accessMode: (google.cloud.filestore.v1.NfsExportOptions.AccessMode|keyof typeof google.cloud.filestore.v1.NfsExportOptions.AccessMode);
+
+ /** NfsExportOptions squashMode. */
+ public squashMode: (google.cloud.filestore.v1.NfsExportOptions.SquashMode|keyof typeof google.cloud.filestore.v1.NfsExportOptions.SquashMode);
+
+ /** NfsExportOptions anonUid. */
+ public anonUid: (number|Long|string);
+
+ /** NfsExportOptions anonGid. */
+ public anonGid: (number|Long|string);
+
+ /**
+ * Creates a new NfsExportOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NfsExportOptions instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.INfsExportOptions): google.cloud.filestore.v1.NfsExportOptions;
+
+ /**
+ * Encodes the specified NfsExportOptions message. Does not implicitly {@link google.cloud.filestore.v1.NfsExportOptions.verify|verify} messages.
+ * @param message NfsExportOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.INfsExportOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NfsExportOptions message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.NfsExportOptions.verify|verify} messages.
+ * @param message NfsExportOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.INfsExportOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.NfsExportOptions;
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.NfsExportOptions;
+
+ /**
+ * Verifies a NfsExportOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NfsExportOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NfsExportOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.NfsExportOptions;
+
+ /**
+ * Creates a plain object from a NfsExportOptions message. Also converts values to other types if specified.
+ * @param message NfsExportOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.NfsExportOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NfsExportOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NfsExportOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace NfsExportOptions {
+
+ /** AccessMode enum. */
+ enum AccessMode {
+ ACCESS_MODE_UNSPECIFIED = 0,
+ READ_ONLY = 1,
+ READ_WRITE = 2
+ }
+
+ /** SquashMode enum. */
+ enum SquashMode {
+ SQUASH_MODE_UNSPECIFIED = 0,
+ NO_ROOT_SQUASH = 1,
+ ROOT_SQUASH = 2
+ }
+ }
+
+ /** Properties of an Instance. */
+ interface IInstance {
+
+ /** Instance name */
+ name?: (string|null);
+
+ /** Instance description */
+ description?: (string|null);
+
+ /** Instance state */
+ state?: (google.cloud.filestore.v1.Instance.State|keyof typeof google.cloud.filestore.v1.Instance.State|null);
+
+ /** Instance statusMessage */
+ statusMessage?: (string|null);
+
+ /** Instance createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance tier */
+ tier?: (google.cloud.filestore.v1.Instance.Tier|keyof typeof google.cloud.filestore.v1.Instance.Tier|null);
+
+ /** Instance labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Instance fileShares */
+ fileShares?: (google.cloud.filestore.v1.IFileShareConfig[]|null);
+
+ /** Instance networks */
+ networks?: (google.cloud.filestore.v1.INetworkConfig[]|null);
+
+ /** Instance etag */
+ etag?: (string|null);
+
+ /** Instance satisfiesPzs */
+ satisfiesPzs?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents an Instance. */
+ class Instance implements IInstance {
+
+ /**
+ * Constructs a new Instance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IInstance);
+
+ /** Instance name. */
+ public name: string;
+
+ /** Instance description. */
+ public description: string;
+
+ /** Instance state. */
+ public state: (google.cloud.filestore.v1.Instance.State|keyof typeof google.cloud.filestore.v1.Instance.State);
+
+ /** Instance statusMessage. */
+ public statusMessage: string;
+
+ /** Instance createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance tier. */
+ public tier: (google.cloud.filestore.v1.Instance.Tier|keyof typeof google.cloud.filestore.v1.Instance.Tier);
+
+ /** Instance labels. */
+ public labels: { [k: string]: string };
+
+ /** Instance fileShares. */
+ public fileShares: google.cloud.filestore.v1.IFileShareConfig[];
+
+ /** Instance networks. */
+ public networks: google.cloud.filestore.v1.INetworkConfig[];
+
+ /** Instance etag. */
+ public etag: string;
+
+ /** Instance satisfiesPzs. */
+ public satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new Instance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Instance instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IInstance): google.cloud.filestore.v1.Instance;
+
+ /**
+ * Encodes the specified Instance message. Does not implicitly {@link google.cloud.filestore.v1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Instance message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.Instance;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.Instance;
+
+ /**
+ * Verifies an Instance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Instance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Instance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.Instance;
+
+ /**
+ * Creates a plain object from an Instance message. Also converts values to other types if specified.
+ * @param message Instance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.Instance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Instance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Instance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Instance {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 2,
+ REPAIRING = 3,
+ DELETING = 4,
+ ERROR = 6,
+ RESTORING = 7
+ }
+
+ /** Tier enum. */
+ enum Tier {
+ TIER_UNSPECIFIED = 0,
+ STANDARD = 1,
+ PREMIUM = 2,
+ BASIC_HDD = 3,
+ BASIC_SSD = 4,
+ HIGH_SCALE_SSD = 5
+ }
+ }
+
+ /** Properties of a CreateInstanceRequest. */
+ interface ICreateInstanceRequest {
+
+ /** CreateInstanceRequest parent */
+ parent?: (string|null);
+
+ /** CreateInstanceRequest instanceId */
+ instanceId?: (string|null);
+
+ /** CreateInstanceRequest instance */
+ instance?: (google.cloud.filestore.v1.IInstance|null);
+ }
+
+ /** Represents a CreateInstanceRequest. */
+ class CreateInstanceRequest implements ICreateInstanceRequest {
+
+ /**
+ * Constructs a new CreateInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.ICreateInstanceRequest);
+
+ /** CreateInstanceRequest parent. */
+ public parent: string;
+
+ /** CreateInstanceRequest instanceId. */
+ public instanceId: string;
+
+ /** CreateInstanceRequest instance. */
+ public instance?: (google.cloud.filestore.v1.IInstance|null);
+
+ /**
+ * Creates a new CreateInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.ICreateInstanceRequest): google.cloud.filestore.v1.CreateInstanceRequest;
+
+ /**
+ * Encodes the specified CreateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.CreateInstanceRequest.verify|verify} messages.
+ * @param message CreateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.CreateInstanceRequest.verify|verify} messages.
+ * @param message CreateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.CreateInstanceRequest;
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.CreateInstanceRequest;
+
+ /**
+ * Verifies a CreateInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.CreateInstanceRequest;
+
+ /**
+ * Creates a plain object from a CreateInstanceRequest message. Also converts values to other types if specified.
+ * @param message CreateInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.CreateInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetInstanceRequest. */
+ interface IGetInstanceRequest {
+
+ /** GetInstanceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetInstanceRequest. */
+ class GetInstanceRequest implements IGetInstanceRequest {
+
+ /**
+ * Constructs a new GetInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IGetInstanceRequest);
+
+ /** GetInstanceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IGetInstanceRequest): google.cloud.filestore.v1.GetInstanceRequest;
+
+ /**
+ * Encodes the specified GetInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.GetInstanceRequest.verify|verify} messages.
+ * @param message GetInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.GetInstanceRequest.verify|verify} messages.
+ * @param message GetInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.GetInstanceRequest;
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.GetInstanceRequest;
+
+ /**
+ * Verifies a GetInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.GetInstanceRequest;
+
+ /**
+ * Creates a plain object from a GetInstanceRequest message. Also converts values to other types if specified.
+ * @param message GetInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.GetInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateInstanceRequest. */
+ interface IUpdateInstanceRequest {
+
+ /** UpdateInstanceRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateInstanceRequest instance */
+ instance?: (google.cloud.filestore.v1.IInstance|null);
+ }
+
+ /** Represents an UpdateInstanceRequest. */
+ class UpdateInstanceRequest implements IUpdateInstanceRequest {
+
+ /**
+ * Constructs a new UpdateInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IUpdateInstanceRequest);
+
+ /** UpdateInstanceRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateInstanceRequest instance. */
+ public instance?: (google.cloud.filestore.v1.IInstance|null);
+
+ /**
+ * Creates a new UpdateInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IUpdateInstanceRequest): google.cloud.filestore.v1.UpdateInstanceRequest;
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.UpdateInstanceRequest.verify|verify} messages.
+ * @param message UpdateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IUpdateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.UpdateInstanceRequest.verify|verify} messages.
+ * @param message UpdateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IUpdateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.UpdateInstanceRequest;
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.UpdateInstanceRequest;
+
+ /**
+ * Verifies an UpdateInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.UpdateInstanceRequest;
+
+ /**
+ * Creates a plain object from an UpdateInstanceRequest message. Also converts values to other types if specified.
+ * @param message UpdateInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.UpdateInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreInstanceRequest. */
+ interface IRestoreInstanceRequest {
+
+ /** RestoreInstanceRequest name */
+ name?: (string|null);
+
+ /** RestoreInstanceRequest fileShare */
+ fileShare?: (string|null);
+
+ /** RestoreInstanceRequest sourceBackup */
+ sourceBackup?: (string|null);
+ }
+
+ /** Represents a RestoreInstanceRequest. */
+ class RestoreInstanceRequest implements IRestoreInstanceRequest {
+
+ /**
+ * Constructs a new RestoreInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IRestoreInstanceRequest);
+
+ /** RestoreInstanceRequest name. */
+ public name: string;
+
+ /** RestoreInstanceRequest fileShare. */
+ public fileShare: string;
+
+ /** RestoreInstanceRequest sourceBackup. */
+ public sourceBackup?: (string|null);
+
+ /** RestoreInstanceRequest source. */
+ public source?: "sourceBackup";
+
+ /**
+ * Creates a new RestoreInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IRestoreInstanceRequest): google.cloud.filestore.v1.RestoreInstanceRequest;
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.RestoreInstanceRequest.verify|verify} messages.
+ * @param message RestoreInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IRestoreInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.RestoreInstanceRequest.verify|verify} messages.
+ * @param message RestoreInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IRestoreInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.RestoreInstanceRequest;
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.RestoreInstanceRequest;
+
+ /**
+ * Verifies a RestoreInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.RestoreInstanceRequest;
+
+ /**
+ * Creates a plain object from a RestoreInstanceRequest message. Also converts values to other types if specified.
+ * @param message RestoreInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.RestoreInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteInstanceRequest. */
+ interface IDeleteInstanceRequest {
+
+ /** DeleteInstanceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteInstanceRequest. */
+ class DeleteInstanceRequest implements IDeleteInstanceRequest {
+
+ /**
+ * Constructs a new DeleteInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IDeleteInstanceRequest);
+
+ /** DeleteInstanceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IDeleteInstanceRequest): google.cloud.filestore.v1.DeleteInstanceRequest;
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @param message DeleteInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IDeleteInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @param message DeleteInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IDeleteInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.DeleteInstanceRequest;
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.DeleteInstanceRequest;
+
+ /**
+ * Verifies a DeleteInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.DeleteInstanceRequest;
+
+ /**
+ * Creates a plain object from a DeleteInstanceRequest message. Also converts values to other types if specified.
+ * @param message DeleteInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.DeleteInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstancesRequest. */
+ interface IListInstancesRequest {
+
+ /** ListInstancesRequest parent */
+ parent?: (string|null);
+
+ /** ListInstancesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListInstancesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListInstancesRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListInstancesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListInstancesRequest. */
+ class ListInstancesRequest implements IListInstancesRequest {
+
+ /**
+ * Constructs a new ListInstancesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IListInstancesRequest);
+
+ /** ListInstancesRequest parent. */
+ public parent: string;
+
+ /** ListInstancesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListInstancesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListInstancesRequest orderBy. */
+ public orderBy: string;
+
+ /** ListInstancesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListInstancesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstancesRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IListInstancesRequest): google.cloud.filestore.v1.ListInstancesRequest;
+
+ /**
+ * Encodes the specified ListInstancesRequest message. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesRequest.verify|verify} messages.
+ * @param message ListInstancesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IListInstancesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesRequest.verify|verify} messages.
+ * @param message ListInstancesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IListInstancesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.ListInstancesRequest;
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.ListInstancesRequest;
+
+ /**
+ * Verifies a ListInstancesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstancesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstancesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.ListInstancesRequest;
+
+ /**
+ * Creates a plain object from a ListInstancesRequest message. Also converts values to other types if specified.
+ * @param message ListInstancesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.ListInstancesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstancesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstancesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstancesResponse. */
+ interface IListInstancesResponse {
+
+ /** ListInstancesResponse instances */
+ instances?: (google.cloud.filestore.v1.IInstance[]|null);
+
+ /** ListInstancesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListInstancesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListInstancesResponse. */
+ class ListInstancesResponse implements IListInstancesResponse {
+
+ /**
+ * Constructs a new ListInstancesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IListInstancesResponse);
+
+ /** ListInstancesResponse instances. */
+ public instances: google.cloud.filestore.v1.IInstance[];
+
+ /** ListInstancesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListInstancesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListInstancesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstancesResponse instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IListInstancesResponse): google.cloud.filestore.v1.ListInstancesResponse;
+
+ /**
+ * Encodes the specified ListInstancesResponse message. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesResponse.verify|verify} messages.
+ * @param message ListInstancesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IListInstancesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstancesResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesResponse.verify|verify} messages.
+ * @param message ListInstancesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IListInstancesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.ListInstancesResponse;
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.ListInstancesResponse;
+
+ /**
+ * Verifies a ListInstancesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstancesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstancesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.ListInstancesResponse;
+
+ /**
+ * Creates a plain object from a ListInstancesResponse message. Also converts values to other types if specified.
+ * @param message ListInstancesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.ListInstancesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstancesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstancesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Backup. */
+ interface IBackup {
+
+ /** Backup name */
+ name?: (string|null);
+
+ /** Backup description */
+ description?: (string|null);
+
+ /** Backup state */
+ state?: (google.cloud.filestore.v1.Backup.State|keyof typeof google.cloud.filestore.v1.Backup.State|null);
+
+ /** Backup createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Backup capacityGb */
+ capacityGb?: (number|Long|string|null);
+
+ /** Backup storageBytes */
+ storageBytes?: (number|Long|string|null);
+
+ /** Backup sourceInstance */
+ sourceInstance?: (string|null);
+
+ /** Backup sourceFileShare */
+ sourceFileShare?: (string|null);
+
+ /** Backup sourceInstanceTier */
+ sourceInstanceTier?: (google.cloud.filestore.v1.Instance.Tier|keyof typeof google.cloud.filestore.v1.Instance.Tier|null);
+
+ /** Backup downloadBytes */
+ downloadBytes?: (number|Long|string|null);
+
+ /** Backup satisfiesPzs */
+ satisfiesPzs?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents a Backup. */
+ class Backup implements IBackup {
+
+ /**
+ * Constructs a new Backup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IBackup);
+
+ /** Backup name. */
+ public name: string;
+
+ /** Backup description. */
+ public description: string;
+
+ /** Backup state. */
+ public state: (google.cloud.filestore.v1.Backup.State|keyof typeof google.cloud.filestore.v1.Backup.State);
+
+ /** Backup createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup labels. */
+ public labels: { [k: string]: string };
+
+ /** Backup capacityGb. */
+ public capacityGb: (number|Long|string);
+
+ /** Backup storageBytes. */
+ public storageBytes: (number|Long|string);
+
+ /** Backup sourceInstance. */
+ public sourceInstance: string;
+
+ /** Backup sourceFileShare. */
+ public sourceFileShare: string;
+
+ /** Backup sourceInstanceTier. */
+ public sourceInstanceTier: (google.cloud.filestore.v1.Instance.Tier|keyof typeof google.cloud.filestore.v1.Instance.Tier);
+
+ /** Backup downloadBytes. */
+ public downloadBytes: (number|Long|string);
+
+ /** Backup satisfiesPzs. */
+ public satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Backup instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IBackup): google.cloud.filestore.v1.Backup;
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.cloud.filestore.v1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.Backup;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.Backup;
+
+ /**
+ * Verifies a Backup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Backup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.Backup;
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @param message Backup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Backup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Backup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Backup {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ FINALIZING = 2,
+ READY = 3,
+ DELETING = 4
+ }
+ }
+
+ /** Properties of a CreateBackupRequest. */
+ interface ICreateBackupRequest {
+
+ /** CreateBackupRequest parent */
+ parent?: (string|null);
+
+ /** CreateBackupRequest backup */
+ backup?: (google.cloud.filestore.v1.IBackup|null);
+
+ /** CreateBackupRequest backupId */
+ backupId?: (string|null);
+ }
+
+ /** Represents a CreateBackupRequest. */
+ class CreateBackupRequest implements ICreateBackupRequest {
+
+ /**
+ * Constructs a new CreateBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.ICreateBackupRequest);
+
+ /** CreateBackupRequest parent. */
+ public parent: string;
+
+ /** CreateBackupRequest backup. */
+ public backup?: (google.cloud.filestore.v1.IBackup|null);
+
+ /** CreateBackupRequest backupId. */
+ public backupId: string;
+
+ /**
+ * Creates a new CreateBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.ICreateBackupRequest): google.cloud.filestore.v1.CreateBackupRequest;
+
+ /**
+ * Encodes the specified CreateBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.CreateBackupRequest;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.CreateBackupRequest;
+
+ /**
+ * Verifies a CreateBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.CreateBackupRequest;
+
+ /**
+ * Creates a plain object from a CreateBackupRequest message. Also converts values to other types if specified.
+ * @param message CreateBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.CreateBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBackupRequest. */
+ interface IDeleteBackupRequest {
+
+ /** DeleteBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteBackupRequest. */
+ class DeleteBackupRequest implements IDeleteBackupRequest {
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IDeleteBackupRequest);
+
+ /** DeleteBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IDeleteBackupRequest): google.cloud.filestore.v1.DeleteBackupRequest;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.DeleteBackupRequest;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.DeleteBackupRequest;
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.DeleteBackupRequest;
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @param message DeleteBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.DeleteBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBackupRequest. */
+ interface IUpdateBackupRequest {
+
+ /** UpdateBackupRequest backup */
+ backup?: (google.cloud.filestore.v1.IBackup|null);
+
+ /** UpdateBackupRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateBackupRequest. */
+ class UpdateBackupRequest implements IUpdateBackupRequest {
+
+ /**
+ * Constructs a new UpdateBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IUpdateBackupRequest);
+
+ /** UpdateBackupRequest backup. */
+ public backup?: (google.cloud.filestore.v1.IBackup|null);
+
+ /** UpdateBackupRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IUpdateBackupRequest): google.cloud.filestore.v1.UpdateBackupRequest;
+
+ /**
+ * Encodes the specified UpdateBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.UpdateBackupRequest.verify|verify} messages.
+ * @param message UpdateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IUpdateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.UpdateBackupRequest.verify|verify} messages.
+ * @param message UpdateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IUpdateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.UpdateBackupRequest;
+
+ /**
+ * Decodes an UpdateBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.UpdateBackupRequest;
+
+ /**
+ * Verifies an UpdateBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.UpdateBackupRequest;
+
+ /**
+ * Creates a plain object from an UpdateBackupRequest message. Also converts values to other types if specified.
+ * @param message UpdateBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.UpdateBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBackupRequest. */
+ interface IGetBackupRequest {
+
+ /** GetBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBackupRequest. */
+ class GetBackupRequest implements IGetBackupRequest {
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IGetBackupRequest);
+
+ /** GetBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IGetBackupRequest): google.cloud.filestore.v1.GetBackupRequest;
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.GetBackupRequest;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.GetBackupRequest;
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.GetBackupRequest;
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @param message GetBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.GetBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsRequest. */
+ interface IListBackupsRequest {
+
+ /** ListBackupsRequest parent */
+ parent?: (string|null);
+
+ /** ListBackupsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListBackupsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListBackupsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListBackupsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListBackupsRequest. */
+ class ListBackupsRequest implements IListBackupsRequest {
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IListBackupsRequest);
+
+ /** ListBackupsRequest parent. */
+ public parent: string;
+
+ /** ListBackupsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListBackupsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListBackupsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListBackupsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IListBackupsRequest): google.cloud.filestore.v1.ListBackupsRequest;
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.ListBackupsRequest;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.ListBackupsRequest;
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.ListBackupsRequest;
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @param message ListBackupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.ListBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsResponse. */
+ interface IListBackupsResponse {
+
+ /** ListBackupsResponse backups */
+ backups?: (google.cloud.filestore.v1.IBackup[]|null);
+
+ /** ListBackupsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListBackupsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListBackupsResponse. */
+ class ListBackupsResponse implements IListBackupsResponse {
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1.IListBackupsResponse);
+
+ /** ListBackupsResponse backups. */
+ public backups: google.cloud.filestore.v1.IBackup[];
+
+ /** ListBackupsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListBackupsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsResponse instance
+ */
+ public static create(properties?: google.cloud.filestore.v1.IListBackupsResponse): google.cloud.filestore.v1.ListBackupsResponse;
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1.ListBackupsResponse;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1.ListBackupsResponse;
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1.ListBackupsResponse;
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @param message ListBackupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1.ListBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace v1beta1. */
+ namespace v1beta1 {
+
+ /** Represents a CloudFilestoreManager */
+ class CloudFilestoreManager extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new CloudFilestoreManager service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new CloudFilestoreManager service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): CloudFilestoreManager;
+
+ /**
+ * Calls ListInstances.
+ * @param request ListInstancesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListInstancesResponse
+ */
+ public listInstances(request: google.cloud.filestore.v1beta1.IListInstancesRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstancesCallback): void;
+
+ /**
+ * Calls ListInstances.
+ * @param request ListInstancesRequest message or plain object
+ * @returns Promise
+ */
+ public listInstances(request: google.cloud.filestore.v1beta1.IListInstancesRequest): Promise;
+
+ /**
+ * Calls GetInstance.
+ * @param request GetInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Instance
+ */
+ public getInstance(request: google.cloud.filestore.v1beta1.IGetInstanceRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstanceCallback): void;
+
+ /**
+ * Calls GetInstance.
+ * @param request GetInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public getInstance(request: google.cloud.filestore.v1beta1.IGetInstanceRequest): Promise;
+
+ /**
+ * Calls CreateInstance.
+ * @param request CreateInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createInstance(request: google.cloud.filestore.v1beta1.ICreateInstanceRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstanceCallback): void;
+
+ /**
+ * Calls CreateInstance.
+ * @param request CreateInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public createInstance(request: google.cloud.filestore.v1beta1.ICreateInstanceRequest): Promise;
+
+ /**
+ * Calls UpdateInstance.
+ * @param request UpdateInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateInstance(request: google.cloud.filestore.v1beta1.IUpdateInstanceRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstanceCallback): void;
+
+ /**
+ * Calls UpdateInstance.
+ * @param request UpdateInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public updateInstance(request: google.cloud.filestore.v1beta1.IUpdateInstanceRequest): Promise;
+
+ /**
+ * Calls RestoreInstance.
+ * @param request RestoreInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public restoreInstance(request: google.cloud.filestore.v1beta1.IRestoreInstanceRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstanceCallback): void;
+
+ /**
+ * Calls RestoreInstance.
+ * @param request RestoreInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public restoreInstance(request: google.cloud.filestore.v1beta1.IRestoreInstanceRequest): Promise;
+
+ /**
+ * Calls RevertInstance.
+ * @param request RevertInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public revertInstance(request: google.cloud.filestore.v1beta1.IRevertInstanceRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.RevertInstanceCallback): void;
+
+ /**
+ * Calls RevertInstance.
+ * @param request RevertInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public revertInstance(request: google.cloud.filestore.v1beta1.IRevertInstanceRequest): Promise;
+
+ /**
+ * Calls DeleteInstance.
+ * @param request DeleteInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteInstance(request: google.cloud.filestore.v1beta1.IDeleteInstanceRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstanceCallback): void;
+
+ /**
+ * Calls DeleteInstance.
+ * @param request DeleteInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteInstance(request: google.cloud.filestore.v1beta1.IDeleteInstanceRequest): Promise;
+
+ /**
+ * Calls ListSnapshots.
+ * @param request ListSnapshotsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListSnapshotsResponse
+ */
+ public listSnapshots(request: google.cloud.filestore.v1beta1.IListSnapshotsRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.ListSnapshotsCallback): void;
+
+ /**
+ * Calls ListSnapshots.
+ * @param request ListSnapshotsRequest message or plain object
+ * @returns Promise
+ */
+ public listSnapshots(request: google.cloud.filestore.v1beta1.IListSnapshotsRequest): Promise;
+
+ /**
+ * Calls GetSnapshot.
+ * @param request GetSnapshotRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Snapshot
+ */
+ public getSnapshot(request: google.cloud.filestore.v1beta1.IGetSnapshotRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.GetSnapshotCallback): void;
+
+ /**
+ * Calls GetSnapshot.
+ * @param request GetSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public getSnapshot(request: google.cloud.filestore.v1beta1.IGetSnapshotRequest): Promise;
+
+ /**
+ * Calls CreateSnapshot.
+ * @param request CreateSnapshotRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createSnapshot(request: google.cloud.filestore.v1beta1.ICreateSnapshotRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateSnapshotCallback): void;
+
+ /**
+ * Calls CreateSnapshot.
+ * @param request CreateSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public createSnapshot(request: google.cloud.filestore.v1beta1.ICreateSnapshotRequest): Promise;
+
+ /**
+ * Calls DeleteSnapshot.
+ * @param request DeleteSnapshotRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteSnapshot(request: google.cloud.filestore.v1beta1.IDeleteSnapshotRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteSnapshotCallback): void;
+
+ /**
+ * Calls DeleteSnapshot.
+ * @param request DeleteSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public deleteSnapshot(request: google.cloud.filestore.v1beta1.IDeleteSnapshotRequest): Promise;
+
+ /**
+ * Calls UpdateSnapshot.
+ * @param request UpdateSnapshotRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateSnapshot(request: google.cloud.filestore.v1beta1.IUpdateSnapshotRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateSnapshotCallback): void;
+
+ /**
+ * Calls UpdateSnapshot.
+ * @param request UpdateSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public updateSnapshot(request: google.cloud.filestore.v1beta1.IUpdateSnapshotRequest): Promise;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBackupsResponse
+ */
+ public listBackups(request: google.cloud.filestore.v1beta1.IListBackupsRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackupsCallback): void;
+
+ /**
+ * Calls ListBackups.
+ * @param request ListBackupsRequest message or plain object
+ * @returns Promise
+ */
+ public listBackups(request: google.cloud.filestore.v1beta1.IListBackupsRequest): Promise;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Backup
+ */
+ public getBackup(request: google.cloud.filestore.v1beta1.IGetBackupRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackupCallback): void;
+
+ /**
+ * Calls GetBackup.
+ * @param request GetBackupRequest message or plain object
+ * @returns Promise
+ */
+ public getBackup(request: google.cloud.filestore.v1beta1.IGetBackupRequest): Promise;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createBackup(request: google.cloud.filestore.v1beta1.ICreateBackupRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackupCallback): void;
+
+ /**
+ * Calls CreateBackup.
+ * @param request CreateBackupRequest message or plain object
+ * @returns Promise
+ */
+ public createBackup(request: google.cloud.filestore.v1beta1.ICreateBackupRequest): Promise;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteBackup(request: google.cloud.filestore.v1beta1.IDeleteBackupRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackupCallback): void;
+
+ /**
+ * Calls DeleteBackup.
+ * @param request DeleteBackupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBackup(request: google.cloud.filestore.v1beta1.IDeleteBackupRequest): Promise;
+
+ /**
+ * Calls UpdateBackup.
+ * @param request UpdateBackupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateBackup(request: google.cloud.filestore.v1beta1.IUpdateBackupRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackupCallback): void;
+
+ /**
+ * Calls UpdateBackup.
+ * @param request UpdateBackupRequest message or plain object
+ * @returns Promise
+ */
+ public updateBackup(request: google.cloud.filestore.v1beta1.IUpdateBackupRequest): Promise;
+
+ /**
+ * Calls ListShares.
+ * @param request ListSharesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListSharesResponse
+ */
+ public listShares(request: google.cloud.filestore.v1beta1.IListSharesRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.ListSharesCallback): void;
+
+ /**
+ * Calls ListShares.
+ * @param request ListSharesRequest message or plain object
+ * @returns Promise
+ */
+ public listShares(request: google.cloud.filestore.v1beta1.IListSharesRequest): Promise;
+
+ /**
+ * Calls GetShare.
+ * @param request GetShareRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Share
+ */
+ public getShare(request: google.cloud.filestore.v1beta1.IGetShareRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.GetShareCallback): void;
+
+ /**
+ * Calls GetShare.
+ * @param request GetShareRequest message or plain object
+ * @returns Promise
+ */
+ public getShare(request: google.cloud.filestore.v1beta1.IGetShareRequest): Promise;
+
+ /**
+ * Calls CreateShare.
+ * @param request CreateShareRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createShare(request: google.cloud.filestore.v1beta1.ICreateShareRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateShareCallback): void;
+
+ /**
+ * Calls CreateShare.
+ * @param request CreateShareRequest message or plain object
+ * @returns Promise
+ */
+ public createShare(request: google.cloud.filestore.v1beta1.ICreateShareRequest): Promise;
+
+ /**
+ * Calls DeleteShare.
+ * @param request DeleteShareRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteShare(request: google.cloud.filestore.v1beta1.IDeleteShareRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteShareCallback): void;
+
+ /**
+ * Calls DeleteShare.
+ * @param request DeleteShareRequest message or plain object
+ * @returns Promise
+ */
+ public deleteShare(request: google.cloud.filestore.v1beta1.IDeleteShareRequest): Promise;
+
+ /**
+ * Calls UpdateShare.
+ * @param request UpdateShareRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateShare(request: google.cloud.filestore.v1beta1.IUpdateShareRequest, callback: google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateShareCallback): void;
+
+ /**
+ * Calls UpdateShare.
+ * @param request UpdateShareRequest message or plain object
+ * @returns Promise
+ */
+ public updateShare(request: google.cloud.filestore.v1beta1.IUpdateShareRequest): Promise;
+ }
+
+ namespace CloudFilestoreManager {
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listInstances}.
+ * @param error Error, if any
+ * @param [response] ListInstancesResponse
+ */
+ type ListInstancesCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.ListInstancesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getInstance}.
+ * @param error Error, if any
+ * @param [response] Instance
+ */
+ type GetInstanceCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.Instance) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|restoreInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RestoreInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|revertInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RevertInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listSnapshots}.
+ * @param error Error, if any
+ * @param [response] ListSnapshotsResponse
+ */
+ type ListSnapshotsCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.ListSnapshotsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getSnapshot}.
+ * @param error Error, if any
+ * @param [response] Snapshot
+ */
+ type GetSnapshotCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.Snapshot) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createSnapshot}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteSnapshot}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateSnapshot}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listBackups}.
+ * @param error Error, if any
+ * @param [response] ListBackupsResponse
+ */
+ type ListBackupsCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.ListBackupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getBackup}.
+ * @param error Error, if any
+ * @param [response] Backup
+ */
+ type GetBackupCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.Backup) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateBackup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listShares}.
+ * @param error Error, if any
+ * @param [response] ListSharesResponse
+ */
+ type ListSharesCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.ListSharesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getShare}.
+ * @param error Error, if any
+ * @param [response] Share
+ */
+ type GetShareCallback = (error: (Error|null), response?: google.cloud.filestore.v1beta1.Share) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createShare}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateShareCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteShare}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteShareCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateShare}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateShareCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a NetworkConfig. */
+ interface INetworkConfig {
+
+ /** NetworkConfig network */
+ network?: (string|null);
+
+ /** NetworkConfig modes */
+ modes?: (google.cloud.filestore.v1beta1.NetworkConfig.AddressMode[]|null);
+
+ /** NetworkConfig reservedIpRange */
+ reservedIpRange?: (string|null);
+
+ /** NetworkConfig ipAddresses */
+ ipAddresses?: (string[]|null);
+
+ /** NetworkConfig connectMode */
+ connectMode?: (google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode|keyof typeof google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode|null);
+ }
+
+ /** Represents a NetworkConfig. */
+ class NetworkConfig implements INetworkConfig {
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.INetworkConfig);
+
+ /** NetworkConfig network. */
+ public network: string;
+
+ /** NetworkConfig modes. */
+ public modes: google.cloud.filestore.v1beta1.NetworkConfig.AddressMode[];
+
+ /** NetworkConfig reservedIpRange. */
+ public reservedIpRange: string;
+
+ /** NetworkConfig ipAddresses. */
+ public ipAddresses: string[];
+
+ /** NetworkConfig connectMode. */
+ public connectMode: (google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode|keyof typeof google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode);
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkConfig instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.INetworkConfig): google.cloud.filestore.v1beta1.NetworkConfig;
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.filestore.v1beta1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.NetworkConfig;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.NetworkConfig;
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.NetworkConfig;
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @param message NetworkConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace NetworkConfig {
+
+ /** AddressMode enum. */
+ enum AddressMode {
+ ADDRESS_MODE_UNSPECIFIED = 0,
+ MODE_IPV4 = 1
+ }
+
+ /** ConnectMode enum. */
+ enum ConnectMode {
+ CONNECT_MODE_UNSPECIFIED = 0,
+ DIRECT_PEERING = 1,
+ PRIVATE_SERVICE_ACCESS = 2
+ }
+ }
+
+ /** Properties of a FileShareConfig. */
+ interface IFileShareConfig {
+
+ /** FileShareConfig name */
+ name?: (string|null);
+
+ /** FileShareConfig capacityGb */
+ capacityGb?: (number|Long|string|null);
+
+ /** FileShareConfig sourceBackup */
+ sourceBackup?: (string|null);
+
+ /** FileShareConfig nfsExportOptions */
+ nfsExportOptions?: (google.cloud.filestore.v1beta1.INfsExportOptions[]|null);
+ }
+
+ /** Represents a FileShareConfig. */
+ class FileShareConfig implements IFileShareConfig {
+
+ /**
+ * Constructs a new FileShareConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IFileShareConfig);
+
+ /** FileShareConfig name. */
+ public name: string;
+
+ /** FileShareConfig capacityGb. */
+ public capacityGb: (number|Long|string);
+
+ /** FileShareConfig sourceBackup. */
+ public sourceBackup?: (string|null);
+
+ /** FileShareConfig nfsExportOptions. */
+ public nfsExportOptions: google.cloud.filestore.v1beta1.INfsExportOptions[];
+
+ /** FileShareConfig source. */
+ public source?: "sourceBackup";
+
+ /**
+ * Creates a new FileShareConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileShareConfig instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IFileShareConfig): google.cloud.filestore.v1beta1.FileShareConfig;
+
+ /**
+ * Encodes the specified FileShareConfig message. Does not implicitly {@link google.cloud.filestore.v1beta1.FileShareConfig.verify|verify} messages.
+ * @param message FileShareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IFileShareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileShareConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.FileShareConfig.verify|verify} messages.
+ * @param message FileShareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IFileShareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.FileShareConfig;
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.FileShareConfig;
+
+ /**
+ * Verifies a FileShareConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileShareConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileShareConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.FileShareConfig;
+
+ /**
+ * Creates a plain object from a FileShareConfig message. Also converts values to other types if specified.
+ * @param message FileShareConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.FileShareConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileShareConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileShareConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NfsExportOptions. */
+ interface INfsExportOptions {
+
+ /** NfsExportOptions ipRanges */
+ ipRanges?: (string[]|null);
+
+ /** NfsExportOptions accessMode */
+ accessMode?: (google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode|keyof typeof google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode|null);
+
+ /** NfsExportOptions squashMode */
+ squashMode?: (google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode|keyof typeof google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode|null);
+
+ /** NfsExportOptions anonUid */
+ anonUid?: (number|Long|string|null);
+
+ /** NfsExportOptions anonGid */
+ anonGid?: (number|Long|string|null);
+ }
+
+ /** Represents a NfsExportOptions. */
+ class NfsExportOptions implements INfsExportOptions {
+
+ /**
+ * Constructs a new NfsExportOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.INfsExportOptions);
+
+ /** NfsExportOptions ipRanges. */
+ public ipRanges: string[];
+
+ /** NfsExportOptions accessMode. */
+ public accessMode: (google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode|keyof typeof google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode);
+
+ /** NfsExportOptions squashMode. */
+ public squashMode: (google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode|keyof typeof google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode);
+
+ /** NfsExportOptions anonUid. */
+ public anonUid: (number|Long|string);
+
+ /** NfsExportOptions anonGid. */
+ public anonGid: (number|Long|string);
+
+ /**
+ * Creates a new NfsExportOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NfsExportOptions instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.INfsExportOptions): google.cloud.filestore.v1beta1.NfsExportOptions;
+
+ /**
+ * Encodes the specified NfsExportOptions message. Does not implicitly {@link google.cloud.filestore.v1beta1.NfsExportOptions.verify|verify} messages.
+ * @param message NfsExportOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.INfsExportOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NfsExportOptions message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.NfsExportOptions.verify|verify} messages.
+ * @param message NfsExportOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.INfsExportOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.NfsExportOptions;
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.NfsExportOptions;
+
+ /**
+ * Verifies a NfsExportOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NfsExportOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NfsExportOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.NfsExportOptions;
+
+ /**
+ * Creates a plain object from a NfsExportOptions message. Also converts values to other types if specified.
+ * @param message NfsExportOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.NfsExportOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NfsExportOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NfsExportOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace NfsExportOptions {
+
+ /** AccessMode enum. */
+ enum AccessMode {
+ ACCESS_MODE_UNSPECIFIED = 0,
+ READ_ONLY = 1,
+ READ_WRITE = 2
+ }
+
+ /** SquashMode enum. */
+ enum SquashMode {
+ SQUASH_MODE_UNSPECIFIED = 0,
+ NO_ROOT_SQUASH = 1,
+ ROOT_SQUASH = 2
+ }
+ }
+
+ /** Properties of an Instance. */
+ interface IInstance {
+
+ /** Instance name */
+ name?: (string|null);
+
+ /** Instance description */
+ description?: (string|null);
+
+ /** Instance state */
+ state?: (google.cloud.filestore.v1beta1.Instance.State|keyof typeof google.cloud.filestore.v1beta1.Instance.State|null);
+
+ /** Instance statusMessage */
+ statusMessage?: (string|null);
+
+ /** Instance createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance tier */
+ tier?: (google.cloud.filestore.v1beta1.Instance.Tier|keyof typeof google.cloud.filestore.v1beta1.Instance.Tier|null);
+
+ /** Instance labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Instance fileShares */
+ fileShares?: (google.cloud.filestore.v1beta1.IFileShareConfig[]|null);
+
+ /** Instance networks */
+ networks?: (google.cloud.filestore.v1beta1.INetworkConfig[]|null);
+
+ /** Instance etag */
+ etag?: (string|null);
+
+ /** Instance satisfiesPzs */
+ satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /** Instance kmsKeyName */
+ kmsKeyName?: (string|null);
+
+ /** Instance suspensionReasons */
+ suspensionReasons?: (google.cloud.filestore.v1beta1.Instance.SuspensionReason[]|null);
+
+ /** Instance maxCapacityGb */
+ maxCapacityGb?: (number|Long|string|null);
+
+ /** Instance capacityStepSizeGb */
+ capacityStepSizeGb?: (number|Long|string|null);
+
+ /** Instance maxShareCount */
+ maxShareCount?: (number|Long|string|null);
+
+ /** Instance capacityGb */
+ capacityGb?: (number|Long|string|null);
+
+ /** Instance multiShareEnabled */
+ multiShareEnabled?: (boolean|null);
+ }
+
+ /** Represents an Instance. */
+ class Instance implements IInstance {
+
+ /**
+ * Constructs a new Instance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IInstance);
+
+ /** Instance name. */
+ public name: string;
+
+ /** Instance description. */
+ public description: string;
+
+ /** Instance state. */
+ public state: (google.cloud.filestore.v1beta1.Instance.State|keyof typeof google.cloud.filestore.v1beta1.Instance.State);
+
+ /** Instance statusMessage. */
+ public statusMessage: string;
+
+ /** Instance createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance tier. */
+ public tier: (google.cloud.filestore.v1beta1.Instance.Tier|keyof typeof google.cloud.filestore.v1beta1.Instance.Tier);
+
+ /** Instance labels. */
+ public labels: { [k: string]: string };
+
+ /** Instance fileShares. */
+ public fileShares: google.cloud.filestore.v1beta1.IFileShareConfig[];
+
+ /** Instance networks. */
+ public networks: google.cloud.filestore.v1beta1.INetworkConfig[];
+
+ /** Instance etag. */
+ public etag: string;
+
+ /** Instance satisfiesPzs. */
+ public satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /** Instance kmsKeyName. */
+ public kmsKeyName: string;
+
+ /** Instance suspensionReasons. */
+ public suspensionReasons: google.cloud.filestore.v1beta1.Instance.SuspensionReason[];
+
+ /** Instance maxCapacityGb. */
+ public maxCapacityGb: (number|Long|string);
+
+ /** Instance capacityStepSizeGb. */
+ public capacityStepSizeGb: (number|Long|string);
+
+ /** Instance maxShareCount. */
+ public maxShareCount: (number|Long|string);
+
+ /** Instance capacityGb. */
+ public capacityGb: (number|Long|string);
+
+ /** Instance multiShareEnabled. */
+ public multiShareEnabled: boolean;
+
+ /**
+ * Creates a new Instance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Instance instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IInstance): google.cloud.filestore.v1beta1.Instance;
+
+ /**
+ * Encodes the specified Instance message. Does not implicitly {@link google.cloud.filestore.v1beta1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Instance message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.Instance;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.Instance;
+
+ /**
+ * Verifies an Instance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Instance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Instance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.Instance;
+
+ /**
+ * Creates a plain object from an Instance message. Also converts values to other types if specified.
+ * @param message Instance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.Instance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Instance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Instance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Instance {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 2,
+ REPAIRING = 3,
+ DELETING = 4,
+ ERROR = 6,
+ RESTORING = 7,
+ SUSPENDED = 8,
+ REVERTING = 9,
+ SUSPENDING = 10,
+ RESUMING = 11
+ }
+
+ /** Tier enum. */
+ enum Tier {
+ TIER_UNSPECIFIED = 0,
+ STANDARD = 1,
+ PREMIUM = 2,
+ BASIC_HDD = 3,
+ BASIC_SSD = 4,
+ HIGH_SCALE_SSD = 6,
+ ENTERPRISE = 7
+ }
+
+ /** SuspensionReason enum. */
+ enum SuspensionReason {
+ SUSPENSION_REASON_UNSPECIFIED = 0,
+ KMS_KEY_ISSUE = 1
+ }
+ }
+
+ /** Properties of a CreateInstanceRequest. */
+ interface ICreateInstanceRequest {
+
+ /** CreateInstanceRequest parent */
+ parent?: (string|null);
+
+ /** CreateInstanceRequest instanceId */
+ instanceId?: (string|null);
+
+ /** CreateInstanceRequest instance */
+ instance?: (google.cloud.filestore.v1beta1.IInstance|null);
+ }
+
+ /** Represents a CreateInstanceRequest. */
+ class CreateInstanceRequest implements ICreateInstanceRequest {
+
+ /**
+ * Constructs a new CreateInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.ICreateInstanceRequest);
+
+ /** CreateInstanceRequest parent. */
+ public parent: string;
+
+ /** CreateInstanceRequest instanceId. */
+ public instanceId: string;
+
+ /** CreateInstanceRequest instance. */
+ public instance?: (google.cloud.filestore.v1beta1.IInstance|null);
+
+ /**
+ * Creates a new CreateInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.ICreateInstanceRequest): google.cloud.filestore.v1beta1.CreateInstanceRequest;
+
+ /**
+ * Encodes the specified CreateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateInstanceRequest.verify|verify} messages.
+ * @param message CreateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateInstanceRequest.verify|verify} messages.
+ * @param message CreateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.CreateInstanceRequest;
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.CreateInstanceRequest;
+
+ /**
+ * Verifies a CreateInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.CreateInstanceRequest;
+
+ /**
+ * Creates a plain object from a CreateInstanceRequest message. Also converts values to other types if specified.
+ * @param message CreateInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.CreateInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetInstanceRequest. */
+ interface IGetInstanceRequest {
+
+ /** GetInstanceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetInstanceRequest. */
+ class GetInstanceRequest implements IGetInstanceRequest {
+
+ /**
+ * Constructs a new GetInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IGetInstanceRequest);
+
+ /** GetInstanceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IGetInstanceRequest): google.cloud.filestore.v1beta1.GetInstanceRequest;
+
+ /**
+ * Encodes the specified GetInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.GetInstanceRequest.verify|verify} messages.
+ * @param message GetInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.GetInstanceRequest.verify|verify} messages.
+ * @param message GetInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.GetInstanceRequest;
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.GetInstanceRequest;
+
+ /**
+ * Verifies a GetInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.GetInstanceRequest;
+
+ /**
+ * Creates a plain object from a GetInstanceRequest message. Also converts values to other types if specified.
+ * @param message GetInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.GetInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateInstanceRequest. */
+ interface IUpdateInstanceRequest {
+
+ /** UpdateInstanceRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateInstanceRequest instance */
+ instance?: (google.cloud.filestore.v1beta1.IInstance|null);
+ }
+
+ /** Represents an UpdateInstanceRequest. */
+ class UpdateInstanceRequest implements IUpdateInstanceRequest {
+
+ /**
+ * Constructs a new UpdateInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IUpdateInstanceRequest);
+
+ /** UpdateInstanceRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateInstanceRequest instance. */
+ public instance?: (google.cloud.filestore.v1beta1.IInstance|null);
+
+ /**
+ * Creates a new UpdateInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IUpdateInstanceRequest): google.cloud.filestore.v1beta1.UpdateInstanceRequest;
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateInstanceRequest.verify|verify} messages.
+ * @param message UpdateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IUpdateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateInstanceRequest.verify|verify} messages.
+ * @param message UpdateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IUpdateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.UpdateInstanceRequest;
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.UpdateInstanceRequest;
+
+ /**
+ * Verifies an UpdateInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.UpdateInstanceRequest;
+
+ /**
+ * Creates a plain object from an UpdateInstanceRequest message. Also converts values to other types if specified.
+ * @param message UpdateInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.UpdateInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreInstanceRequest. */
+ interface IRestoreInstanceRequest {
+
+ /** RestoreInstanceRequest name */
+ name?: (string|null);
+
+ /** RestoreInstanceRequest fileShare */
+ fileShare?: (string|null);
+
+ /** RestoreInstanceRequest sourceSnapshot */
+ sourceSnapshot?: (string|null);
+
+ /** RestoreInstanceRequest sourceBackup */
+ sourceBackup?: (string|null);
+ }
+
+ /** Represents a RestoreInstanceRequest. */
+ class RestoreInstanceRequest implements IRestoreInstanceRequest {
+
+ /**
+ * Constructs a new RestoreInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IRestoreInstanceRequest);
+
+ /** RestoreInstanceRequest name. */
+ public name: string;
+
+ /** RestoreInstanceRequest fileShare. */
+ public fileShare: string;
+
+ /** RestoreInstanceRequest sourceSnapshot. */
+ public sourceSnapshot?: (string|null);
+
+ /** RestoreInstanceRequest sourceBackup. */
+ public sourceBackup?: (string|null);
+
+ /** RestoreInstanceRequest source. */
+ public source?: ("sourceSnapshot"|"sourceBackup");
+
+ /**
+ * Creates a new RestoreInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IRestoreInstanceRequest): google.cloud.filestore.v1beta1.RestoreInstanceRequest;
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.RestoreInstanceRequest.verify|verify} messages.
+ * @param message RestoreInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IRestoreInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.RestoreInstanceRequest.verify|verify} messages.
+ * @param message RestoreInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IRestoreInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.RestoreInstanceRequest;
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.RestoreInstanceRequest;
+
+ /**
+ * Verifies a RestoreInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.RestoreInstanceRequest;
+
+ /**
+ * Creates a plain object from a RestoreInstanceRequest message. Also converts values to other types if specified.
+ * @param message RestoreInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.RestoreInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RevertInstanceRequest. */
+ interface IRevertInstanceRequest {
+
+ /** RevertInstanceRequest name */
+ name?: (string|null);
+
+ /** RevertInstanceRequest targetSnapshotId */
+ targetSnapshotId?: (string|null);
+ }
+
+ /** Represents a RevertInstanceRequest. */
+ class RevertInstanceRequest implements IRevertInstanceRequest {
+
+ /**
+ * Constructs a new RevertInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IRevertInstanceRequest);
+
+ /** RevertInstanceRequest name. */
+ public name: string;
+
+ /** RevertInstanceRequest targetSnapshotId. */
+ public targetSnapshotId: string;
+
+ /**
+ * Creates a new RevertInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RevertInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IRevertInstanceRequest): google.cloud.filestore.v1beta1.RevertInstanceRequest;
+
+ /**
+ * Encodes the specified RevertInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.RevertInstanceRequest.verify|verify} messages.
+ * @param message RevertInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IRevertInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RevertInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.RevertInstanceRequest.verify|verify} messages.
+ * @param message RevertInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IRevertInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RevertInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RevertInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.RevertInstanceRequest;
+
+ /**
+ * Decodes a RevertInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RevertInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.RevertInstanceRequest;
+
+ /**
+ * Verifies a RevertInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RevertInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RevertInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.RevertInstanceRequest;
+
+ /**
+ * Creates a plain object from a RevertInstanceRequest message. Also converts values to other types if specified.
+ * @param message RevertInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.RevertInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RevertInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RevertInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteInstanceRequest. */
+ interface IDeleteInstanceRequest {
+
+ /** DeleteInstanceRequest name */
+ name?: (string|null);
+
+ /** DeleteInstanceRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteInstanceRequest. */
+ class DeleteInstanceRequest implements IDeleteInstanceRequest {
+
+ /**
+ * Constructs a new DeleteInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IDeleteInstanceRequest);
+
+ /** DeleteInstanceRequest name. */
+ public name: string;
+
+ /** DeleteInstanceRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new DeleteInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IDeleteInstanceRequest): google.cloud.filestore.v1beta1.DeleteInstanceRequest;
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteInstanceRequest.verify|verify} messages.
+ * @param message DeleteInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IDeleteInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteInstanceRequest.verify|verify} messages.
+ * @param message DeleteInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IDeleteInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.DeleteInstanceRequest;
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.DeleteInstanceRequest;
+
+ /**
+ * Verifies a DeleteInstanceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.DeleteInstanceRequest;
+
+ /**
+ * Creates a plain object from a DeleteInstanceRequest message. Also converts values to other types if specified.
+ * @param message DeleteInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.DeleteInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstancesRequest. */
+ interface IListInstancesRequest {
+
+ /** ListInstancesRequest parent */
+ parent?: (string|null);
+
+ /** ListInstancesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListInstancesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListInstancesRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListInstancesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListInstancesRequest. */
+ class ListInstancesRequest implements IListInstancesRequest {
+
+ /**
+ * Constructs a new ListInstancesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListInstancesRequest);
+
+ /** ListInstancesRequest parent. */
+ public parent: string;
+
+ /** ListInstancesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListInstancesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListInstancesRequest orderBy. */
+ public orderBy: string;
+
+ /** ListInstancesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListInstancesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstancesRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListInstancesRequest): google.cloud.filestore.v1beta1.ListInstancesRequest;
+
+ /**
+ * Encodes the specified ListInstancesRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesRequest.verify|verify} messages.
+ * @param message ListInstancesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListInstancesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesRequest.verify|verify} messages.
+ * @param message ListInstancesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListInstancesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListInstancesRequest;
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListInstancesRequest;
+
+ /**
+ * Verifies a ListInstancesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstancesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstancesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListInstancesRequest;
+
+ /**
+ * Creates a plain object from a ListInstancesRequest message. Also converts values to other types if specified.
+ * @param message ListInstancesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListInstancesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstancesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstancesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstancesResponse. */
+ interface IListInstancesResponse {
+
+ /** ListInstancesResponse instances */
+ instances?: (google.cloud.filestore.v1beta1.IInstance[]|null);
+
+ /** ListInstancesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListInstancesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListInstancesResponse. */
+ class ListInstancesResponse implements IListInstancesResponse {
+
+ /**
+ * Constructs a new ListInstancesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListInstancesResponse);
+
+ /** ListInstancesResponse instances. */
+ public instances: google.cloud.filestore.v1beta1.IInstance[];
+
+ /** ListInstancesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListInstancesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListInstancesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstancesResponse instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListInstancesResponse): google.cloud.filestore.v1beta1.ListInstancesResponse;
+
+ /**
+ * Encodes the specified ListInstancesResponse message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesResponse.verify|verify} messages.
+ * @param message ListInstancesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListInstancesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstancesResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesResponse.verify|verify} messages.
+ * @param message ListInstancesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListInstancesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListInstancesResponse;
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListInstancesResponse;
+
+ /**
+ * Verifies a ListInstancesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstancesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstancesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListInstancesResponse;
+
+ /**
+ * Creates a plain object from a ListInstancesResponse message. Also converts values to other types if specified.
+ * @param message ListInstancesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListInstancesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstancesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstancesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Snapshot. */
+ interface ISnapshot {
+
+ /** Snapshot name */
+ name?: (string|null);
+
+ /** Snapshot description */
+ description?: (string|null);
+
+ /** Snapshot state */
+ state?: (google.cloud.filestore.v1beta1.Snapshot.State|keyof typeof google.cloud.filestore.v1beta1.Snapshot.State|null);
+
+ /** Snapshot createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Snapshot labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Snapshot filesystemUsedBytes */
+ filesystemUsedBytes?: (number|Long|string|null);
+ }
+
+ /** Represents a Snapshot. */
+ class Snapshot implements ISnapshot {
+
+ /**
+ * Constructs a new Snapshot.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.ISnapshot);
+
+ /** Snapshot name. */
+ public name: string;
+
+ /** Snapshot description. */
+ public description: string;
+
+ /** Snapshot state. */
+ public state: (google.cloud.filestore.v1beta1.Snapshot.State|keyof typeof google.cloud.filestore.v1beta1.Snapshot.State);
+
+ /** Snapshot createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Snapshot labels. */
+ public labels: { [k: string]: string };
+
+ /** Snapshot filesystemUsedBytes. */
+ public filesystemUsedBytes: (number|Long|string);
+
+ /**
+ * Creates a new Snapshot instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Snapshot instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.ISnapshot): google.cloud.filestore.v1beta1.Snapshot;
+
+ /**
+ * Encodes the specified Snapshot message. Does not implicitly {@link google.cloud.filestore.v1beta1.Snapshot.verify|verify} messages.
+ * @param message Snapshot message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.Snapshot.verify|verify} messages.
+ * @param message Snapshot message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Snapshot message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Snapshot
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.Snapshot;
+
+ /**
+ * Decodes a Snapshot message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Snapshot
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.Snapshot;
+
+ /**
+ * Verifies a Snapshot message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Snapshot message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Snapshot
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.Snapshot;
+
+ /**
+ * Creates a plain object from a Snapshot message. Also converts values to other types if specified.
+ * @param message Snapshot
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Snapshot to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Snapshot
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Snapshot {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 3,
+ DELETING = 4
+ }
+ }
+
+ /** Properties of a CreateSnapshotRequest. */
+ interface ICreateSnapshotRequest {
+
+ /** CreateSnapshotRequest parent */
+ parent?: (string|null);
+
+ /** CreateSnapshotRequest snapshotId */
+ snapshotId?: (string|null);
+
+ /** CreateSnapshotRequest snapshot */
+ snapshot?: (google.cloud.filestore.v1beta1.ISnapshot|null);
+ }
+
+ /** Represents a CreateSnapshotRequest. */
+ class CreateSnapshotRequest implements ICreateSnapshotRequest {
+
+ /**
+ * Constructs a new CreateSnapshotRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.ICreateSnapshotRequest);
+
+ /** CreateSnapshotRequest parent. */
+ public parent: string;
+
+ /** CreateSnapshotRequest snapshotId. */
+ public snapshotId: string;
+
+ /** CreateSnapshotRequest snapshot. */
+ public snapshot?: (google.cloud.filestore.v1beta1.ISnapshot|null);
+
+ /**
+ * Creates a new CreateSnapshotRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateSnapshotRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.ICreateSnapshotRequest): google.cloud.filestore.v1beta1.CreateSnapshotRequest;
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateSnapshotRequest.verify|verify} messages.
+ * @param message CreateSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateSnapshotRequest.verify|verify} messages.
+ * @param message CreateSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateSnapshotRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.CreateSnapshotRequest;
+
+ /**
+ * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.CreateSnapshotRequest;
+
+ /**
+ * Verifies a CreateSnapshotRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateSnapshotRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.CreateSnapshotRequest;
+
+ /**
+ * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified.
+ * @param message CreateSnapshotRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.CreateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateSnapshotRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateSnapshotRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetSnapshotRequest. */
+ interface IGetSnapshotRequest {
+
+ /** GetSnapshotRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetSnapshotRequest. */
+ class GetSnapshotRequest implements IGetSnapshotRequest {
+
+ /**
+ * Constructs a new GetSnapshotRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IGetSnapshotRequest);
+
+ /** GetSnapshotRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetSnapshotRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetSnapshotRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IGetSnapshotRequest): google.cloud.filestore.v1beta1.GetSnapshotRequest;
+
+ /**
+ * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.GetSnapshotRequest.verify|verify} messages.
+ * @param message GetSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.GetSnapshotRequest.verify|verify} messages.
+ * @param message GetSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetSnapshotRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.GetSnapshotRequest;
+
+ /**
+ * Decodes a GetSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.GetSnapshotRequest;
+
+ /**
+ * Verifies a GetSnapshotRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetSnapshotRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.GetSnapshotRequest;
+
+ /**
+ * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified.
+ * @param message GetSnapshotRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.GetSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetSnapshotRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetSnapshotRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteSnapshotRequest. */
+ interface IDeleteSnapshotRequest {
+
+ /** DeleteSnapshotRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteSnapshotRequest. */
+ class DeleteSnapshotRequest implements IDeleteSnapshotRequest {
+
+ /**
+ * Constructs a new DeleteSnapshotRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IDeleteSnapshotRequest);
+
+ /** DeleteSnapshotRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteSnapshotRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteSnapshotRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IDeleteSnapshotRequest): google.cloud.filestore.v1beta1.DeleteSnapshotRequest;
+
+ /**
+ * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteSnapshotRequest.verify|verify} messages.
+ * @param message DeleteSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteSnapshotRequest.verify|verify} messages.
+ * @param message DeleteSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteSnapshotRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.DeleteSnapshotRequest;
+
+ /**
+ * Decodes a DeleteSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.DeleteSnapshotRequest;
+
+ /**
+ * Verifies a DeleteSnapshotRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteSnapshotRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.DeleteSnapshotRequest;
+
+ /**
+ * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified.
+ * @param message DeleteSnapshotRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.DeleteSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteSnapshotRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteSnapshotRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateSnapshotRequest. */
+ interface IUpdateSnapshotRequest {
+
+ /** UpdateSnapshotRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateSnapshotRequest snapshot */
+ snapshot?: (google.cloud.filestore.v1beta1.ISnapshot|null);
+ }
+
+ /** Represents an UpdateSnapshotRequest. */
+ class UpdateSnapshotRequest implements IUpdateSnapshotRequest {
+
+ /**
+ * Constructs a new UpdateSnapshotRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IUpdateSnapshotRequest);
+
+ /** UpdateSnapshotRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateSnapshotRequest snapshot. */
+ public snapshot?: (google.cloud.filestore.v1beta1.ISnapshot|null);
+
+ /**
+ * Creates a new UpdateSnapshotRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateSnapshotRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IUpdateSnapshotRequest): google.cloud.filestore.v1beta1.UpdateSnapshotRequest;
+
+ /**
+ * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateSnapshotRequest.verify|verify} messages.
+ * @param message UpdateSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateSnapshotRequest.verify|verify} messages.
+ * @param message UpdateSnapshotRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateSnapshotRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.UpdateSnapshotRequest;
+
+ /**
+ * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.UpdateSnapshotRequest;
+
+ /**
+ * Verifies an UpdateSnapshotRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateSnapshotRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.UpdateSnapshotRequest;
+
+ /**
+ * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified.
+ * @param message UpdateSnapshotRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.UpdateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateSnapshotRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateSnapshotRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSnapshotsRequest. */
+ interface IListSnapshotsRequest {
+
+ /** ListSnapshotsRequest parent */
+ parent?: (string|null);
+
+ /** ListSnapshotsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListSnapshotsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListSnapshotsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListSnapshotsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListSnapshotsRequest. */
+ class ListSnapshotsRequest implements IListSnapshotsRequest {
+
+ /**
+ * Constructs a new ListSnapshotsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListSnapshotsRequest);
+
+ /** ListSnapshotsRequest parent. */
+ public parent: string;
+
+ /** ListSnapshotsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListSnapshotsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListSnapshotsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListSnapshotsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListSnapshotsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSnapshotsRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListSnapshotsRequest): google.cloud.filestore.v1beta1.ListSnapshotsRequest;
+
+ /**
+ * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSnapshotsRequest.verify|verify} messages.
+ * @param message ListSnapshotsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSnapshotsRequest.verify|verify} messages.
+ * @param message ListSnapshotsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSnapshotsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSnapshotsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListSnapshotsRequest;
+
+ /**
+ * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSnapshotsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListSnapshotsRequest;
+
+ /**
+ * Verifies a ListSnapshotsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSnapshotsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListSnapshotsRequest;
+
+ /**
+ * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified.
+ * @param message ListSnapshotsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSnapshotsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSnapshotsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSnapshotsResponse. */
+ interface IListSnapshotsResponse {
+
+ /** ListSnapshotsResponse snapshots */
+ snapshots?: (google.cloud.filestore.v1beta1.ISnapshot[]|null);
+
+ /** ListSnapshotsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListSnapshotsResponse. */
+ class ListSnapshotsResponse implements IListSnapshotsResponse {
+
+ /**
+ * Constructs a new ListSnapshotsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListSnapshotsResponse);
+
+ /** ListSnapshotsResponse snapshots. */
+ public snapshots: google.cloud.filestore.v1beta1.ISnapshot[];
+
+ /** ListSnapshotsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListSnapshotsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSnapshotsResponse instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListSnapshotsResponse): google.cloud.filestore.v1beta1.ListSnapshotsResponse;
+
+ /**
+ * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSnapshotsResponse.verify|verify} messages.
+ * @param message ListSnapshotsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSnapshotsResponse.verify|verify} messages.
+ * @param message ListSnapshotsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSnapshotsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSnapshotsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListSnapshotsResponse;
+
+ /**
+ * Decodes a ListSnapshotsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSnapshotsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListSnapshotsResponse;
+
+ /**
+ * Verifies a ListSnapshotsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSnapshotsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListSnapshotsResponse;
+
+ /**
+ * Creates a plain object from a ListSnapshotsResponse message. Also converts values to other types if specified.
+ * @param message ListSnapshotsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListSnapshotsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSnapshotsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSnapshotsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Backup. */
+ interface IBackup {
+
+ /** Backup name */
+ name?: (string|null);
+
+ /** Backup description */
+ description?: (string|null);
+
+ /** Backup state */
+ state?: (google.cloud.filestore.v1beta1.Backup.State|keyof typeof google.cloud.filestore.v1beta1.Backup.State|null);
+
+ /** Backup createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Backup capacityGb */
+ capacityGb?: (number|Long|string|null);
+
+ /** Backup storageBytes */
+ storageBytes?: (number|Long|string|null);
+
+ /** Backup sourceInstance */
+ sourceInstance?: (string|null);
+
+ /** Backup sourceFileShare */
+ sourceFileShare?: (string|null);
+
+ /** Backup sourceInstanceTier */
+ sourceInstanceTier?: (google.cloud.filestore.v1beta1.Instance.Tier|keyof typeof google.cloud.filestore.v1beta1.Instance.Tier|null);
+
+ /** Backup downloadBytes */
+ downloadBytes?: (number|Long|string|null);
+
+ /** Backup satisfiesPzs */
+ satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /** Backup kmsKeyName */
+ kmsKeyName?: (string|null);
+ }
+
+ /** Represents a Backup. */
+ class Backup implements IBackup {
+
+ /**
+ * Constructs a new Backup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IBackup);
+
+ /** Backup name. */
+ public name: string;
+
+ /** Backup description. */
+ public description: string;
+
+ /** Backup state. */
+ public state: (google.cloud.filestore.v1beta1.Backup.State|keyof typeof google.cloud.filestore.v1beta1.Backup.State);
+
+ /** Backup createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Backup labels. */
+ public labels: { [k: string]: string };
+
+ /** Backup capacityGb. */
+ public capacityGb: (number|Long|string);
+
+ /** Backup storageBytes. */
+ public storageBytes: (number|Long|string);
+
+ /** Backup sourceInstance. */
+ public sourceInstance: string;
+
+ /** Backup sourceFileShare. */
+ public sourceFileShare: string;
+
+ /** Backup sourceInstanceTier. */
+ public sourceInstanceTier: (google.cloud.filestore.v1beta1.Instance.Tier|keyof typeof google.cloud.filestore.v1beta1.Instance.Tier);
+
+ /** Backup downloadBytes. */
+ public downloadBytes: (number|Long|string);
+
+ /** Backup satisfiesPzs. */
+ public satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /** Backup kmsKeyName. */
+ public kmsKeyName: string;
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Backup instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IBackup): google.cloud.filestore.v1beta1.Backup;
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.cloud.filestore.v1beta1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.Backup.verify|verify} messages.
+ * @param message Backup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IBackup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.Backup;
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.Backup;
+
+ /**
+ * Verifies a Backup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Backup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.Backup;
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @param message Backup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Backup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Backup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Backup {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ FINALIZING = 2,
+ READY = 3,
+ DELETING = 4
+ }
+ }
+
+ /** Properties of a CreateBackupRequest. */
+ interface ICreateBackupRequest {
+
+ /** CreateBackupRequest parent */
+ parent?: (string|null);
+
+ /** CreateBackupRequest backup */
+ backup?: (google.cloud.filestore.v1beta1.IBackup|null);
+
+ /** CreateBackupRequest backupId */
+ backupId?: (string|null);
+ }
+
+ /** Represents a CreateBackupRequest. */
+ class CreateBackupRequest implements ICreateBackupRequest {
+
+ /**
+ * Constructs a new CreateBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.ICreateBackupRequest);
+
+ /** CreateBackupRequest parent. */
+ public parent: string;
+
+ /** CreateBackupRequest backup. */
+ public backup?: (google.cloud.filestore.v1beta1.IBackup|null);
+
+ /** CreateBackupRequest backupId. */
+ public backupId: string;
+
+ /**
+ * Creates a new CreateBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.ICreateBackupRequest): google.cloud.filestore.v1beta1.CreateBackupRequest;
+
+ /**
+ * Encodes the specified CreateBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateBackupRequest.verify|verify} messages.
+ * @param message CreateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.ICreateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.CreateBackupRequest;
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.CreateBackupRequest;
+
+ /**
+ * Verifies a CreateBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.CreateBackupRequest;
+
+ /**
+ * Creates a plain object from a CreateBackupRequest message. Also converts values to other types if specified.
+ * @param message CreateBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.CreateBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBackupRequest. */
+ interface IDeleteBackupRequest {
+
+ /** DeleteBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteBackupRequest. */
+ class DeleteBackupRequest implements IDeleteBackupRequest {
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IDeleteBackupRequest);
+
+ /** DeleteBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IDeleteBackupRequest): google.cloud.filestore.v1beta1.DeleteBackupRequest;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteBackupRequest.verify|verify} messages.
+ * @param message DeleteBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IDeleteBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.DeleteBackupRequest;
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.DeleteBackupRequest;
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.DeleteBackupRequest;
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @param message DeleteBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.DeleteBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBackupRequest. */
+ interface IUpdateBackupRequest {
+
+ /** UpdateBackupRequest backup */
+ backup?: (google.cloud.filestore.v1beta1.IBackup|null);
+
+ /** UpdateBackupRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateBackupRequest. */
+ class UpdateBackupRequest implements IUpdateBackupRequest {
+
+ /**
+ * Constructs a new UpdateBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IUpdateBackupRequest);
+
+ /** UpdateBackupRequest backup. */
+ public backup?: (google.cloud.filestore.v1beta1.IBackup|null);
+
+ /** UpdateBackupRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IUpdateBackupRequest): google.cloud.filestore.v1beta1.UpdateBackupRequest;
+
+ /**
+ * Encodes the specified UpdateBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateBackupRequest.verify|verify} messages.
+ * @param message UpdateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IUpdateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateBackupRequest.verify|verify} messages.
+ * @param message UpdateBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IUpdateBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.UpdateBackupRequest;
+
+ /**
+ * Decodes an UpdateBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.UpdateBackupRequest;
+
+ /**
+ * Verifies an UpdateBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.UpdateBackupRequest;
+
+ /**
+ * Creates a plain object from an UpdateBackupRequest message. Also converts values to other types if specified.
+ * @param message UpdateBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.UpdateBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBackupRequest. */
+ interface IGetBackupRequest {
+
+ /** GetBackupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBackupRequest. */
+ class GetBackupRequest implements IGetBackupRequest {
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IGetBackupRequest);
+
+ /** GetBackupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBackupRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IGetBackupRequest): google.cloud.filestore.v1beta1.GetBackupRequest;
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.GetBackupRequest.verify|verify} messages.
+ * @param message GetBackupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IGetBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.GetBackupRequest;
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.GetBackupRequest;
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBackupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.GetBackupRequest;
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @param message GetBackupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.GetBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBackupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsRequest. */
+ interface IListBackupsRequest {
+
+ /** ListBackupsRequest parent */
+ parent?: (string|null);
+
+ /** ListBackupsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListBackupsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListBackupsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListBackupsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListBackupsRequest. */
+ class ListBackupsRequest implements IListBackupsRequest {
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListBackupsRequest);
+
+ /** ListBackupsRequest parent. */
+ public parent: string;
+
+ /** ListBackupsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListBackupsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListBackupsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListBackupsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListBackupsRequest): google.cloud.filestore.v1beta1.ListBackupsRequest;
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListBackupsRequest.verify|verify} messages.
+ * @param message ListBackupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListBackupsRequest;
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListBackupsRequest;
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListBackupsRequest;
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @param message ListBackupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBackupsResponse. */
+ interface IListBackupsResponse {
+
+ /** ListBackupsResponse backups */
+ backups?: (google.cloud.filestore.v1beta1.IBackup[]|null);
+
+ /** ListBackupsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListBackupsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListBackupsResponse. */
+ class ListBackupsResponse implements IListBackupsResponse {
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListBackupsResponse);
+
+ /** ListBackupsResponse backups. */
+ public backups: google.cloud.filestore.v1beta1.IBackup[];
+
+ /** ListBackupsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListBackupsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBackupsResponse instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListBackupsResponse): google.cloud.filestore.v1beta1.ListBackupsResponse;
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListBackupsResponse.verify|verify} messages.
+ * @param message ListBackupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListBackupsResponse;
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListBackupsResponse;
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBackupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListBackupsResponse;
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @param message ListBackupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Share. */
+ interface IShare {
+
+ /** Share name */
+ name?: (string|null);
+
+ /** Share mountName */
+ mountName?: (string|null);
+
+ /** Share description */
+ description?: (string|null);
+
+ /** Share capacityGb */
+ capacityGb?: (number|Long|string|null);
+
+ /** Share nfsExportOptions */
+ nfsExportOptions?: (google.cloud.filestore.v1beta1.INfsExportOptions[]|null);
+
+ /** Share state */
+ state?: (google.cloud.filestore.v1beta1.Share.State|keyof typeof google.cloud.filestore.v1beta1.Share.State|null);
+
+ /** Share createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Share labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a Share. */
+ class Share implements IShare {
+
+ /**
+ * Constructs a new Share.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IShare);
+
+ /** Share name. */
+ public name: string;
+
+ /** Share mountName. */
+ public mountName: string;
+
+ /** Share description. */
+ public description: string;
+
+ /** Share capacityGb. */
+ public capacityGb: (number|Long|string);
+
+ /** Share nfsExportOptions. */
+ public nfsExportOptions: google.cloud.filestore.v1beta1.INfsExportOptions[];
+
+ /** Share state. */
+ public state: (google.cloud.filestore.v1beta1.Share.State|keyof typeof google.cloud.filestore.v1beta1.Share.State);
+
+ /** Share createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Share labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new Share instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Share instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IShare): google.cloud.filestore.v1beta1.Share;
+
+ /**
+ * Encodes the specified Share message. Does not implicitly {@link google.cloud.filestore.v1beta1.Share.verify|verify} messages.
+ * @param message Share message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IShare, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Share message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.Share.verify|verify} messages.
+ * @param message Share message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IShare, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Share message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Share
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.Share;
+
+ /**
+ * Decodes a Share message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Share
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.Share;
+
+ /**
+ * Verifies a Share message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Share message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Share
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.Share;
+
+ /**
+ * Creates a plain object from a Share message. Also converts values to other types if specified.
+ * @param message Share
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.Share, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Share to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Share
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Share {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 3,
+ DELETING = 4
+ }
+ }
+
+ /** Properties of a CreateShareRequest. */
+ interface ICreateShareRequest {
+
+ /** CreateShareRequest parent */
+ parent?: (string|null);
+
+ /** CreateShareRequest shareId */
+ shareId?: (string|null);
+
+ /** CreateShareRequest share */
+ share?: (google.cloud.filestore.v1beta1.IShare|null);
+ }
+
+ /** Represents a CreateShareRequest. */
+ class CreateShareRequest implements ICreateShareRequest {
+
+ /**
+ * Constructs a new CreateShareRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.ICreateShareRequest);
+
+ /** CreateShareRequest parent. */
+ public parent: string;
+
+ /** CreateShareRequest shareId. */
+ public shareId: string;
+
+ /** CreateShareRequest share. */
+ public share?: (google.cloud.filestore.v1beta1.IShare|null);
+
+ /**
+ * Creates a new CreateShareRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateShareRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.ICreateShareRequest): google.cloud.filestore.v1beta1.CreateShareRequest;
+
+ /**
+ * Encodes the specified CreateShareRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateShareRequest.verify|verify} messages.
+ * @param message CreateShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.ICreateShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateShareRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateShareRequest.verify|verify} messages.
+ * @param message CreateShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.ICreateShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateShareRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.CreateShareRequest;
+
+ /**
+ * Decodes a CreateShareRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.CreateShareRequest;
+
+ /**
+ * Verifies a CreateShareRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateShareRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateShareRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.CreateShareRequest;
+
+ /**
+ * Creates a plain object from a CreateShareRequest message. Also converts values to other types if specified.
+ * @param message CreateShareRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.CreateShareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateShareRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateShareRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetShareRequest. */
+ interface IGetShareRequest {
+
+ /** GetShareRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetShareRequest. */
+ class GetShareRequest implements IGetShareRequest {
+
+ /**
+ * Constructs a new GetShareRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IGetShareRequest);
+
+ /** GetShareRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetShareRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetShareRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IGetShareRequest): google.cloud.filestore.v1beta1.GetShareRequest;
+
+ /**
+ * Encodes the specified GetShareRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.GetShareRequest.verify|verify} messages.
+ * @param message GetShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IGetShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetShareRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.GetShareRequest.verify|verify} messages.
+ * @param message GetShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IGetShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetShareRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.GetShareRequest;
+
+ /**
+ * Decodes a GetShareRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.GetShareRequest;
+
+ /**
+ * Verifies a GetShareRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetShareRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetShareRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.GetShareRequest;
+
+ /**
+ * Creates a plain object from a GetShareRequest message. Also converts values to other types if specified.
+ * @param message GetShareRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.GetShareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetShareRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetShareRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteShareRequest. */
+ interface IDeleteShareRequest {
+
+ /** DeleteShareRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteShareRequest. */
+ class DeleteShareRequest implements IDeleteShareRequest {
+
+ /**
+ * Constructs a new DeleteShareRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IDeleteShareRequest);
+
+ /** DeleteShareRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteShareRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteShareRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IDeleteShareRequest): google.cloud.filestore.v1beta1.DeleteShareRequest;
+
+ /**
+ * Encodes the specified DeleteShareRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteShareRequest.verify|verify} messages.
+ * @param message DeleteShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IDeleteShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteShareRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteShareRequest.verify|verify} messages.
+ * @param message DeleteShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IDeleteShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteShareRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.DeleteShareRequest;
+
+ /**
+ * Decodes a DeleteShareRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.DeleteShareRequest;
+
+ /**
+ * Verifies a DeleteShareRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteShareRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteShareRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.DeleteShareRequest;
+
+ /**
+ * Creates a plain object from a DeleteShareRequest message. Also converts values to other types if specified.
+ * @param message DeleteShareRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.DeleteShareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteShareRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteShareRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSharesRequest. */
+ interface IListSharesRequest {
+
+ /** ListSharesRequest parent */
+ parent?: (string|null);
+
+ /** ListSharesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListSharesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListSharesRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListSharesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListSharesRequest. */
+ class ListSharesRequest implements IListSharesRequest {
+
+ /**
+ * Constructs a new ListSharesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListSharesRequest);
+
+ /** ListSharesRequest parent. */
+ public parent: string;
+
+ /** ListSharesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListSharesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListSharesRequest orderBy. */
+ public orderBy: string;
+
+ /** ListSharesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListSharesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSharesRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListSharesRequest): google.cloud.filestore.v1beta1.ListSharesRequest;
+
+ /**
+ * Encodes the specified ListSharesRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSharesRequest.verify|verify} messages.
+ * @param message ListSharesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSharesRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSharesRequest.verify|verify} messages.
+ * @param message ListSharesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSharesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSharesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListSharesRequest;
+
+ /**
+ * Decodes a ListSharesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSharesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListSharesRequest;
+
+ /**
+ * Verifies a ListSharesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSharesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSharesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListSharesRequest;
+
+ /**
+ * Creates a plain object from a ListSharesRequest message. Also converts values to other types if specified.
+ * @param message ListSharesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListSharesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSharesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSharesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSharesResponse. */
+ interface IListSharesResponse {
+
+ /** ListSharesResponse shares */
+ shares?: (google.cloud.filestore.v1beta1.IShare[]|null);
+
+ /** ListSharesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListSharesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListSharesResponse. */
+ class ListSharesResponse implements IListSharesResponse {
+
+ /**
+ * Constructs a new ListSharesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IListSharesResponse);
+
+ /** ListSharesResponse shares. */
+ public shares: google.cloud.filestore.v1beta1.IShare[];
+
+ /** ListSharesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListSharesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListSharesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSharesResponse instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IListSharesResponse): google.cloud.filestore.v1beta1.ListSharesResponse;
+
+ /**
+ * Encodes the specified ListSharesResponse message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSharesResponse.verify|verify} messages.
+ * @param message ListSharesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IListSharesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSharesResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListSharesResponse.verify|verify} messages.
+ * @param message ListSharesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IListSharesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSharesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSharesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.ListSharesResponse;
+
+ /**
+ * Decodes a ListSharesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSharesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.ListSharesResponse;
+
+ /**
+ * Verifies a ListSharesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSharesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSharesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.ListSharesResponse;
+
+ /**
+ * Creates a plain object from a ListSharesResponse message. Also converts values to other types if specified.
+ * @param message ListSharesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.ListSharesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSharesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSharesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateShareRequest. */
+ interface IUpdateShareRequest {
+
+ /** UpdateShareRequest share */
+ share?: (google.cloud.filestore.v1beta1.IShare|null);
+
+ /** UpdateShareRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateShareRequest. */
+ class UpdateShareRequest implements IUpdateShareRequest {
+
+ /**
+ * Constructs a new UpdateShareRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.filestore.v1beta1.IUpdateShareRequest);
+
+ /** UpdateShareRequest share. */
+ public share?: (google.cloud.filestore.v1beta1.IShare|null);
+
+ /** UpdateShareRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateShareRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateShareRequest instance
+ */
+ public static create(properties?: google.cloud.filestore.v1beta1.IUpdateShareRequest): google.cloud.filestore.v1beta1.UpdateShareRequest;
+
+ /**
+ * Encodes the specified UpdateShareRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateShareRequest.verify|verify} messages.
+ * @param message UpdateShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.filestore.v1beta1.IUpdateShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateShareRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateShareRequest.verify|verify} messages.
+ * @param message UpdateShareRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.filestore.v1beta1.IUpdateShareRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateShareRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.filestore.v1beta1.UpdateShareRequest;
+
+ /**
+ * Decodes an UpdateShareRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateShareRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.filestore.v1beta1.UpdateShareRequest;
+
+ /**
+ * Verifies an UpdateShareRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateShareRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateShareRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.filestore.v1beta1.UpdateShareRequest;
+
+ /**
+ * Creates a plain object from an UpdateShareRequest message. Also converts values to other types if specified.
+ * @param message UpdateShareRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.filestore.v1beta1.UpdateShareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateShareRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateShareRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto 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: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** 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 new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
+
+ /**
+ * Verifies a FloatValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value;
+
+ /**
+ * Verifies an Int64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
+
+ /**
+ * Verifies an Int32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
+
+ /**
+ * Verifies a BoolValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoolValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
+
+ /**
+ * Verifies a StringValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
+
+ /**
+ * Verifies a BytesValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BytesValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-filestore/protos/protos.js b/packages/google-cloud-filestore/protos/protos.js
new file mode 100644
index 00000000000..6d55de8a69e
--- /dev/null
+++ b/packages/google-cloud-filestore/protos/protos.js
@@ -0,0 +1,33869 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_cloud_filestore_protos || ($protobuf.roots._google_cloud_filestore_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.common = (function() {
+
+ /**
+ * Namespace common.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var common = {};
+
+ common.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.common
+ * @interface IOperationMetadata
+ * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime
+ * @property {string|null} [target] OperationMetadata target
+ * @property {string|null} [verb] OperationMetadata verb
+ * @property {string|null} [statusDetail] OperationMetadata statusDetail
+ * @property {boolean|null} [cancelRequested] OperationMetadata cancelRequested
+ * @property {string|null} [apiVersion] OperationMetadata apiVersion
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.common
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.common.IOperationMetadata=} [properties] Properties to set
+ */
+ function OperationMetadata(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]];
+ }
+
+ /**
+ * OperationMetadata createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusDetail.
+ * @member {string} statusDetail
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusDetail = "";
+
+ /**
+ * OperationMetadata cancelRequested.
+ * @member {boolean} cancelRequested
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.cancelRequested = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {google.cloud.common.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.common.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.common.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {google.cloud.common.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.target);
+ if (message.verb != null && Object.hasOwnProperty.call(message, "verb"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb);
+ if (message.statusDetail != null && Object.hasOwnProperty.call(message, "statusDetail"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusDetail);
+ if (message.cancelRequested != null && Object.hasOwnProperty.call(message, "cancelRequested"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.cancelRequested);
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.common.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {google.cloud.common.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.common.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.common.OperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.target = reader.string();
+ break;
+ }
+ case 4: {
+ message.verb = reader.string();
+ break;
+ }
+ case 5: {
+ message.statusDetail = reader.string();
+ break;
+ }
+ case 6: {
+ message.cancelRequested = reader.bool();
+ break;
+ }
+ case 7: {
+ message.apiVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.common.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @function verify
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.target != null && message.hasOwnProperty("target"))
+ if (!$util.isString(message.target))
+ return "target: string expected";
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ if (!$util.isString(message.verb))
+ return "verb: string expected";
+ if (message.statusDetail != null && message.hasOwnProperty("statusDetail"))
+ if (!$util.isString(message.statusDetail))
+ return "statusDetail: string expected";
+ if (message.cancelRequested != null && message.hasOwnProperty("cancelRequested"))
+ if (typeof message.cancelRequested !== "boolean")
+ return "cancelRequested: boolean expected";
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ if (!$util.isString(message.apiVersion))
+ return "apiVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.common.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.common.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.common.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.common.OperationMetadata.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.common.OperationMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.target != null)
+ message.target = String(object.target);
+ if (object.verb != null)
+ message.verb = String(object.verb);
+ if (object.statusDetail != null)
+ message.statusDetail = String(object.statusDetail);
+ if (object.cancelRequested != null)
+ message.cancelRequested = Boolean(object.cancelRequested);
+ if (object.apiVersion != null)
+ message.apiVersion = String(object.apiVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {google.cloud.common.OperationMetadata} message OperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.endTime = null;
+ object.target = "";
+ object.verb = "";
+ object.statusDetail = "";
+ object.cancelRequested = false;
+ object.apiVersion = "";
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = message.target;
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ object.verb = message.verb;
+ if (message.statusDetail != null && message.hasOwnProperty("statusDetail"))
+ object.statusDetail = message.statusDetail;
+ if (message.cancelRequested != null && message.hasOwnProperty("cancelRequested"))
+ object.cancelRequested = message.cancelRequested;
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = message.apiVersion;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.common.OperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.common.OperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.common.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ return common;
+ })();
+
+ cloud.filestore = (function() {
+
+ /**
+ * Namespace filestore.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var filestore = {};
+
+ filestore.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.filestore
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.CloudFilestoreManager = (function() {
+
+ /**
+ * Constructs a new CloudFilestoreManager service.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a CloudFilestoreManager
+ * @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 CloudFilestoreManager(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (CloudFilestoreManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = CloudFilestoreManager;
+
+ /**
+ * Creates new CloudFilestoreManager service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {CloudFilestoreManager} RPC service. Useful where requests and/or responses are streamed.
+ */
+ CloudFilestoreManager.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|listInstances}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef ListInstancesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1.ListInstancesResponse} [response] ListInstancesResponse
+ */
+
+ /**
+ * Calls ListInstances.
+ * @function listInstances
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IListInstancesRequest} request ListInstancesRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.ListInstancesCallback} callback Node-style callback called with the error, if any, and ListInstancesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.listInstances = function listInstances(request, callback) {
+ return this.rpcCall(listInstances, $root.google.cloud.filestore.v1.ListInstancesRequest, $root.google.cloud.filestore.v1.ListInstancesResponse, request, callback);
+ }, "name", { value: "ListInstances" });
+
+ /**
+ * Calls ListInstances.
+ * @function listInstances
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IListInstancesRequest} request ListInstancesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|getInstance}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef GetInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1.Instance} [response] Instance
+ */
+
+ /**
+ * Calls GetInstance.
+ * @function getInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IGetInstanceRequest} request GetInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.GetInstanceCallback} callback Node-style callback called with the error, if any, and Instance
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.getInstance = function getInstance(request, callback) {
+ return this.rpcCall(getInstance, $root.google.cloud.filestore.v1.GetInstanceRequest, $root.google.cloud.filestore.v1.Instance, request, callback);
+ }, "name", { value: "GetInstance" });
+
+ /**
+ * Calls GetInstance.
+ * @function getInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IGetInstanceRequest} request GetInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|createInstance}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef CreateInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateInstance.
+ * @function createInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.ICreateInstanceRequest} request CreateInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.CreateInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.createInstance = function createInstance(request, callback) {
+ return this.rpcCall(createInstance, $root.google.cloud.filestore.v1.CreateInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateInstance" });
+
+ /**
+ * Calls CreateInstance.
+ * @function createInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.ICreateInstanceRequest} request CreateInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|updateInstance}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef UpdateInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateInstance.
+ * @function updateInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IUpdateInstanceRequest} request UpdateInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.updateInstance = function updateInstance(request, callback) {
+ return this.rpcCall(updateInstance, $root.google.cloud.filestore.v1.UpdateInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateInstance" });
+
+ /**
+ * Calls UpdateInstance.
+ * @function updateInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IUpdateInstanceRequest} request UpdateInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|restoreInstance}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef RestoreInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RestoreInstance.
+ * @function restoreInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IRestoreInstanceRequest} request RestoreInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.restoreInstance = function restoreInstance(request, callback) {
+ return this.rpcCall(restoreInstance, $root.google.cloud.filestore.v1.RestoreInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RestoreInstance" });
+
+ /**
+ * Calls RestoreInstance.
+ * @function restoreInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IRestoreInstanceRequest} request RestoreInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|deleteInstance}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef DeleteInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteInstance.
+ * @function deleteInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.deleteInstance = function deleteInstance(request, callback) {
+ return this.rpcCall(deleteInstance, $root.google.cloud.filestore.v1.DeleteInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteInstance" });
+
+ /**
+ * Calls DeleteInstance.
+ * @function deleteInstance
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|listBackups}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef ListBackupsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1.ListBackupsResponse} [response] ListBackupsResponse
+ */
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.ListBackupsCallback} callback Node-style callback called with the error, if any, and ListBackupsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.listBackups = function listBackups(request, callback) {
+ return this.rpcCall(listBackups, $root.google.cloud.filestore.v1.ListBackupsRequest, $root.google.cloud.filestore.v1.ListBackupsResponse, request, callback);
+ }, "name", { value: "ListBackups" });
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|getBackup}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef GetBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1.Backup} [response] Backup
+ */
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.GetBackupCallback} callback Node-style callback called with the error, if any, and Backup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.getBackup = function getBackup(request, callback) {
+ return this.rpcCall(getBackup, $root.google.cloud.filestore.v1.GetBackupRequest, $root.google.cloud.filestore.v1.Backup, request, callback);
+ }, "name", { value: "GetBackup" });
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|createBackup}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef CreateBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateBackup.
+ * @function createBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.ICreateBackupRequest} request CreateBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.CreateBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.createBackup = function createBackup(request, callback) {
+ return this.rpcCall(createBackup, $root.google.cloud.filestore.v1.CreateBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateBackup" });
+
+ /**
+ * Calls CreateBackup.
+ * @function createBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.ICreateBackupRequest} request CreateBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|deleteBackup}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef DeleteBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.deleteBackup = function deleteBackup(request, callback) {
+ return this.rpcCall(deleteBackup, $root.google.cloud.filestore.v1.DeleteBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteBackup" });
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1.CloudFilestoreManager|updateBackup}.
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @typedef UpdateBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateBackup.
+ * @function updateBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IUpdateBackupRequest} request UpdateBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.updateBackup = function updateBackup(request, callback) {
+ return this.rpcCall(updateBackup, $root.google.cloud.filestore.v1.UpdateBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateBackup" });
+
+ /**
+ * Calls UpdateBackup.
+ * @function updateBackup
+ * @memberof google.cloud.filestore.v1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1.IUpdateBackupRequest} request UpdateBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return CloudFilestoreManager;
+ })();
+
+ v1.NetworkConfig = (function() {
+
+ /**
+ * Properties of a NetworkConfig.
+ * @memberof google.cloud.filestore.v1
+ * @interface INetworkConfig
+ * @property {string|null} [network] NetworkConfig network
+ * @property {Array.|null} [modes] NetworkConfig modes
+ * @property {string|null} [reservedIpRange] NetworkConfig reservedIpRange
+ * @property {Array.|null} [ipAddresses] NetworkConfig ipAddresses
+ */
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a NetworkConfig.
+ * @implements INetworkConfig
+ * @constructor
+ * @param {google.cloud.filestore.v1.INetworkConfig=} [properties] Properties to set
+ */
+ function NetworkConfig(properties) {
+ this.modes = [];
+ this.ipAddresses = [];
+ 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]];
+ }
+
+ /**
+ * NetworkConfig network.
+ * @member {string} network
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.network = "";
+
+ /**
+ * NetworkConfig modes.
+ * @member {Array.} modes
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.modes = $util.emptyArray;
+
+ /**
+ * NetworkConfig reservedIpRange.
+ * @member {string} reservedIpRange
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.reservedIpRange = "";
+
+ /**
+ * NetworkConfig ipAddresses.
+ * @member {Array.} ipAddresses
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.ipAddresses = $util.emptyArray;
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1.INetworkConfig=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.NetworkConfig} NetworkConfig instance
+ */
+ NetworkConfig.create = function create(properties) {
+ return new NetworkConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.filestore.v1.NetworkConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.network != null && Object.hasOwnProperty.call(message, "network"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.network);
+ if (message.modes != null && message.modes.length) {
+ writer.uint32(/* id 3, wireType 2 =*/26).fork();
+ for (var i = 0; i < message.modes.length; ++i)
+ writer.int32(message.modes[i]);
+ writer.ldelim();
+ }
+ if (message.reservedIpRange != null && Object.hasOwnProperty.call(message, "reservedIpRange"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.reservedIpRange);
+ if (message.ipAddresses != null && message.ipAddresses.length)
+ for (var i = 0; i < message.ipAddresses.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.ipAddresses[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.NetworkConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.NetworkConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.network = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.modes && message.modes.length))
+ message.modes = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.modes.push(reader.int32());
+ } else
+ message.modes.push(reader.int32());
+ break;
+ }
+ case 4: {
+ message.reservedIpRange = reader.string();
+ break;
+ }
+ case 5: {
+ if (!(message.ipAddresses && message.ipAddresses.length))
+ message.ipAddresses = [];
+ message.ipAddresses.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NetworkConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.network != null && message.hasOwnProperty("network"))
+ if (!$util.isString(message.network))
+ return "network: string expected";
+ if (message.modes != null && message.hasOwnProperty("modes")) {
+ if (!Array.isArray(message.modes))
+ return "modes: array expected";
+ for (var i = 0; i < message.modes.length; ++i)
+ switch (message.modes[i]) {
+ default:
+ return "modes: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ if (message.reservedIpRange != null && message.hasOwnProperty("reservedIpRange"))
+ if (!$util.isString(message.reservedIpRange))
+ return "reservedIpRange: string expected";
+ if (message.ipAddresses != null && message.hasOwnProperty("ipAddresses")) {
+ if (!Array.isArray(message.ipAddresses))
+ return "ipAddresses: array expected";
+ for (var i = 0; i < message.ipAddresses.length; ++i)
+ if (!$util.isString(message.ipAddresses[i]))
+ return "ipAddresses: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.NetworkConfig} NetworkConfig
+ */
+ NetworkConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.NetworkConfig)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.NetworkConfig();
+ if (object.network != null)
+ message.network = String(object.network);
+ if (object.modes) {
+ if (!Array.isArray(object.modes))
+ throw TypeError(".google.cloud.filestore.v1.NetworkConfig.modes: array expected");
+ message.modes = [];
+ for (var i = 0; i < object.modes.length; ++i)
+ switch (object.modes[i]) {
+ default:
+ if (typeof object.modes[i] === "number") {
+ message.modes[i] = object.modes[i];
+ break;
+ }
+ case "ADDRESS_MODE_UNSPECIFIED":
+ case 0:
+ message.modes[i] = 0;
+ break;
+ case "MODE_IPV4":
+ case 1:
+ message.modes[i] = 1;
+ break;
+ }
+ }
+ if (object.reservedIpRange != null)
+ message.reservedIpRange = String(object.reservedIpRange);
+ if (object.ipAddresses) {
+ if (!Array.isArray(object.ipAddresses))
+ throw TypeError(".google.cloud.filestore.v1.NetworkConfig.ipAddresses: array expected");
+ message.ipAddresses = [];
+ for (var i = 0; i < object.ipAddresses.length; ++i)
+ message.ipAddresses[i] = String(object.ipAddresses[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1.NetworkConfig} message NetworkConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NetworkConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.modes = [];
+ object.ipAddresses = [];
+ }
+ if (options.defaults) {
+ object.network = "";
+ object.reservedIpRange = "";
+ }
+ if (message.network != null && message.hasOwnProperty("network"))
+ object.network = message.network;
+ if (message.modes && message.modes.length) {
+ object.modes = [];
+ for (var j = 0; j < message.modes.length; ++j)
+ object.modes[j] = options.enums === String ? $root.google.cloud.filestore.v1.NetworkConfig.AddressMode[message.modes[j]] === undefined ? message.modes[j] : $root.google.cloud.filestore.v1.NetworkConfig.AddressMode[message.modes[j]] : message.modes[j];
+ }
+ if (message.reservedIpRange != null && message.hasOwnProperty("reservedIpRange"))
+ object.reservedIpRange = message.reservedIpRange;
+ if (message.ipAddresses && message.ipAddresses.length) {
+ object.ipAddresses = [];
+ for (var j = 0; j < message.ipAddresses.length; ++j)
+ object.ipAddresses[j] = message.ipAddresses[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NetworkConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.NetworkConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.NetworkConfig";
+ };
+
+ /**
+ * AddressMode enum.
+ * @name google.cloud.filestore.v1.NetworkConfig.AddressMode
+ * @enum {number}
+ * @property {number} ADDRESS_MODE_UNSPECIFIED=0 ADDRESS_MODE_UNSPECIFIED value
+ * @property {number} MODE_IPV4=1 MODE_IPV4 value
+ */
+ NetworkConfig.AddressMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ADDRESS_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "MODE_IPV4"] = 1;
+ return values;
+ })();
+
+ return NetworkConfig;
+ })();
+
+ v1.FileShareConfig = (function() {
+
+ /**
+ * Properties of a FileShareConfig.
+ * @memberof google.cloud.filestore.v1
+ * @interface IFileShareConfig
+ * @property {string|null} [name] FileShareConfig name
+ * @property {number|Long|null} [capacityGb] FileShareConfig capacityGb
+ * @property {string|null} [sourceBackup] FileShareConfig sourceBackup
+ * @property {Array.|null} [nfsExportOptions] FileShareConfig nfsExportOptions
+ */
+
+ /**
+ * Constructs a new FileShareConfig.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a FileShareConfig.
+ * @implements IFileShareConfig
+ * @constructor
+ * @param {google.cloud.filestore.v1.IFileShareConfig=} [properties] Properties to set
+ */
+ function FileShareConfig(properties) {
+ this.nfsExportOptions = [];
+ 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]];
+ }
+
+ /**
+ * FileShareConfig name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.name = "";
+
+ /**
+ * FileShareConfig capacityGb.
+ * @member {number|Long} capacityGb
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.capacityGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * FileShareConfig sourceBackup.
+ * @member {string|null|undefined} sourceBackup
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.sourceBackup = null;
+
+ /**
+ * FileShareConfig nfsExportOptions.
+ * @member {Array.} nfsExportOptions
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.nfsExportOptions = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * FileShareConfig source.
+ * @member {"sourceBackup"|undefined} source
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @instance
+ */
+ Object.defineProperty(FileShareConfig.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["sourceBackup"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new FileShareConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1.IFileShareConfig=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.FileShareConfig} FileShareConfig instance
+ */
+ FileShareConfig.create = function create(properties) {
+ return new FileShareConfig(properties);
+ };
+
+ /**
+ * Encodes the specified FileShareConfig message. Does not implicitly {@link google.cloud.filestore.v1.FileShareConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1.IFileShareConfig} message FileShareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileShareConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.capacityGb != null && Object.hasOwnProperty.call(message, "capacityGb"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.capacityGb);
+ if (message.nfsExportOptions != null && message.nfsExportOptions.length)
+ for (var i = 0; i < message.nfsExportOptions.length; ++i)
+ $root.google.cloud.filestore.v1.NfsExportOptions.encode(message.nfsExportOptions[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.sourceBackup);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileShareConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.FileShareConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1.IFileShareConfig} message FileShareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileShareConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.FileShareConfig} FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileShareConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.FileShareConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.capacityGb = reader.int64();
+ break;
+ }
+ case 8: {
+ message.sourceBackup = reader.string();
+ break;
+ }
+ case 7: {
+ if (!(message.nfsExportOptions && message.nfsExportOptions.length))
+ message.nfsExportOptions = [];
+ message.nfsExportOptions.push($root.google.cloud.filestore.v1.NfsExportOptions.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.FileShareConfig} FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileShareConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileShareConfig message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileShareConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (!$util.isInteger(message.capacityGb) && !(message.capacityGb && $util.isInteger(message.capacityGb.low) && $util.isInteger(message.capacityGb.high)))
+ return "capacityGb: integer|Long expected";
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ properties.source = 1;
+ if (!$util.isString(message.sourceBackup))
+ return "sourceBackup: string expected";
+ }
+ if (message.nfsExportOptions != null && message.hasOwnProperty("nfsExportOptions")) {
+ if (!Array.isArray(message.nfsExportOptions))
+ return "nfsExportOptions: array expected";
+ for (var i = 0; i < message.nfsExportOptions.length; ++i) {
+ var error = $root.google.cloud.filestore.v1.NfsExportOptions.verify(message.nfsExportOptions[i]);
+ if (error)
+ return "nfsExportOptions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FileShareConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.FileShareConfig} FileShareConfig
+ */
+ FileShareConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.FileShareConfig)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.FileShareConfig();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.capacityGb != null)
+ if ($util.Long)
+ (message.capacityGb = $util.Long.fromValue(object.capacityGb)).unsigned = false;
+ else if (typeof object.capacityGb === "string")
+ message.capacityGb = parseInt(object.capacityGb, 10);
+ else if (typeof object.capacityGb === "number")
+ message.capacityGb = object.capacityGb;
+ else if (typeof object.capacityGb === "object")
+ message.capacityGb = new $util.LongBits(object.capacityGb.low >>> 0, object.capacityGb.high >>> 0).toNumber();
+ if (object.sourceBackup != null)
+ message.sourceBackup = String(object.sourceBackup);
+ if (object.nfsExportOptions) {
+ if (!Array.isArray(object.nfsExportOptions))
+ throw TypeError(".google.cloud.filestore.v1.FileShareConfig.nfsExportOptions: array expected");
+ message.nfsExportOptions = [];
+ for (var i = 0; i < object.nfsExportOptions.length; ++i) {
+ if (typeof object.nfsExportOptions[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1.FileShareConfig.nfsExportOptions: object expected");
+ message.nfsExportOptions[i] = $root.google.cloud.filestore.v1.NfsExportOptions.fromObject(object.nfsExportOptions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FileShareConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1.FileShareConfig} message FileShareConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FileShareConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.nfsExportOptions = [];
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.capacityGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.capacityGb = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (typeof message.capacityGb === "number")
+ object.capacityGb = options.longs === String ? String(message.capacityGb) : message.capacityGb;
+ else
+ object.capacityGb = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGb) : options.longs === Number ? new $util.LongBits(message.capacityGb.low >>> 0, message.capacityGb.high >>> 0).toNumber() : message.capacityGb;
+ if (message.nfsExportOptions && message.nfsExportOptions.length) {
+ object.nfsExportOptions = [];
+ for (var j = 0; j < message.nfsExportOptions.length; ++j)
+ object.nfsExportOptions[j] = $root.google.cloud.filestore.v1.NfsExportOptions.toObject(message.nfsExportOptions[j], options);
+ }
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ object.sourceBackup = message.sourceBackup;
+ if (options.oneofs)
+ object.source = "sourceBackup";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FileShareConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FileShareConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FileShareConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.FileShareConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FileShareConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.FileShareConfig";
+ };
+
+ return FileShareConfig;
+ })();
+
+ v1.NfsExportOptions = (function() {
+
+ /**
+ * Properties of a NfsExportOptions.
+ * @memberof google.cloud.filestore.v1
+ * @interface INfsExportOptions
+ * @property {Array.|null} [ipRanges] NfsExportOptions ipRanges
+ * @property {google.cloud.filestore.v1.NfsExportOptions.AccessMode|null} [accessMode] NfsExportOptions accessMode
+ * @property {google.cloud.filestore.v1.NfsExportOptions.SquashMode|null} [squashMode] NfsExportOptions squashMode
+ * @property {number|Long|null} [anonUid] NfsExportOptions anonUid
+ * @property {number|Long|null} [anonGid] NfsExportOptions anonGid
+ */
+
+ /**
+ * Constructs a new NfsExportOptions.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a NfsExportOptions.
+ * @implements INfsExportOptions
+ * @constructor
+ * @param {google.cloud.filestore.v1.INfsExportOptions=} [properties] Properties to set
+ */
+ function NfsExportOptions(properties) {
+ this.ipRanges = [];
+ 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]];
+ }
+
+ /**
+ * NfsExportOptions ipRanges.
+ * @member {Array.} ipRanges
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.ipRanges = $util.emptyArray;
+
+ /**
+ * NfsExportOptions accessMode.
+ * @member {google.cloud.filestore.v1.NfsExportOptions.AccessMode} accessMode
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.accessMode = 0;
+
+ /**
+ * NfsExportOptions squashMode.
+ * @member {google.cloud.filestore.v1.NfsExportOptions.SquashMode} squashMode
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.squashMode = 0;
+
+ /**
+ * NfsExportOptions anonUid.
+ * @member {number|Long} anonUid
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.anonUid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * NfsExportOptions anonGid.
+ * @member {number|Long} anonGid
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.anonGid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new NfsExportOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1.INfsExportOptions=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.NfsExportOptions} NfsExportOptions instance
+ */
+ NfsExportOptions.create = function create(properties) {
+ return new NfsExportOptions(properties);
+ };
+
+ /**
+ * Encodes the specified NfsExportOptions message. Does not implicitly {@link google.cloud.filestore.v1.NfsExportOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1.INfsExportOptions} message NfsExportOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NfsExportOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.ipRanges != null && message.ipRanges.length)
+ for (var i = 0; i < message.ipRanges.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.ipRanges[i]);
+ if (message.accessMode != null && Object.hasOwnProperty.call(message, "accessMode"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.accessMode);
+ if (message.squashMode != null && Object.hasOwnProperty.call(message, "squashMode"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.squashMode);
+ if (message.anonUid != null && Object.hasOwnProperty.call(message, "anonUid"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.anonUid);
+ if (message.anonGid != null && Object.hasOwnProperty.call(message, "anonGid"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.anonGid);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NfsExportOptions message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.NfsExportOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1.INfsExportOptions} message NfsExportOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NfsExportOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.NfsExportOptions} NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NfsExportOptions.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.NfsExportOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.ipRanges && message.ipRanges.length))
+ message.ipRanges = [];
+ message.ipRanges.push(reader.string());
+ break;
+ }
+ case 2: {
+ message.accessMode = reader.int32();
+ break;
+ }
+ case 3: {
+ message.squashMode = reader.int32();
+ break;
+ }
+ case 4: {
+ message.anonUid = reader.int64();
+ break;
+ }
+ case 5: {
+ message.anonGid = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.NfsExportOptions} NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NfsExportOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NfsExportOptions message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NfsExportOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.ipRanges != null && message.hasOwnProperty("ipRanges")) {
+ if (!Array.isArray(message.ipRanges))
+ return "ipRanges: array expected";
+ for (var i = 0; i < message.ipRanges.length; ++i)
+ if (!$util.isString(message.ipRanges[i]))
+ return "ipRanges: string[] expected";
+ }
+ if (message.accessMode != null && message.hasOwnProperty("accessMode"))
+ switch (message.accessMode) {
+ default:
+ return "accessMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.squashMode != null && message.hasOwnProperty("squashMode"))
+ switch (message.squashMode) {
+ default:
+ return "squashMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.anonUid != null && message.hasOwnProperty("anonUid"))
+ if (!$util.isInteger(message.anonUid) && !(message.anonUid && $util.isInteger(message.anonUid.low) && $util.isInteger(message.anonUid.high)))
+ return "anonUid: integer|Long expected";
+ if (message.anonGid != null && message.hasOwnProperty("anonGid"))
+ if (!$util.isInteger(message.anonGid) && !(message.anonGid && $util.isInteger(message.anonGid.low) && $util.isInteger(message.anonGid.high)))
+ return "anonGid: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a NfsExportOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.NfsExportOptions} NfsExportOptions
+ */
+ NfsExportOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.NfsExportOptions)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.NfsExportOptions();
+ if (object.ipRanges) {
+ if (!Array.isArray(object.ipRanges))
+ throw TypeError(".google.cloud.filestore.v1.NfsExportOptions.ipRanges: array expected");
+ message.ipRanges = [];
+ for (var i = 0; i < object.ipRanges.length; ++i)
+ message.ipRanges[i] = String(object.ipRanges[i]);
+ }
+ switch (object.accessMode) {
+ default:
+ if (typeof object.accessMode === "number") {
+ message.accessMode = object.accessMode;
+ break;
+ }
+ break;
+ case "ACCESS_MODE_UNSPECIFIED":
+ case 0:
+ message.accessMode = 0;
+ break;
+ case "READ_ONLY":
+ case 1:
+ message.accessMode = 1;
+ break;
+ case "READ_WRITE":
+ case 2:
+ message.accessMode = 2;
+ break;
+ }
+ switch (object.squashMode) {
+ default:
+ if (typeof object.squashMode === "number") {
+ message.squashMode = object.squashMode;
+ break;
+ }
+ break;
+ case "SQUASH_MODE_UNSPECIFIED":
+ case 0:
+ message.squashMode = 0;
+ break;
+ case "NO_ROOT_SQUASH":
+ case 1:
+ message.squashMode = 1;
+ break;
+ case "ROOT_SQUASH":
+ case 2:
+ message.squashMode = 2;
+ break;
+ }
+ if (object.anonUid != null)
+ if ($util.Long)
+ (message.anonUid = $util.Long.fromValue(object.anonUid)).unsigned = false;
+ else if (typeof object.anonUid === "string")
+ message.anonUid = parseInt(object.anonUid, 10);
+ else if (typeof object.anonUid === "number")
+ message.anonUid = object.anonUid;
+ else if (typeof object.anonUid === "object")
+ message.anonUid = new $util.LongBits(object.anonUid.low >>> 0, object.anonUid.high >>> 0).toNumber();
+ if (object.anonGid != null)
+ if ($util.Long)
+ (message.anonGid = $util.Long.fromValue(object.anonGid)).unsigned = false;
+ else if (typeof object.anonGid === "string")
+ message.anonGid = parseInt(object.anonGid, 10);
+ else if (typeof object.anonGid === "number")
+ message.anonGid = object.anonGid;
+ else if (typeof object.anonGid === "object")
+ message.anonGid = new $util.LongBits(object.anonGid.low >>> 0, object.anonGid.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NfsExportOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1.NfsExportOptions} message NfsExportOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NfsExportOptions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.ipRanges = [];
+ if (options.defaults) {
+ object.accessMode = options.enums === String ? "ACCESS_MODE_UNSPECIFIED" : 0;
+ object.squashMode = options.enums === String ? "SQUASH_MODE_UNSPECIFIED" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.anonUid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.anonUid = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.anonGid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.anonGid = options.longs === String ? "0" : 0;
+ }
+ if (message.ipRanges && message.ipRanges.length) {
+ object.ipRanges = [];
+ for (var j = 0; j < message.ipRanges.length; ++j)
+ object.ipRanges[j] = message.ipRanges[j];
+ }
+ if (message.accessMode != null && message.hasOwnProperty("accessMode"))
+ object.accessMode = options.enums === String ? $root.google.cloud.filestore.v1.NfsExportOptions.AccessMode[message.accessMode] === undefined ? message.accessMode : $root.google.cloud.filestore.v1.NfsExportOptions.AccessMode[message.accessMode] : message.accessMode;
+ if (message.squashMode != null && message.hasOwnProperty("squashMode"))
+ object.squashMode = options.enums === String ? $root.google.cloud.filestore.v1.NfsExportOptions.SquashMode[message.squashMode] === undefined ? message.squashMode : $root.google.cloud.filestore.v1.NfsExportOptions.SquashMode[message.squashMode] : message.squashMode;
+ if (message.anonUid != null && message.hasOwnProperty("anonUid"))
+ if (typeof message.anonUid === "number")
+ object.anonUid = options.longs === String ? String(message.anonUid) : message.anonUid;
+ else
+ object.anonUid = options.longs === String ? $util.Long.prototype.toString.call(message.anonUid) : options.longs === Number ? new $util.LongBits(message.anonUid.low >>> 0, message.anonUid.high >>> 0).toNumber() : message.anonUid;
+ if (message.anonGid != null && message.hasOwnProperty("anonGid"))
+ if (typeof message.anonGid === "number")
+ object.anonGid = options.longs === String ? String(message.anonGid) : message.anonGid;
+ else
+ object.anonGid = options.longs === String ? $util.Long.prototype.toString.call(message.anonGid) : options.longs === Number ? new $util.LongBits(message.anonGid.low >>> 0, message.anonGid.high >>> 0).toNumber() : message.anonGid;
+ return object;
+ };
+
+ /**
+ * Converts this NfsExportOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NfsExportOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NfsExportOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.NfsExportOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NfsExportOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.NfsExportOptions";
+ };
+
+ /**
+ * AccessMode enum.
+ * @name google.cloud.filestore.v1.NfsExportOptions.AccessMode
+ * @enum {number}
+ * @property {number} ACCESS_MODE_UNSPECIFIED=0 ACCESS_MODE_UNSPECIFIED value
+ * @property {number} READ_ONLY=1 READ_ONLY value
+ * @property {number} READ_WRITE=2 READ_WRITE value
+ */
+ NfsExportOptions.AccessMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ACCESS_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "READ_ONLY"] = 1;
+ values[valuesById[2] = "READ_WRITE"] = 2;
+ return values;
+ })();
+
+ /**
+ * SquashMode enum.
+ * @name google.cloud.filestore.v1.NfsExportOptions.SquashMode
+ * @enum {number}
+ * @property {number} SQUASH_MODE_UNSPECIFIED=0 SQUASH_MODE_UNSPECIFIED value
+ * @property {number} NO_ROOT_SQUASH=1 NO_ROOT_SQUASH value
+ * @property {number} ROOT_SQUASH=2 ROOT_SQUASH value
+ */
+ NfsExportOptions.SquashMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SQUASH_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NO_ROOT_SQUASH"] = 1;
+ values[valuesById[2] = "ROOT_SQUASH"] = 2;
+ return values;
+ })();
+
+ return NfsExportOptions;
+ })();
+
+ v1.Instance = (function() {
+
+ /**
+ * Properties of an Instance.
+ * @memberof google.cloud.filestore.v1
+ * @interface IInstance
+ * @property {string|null} [name] Instance name
+ * @property {string|null} [description] Instance description
+ * @property {google.cloud.filestore.v1.Instance.State|null} [state] Instance state
+ * @property {string|null} [statusMessage] Instance statusMessage
+ * @property {google.protobuf.ITimestamp|null} [createTime] Instance createTime
+ * @property {google.cloud.filestore.v1.Instance.Tier|null} [tier] Instance tier
+ * @property {Object.|null} [labels] Instance labels
+ * @property {Array.|null} [fileShares] Instance fileShares
+ * @property {Array.|null} [networks] Instance networks
+ * @property {string|null} [etag] Instance etag
+ * @property {google.protobuf.IBoolValue|null} [satisfiesPzs] Instance satisfiesPzs
+ */
+
+ /**
+ * Constructs a new Instance.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents an Instance.
+ * @implements IInstance
+ * @constructor
+ * @param {google.cloud.filestore.v1.IInstance=} [properties] Properties to set
+ */
+ function Instance(properties) {
+ this.labels = {};
+ this.fileShares = [];
+ this.networks = [];
+ 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]];
+ }
+
+ /**
+ * Instance name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.name = "";
+
+ /**
+ * Instance description.
+ * @member {string} description
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.description = "";
+
+ /**
+ * Instance state.
+ * @member {google.cloud.filestore.v1.Instance.State} state
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.state = 0;
+
+ /**
+ * Instance statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.statusMessage = "";
+
+ /**
+ * Instance createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.createTime = null;
+
+ /**
+ * Instance tier.
+ * @member {google.cloud.filestore.v1.Instance.Tier} tier
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.tier = 0;
+
+ /**
+ * Instance labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.labels = $util.emptyObject;
+
+ /**
+ * Instance fileShares.
+ * @member {Array.} fileShares
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.fileShares = $util.emptyArray;
+
+ /**
+ * Instance networks.
+ * @member {Array.} networks
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.networks = $util.emptyArray;
+
+ /**
+ * Instance etag.
+ * @member {string} etag
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.etag = "";
+
+ /**
+ * Instance satisfiesPzs.
+ * @member {google.protobuf.IBoolValue|null|undefined} satisfiesPzs
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ */
+ Instance.prototype.satisfiesPzs = null;
+
+ /**
+ * Creates a new Instance instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1.IInstance=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.Instance} Instance instance
+ */
+ Instance.create = function create(properties) {
+ return new Instance(properties);
+ };
+
+ /**
+ * Encodes the specified Instance message. Does not implicitly {@link google.cloud.filestore.v1.Instance.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1.IInstance} message Instance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Instance.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.statusMessage);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.tier != null && Object.hasOwnProperty.call(message, "tier"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.tier);
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.fileShares != null && message.fileShares.length)
+ for (var i = 0; i < message.fileShares.length; ++i)
+ $root.google.cloud.filestore.v1.FileShareConfig.encode(message.fileShares[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.networks != null && message.networks.length)
+ for (var i = 0; i < message.networks.length; ++i)
+ $root.google.cloud.filestore.v1.NetworkConfig.encode(message.networks[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.etag);
+ if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs"))
+ $root.google.protobuf.BoolValue.encode(message.satisfiesPzs, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Instance message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.Instance.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1.IInstance} message Instance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Instance.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.Instance} Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Instance.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.Instance(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 6: {
+ message.statusMessage = reader.string();
+ break;
+ }
+ case 7: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.tier = reader.int32();
+ break;
+ }
+ case 9: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 10: {
+ if (!(message.fileShares && message.fileShares.length))
+ message.fileShares = [];
+ message.fileShares.push($root.google.cloud.filestore.v1.FileShareConfig.decode(reader, reader.uint32()));
+ break;
+ }
+ case 11: {
+ if (!(message.networks && message.networks.length))
+ message.networks = [];
+ message.networks.push($root.google.cloud.filestore.v1.NetworkConfig.decode(reader, reader.uint32()));
+ break;
+ }
+ case 12: {
+ message.etag = reader.string();
+ break;
+ }
+ case 13: {
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.Instance} Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Instance.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Instance message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Instance.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.tier != null && message.hasOwnProperty("tier"))
+ switch (message.tier) {
+ default:
+ return "tier: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.fileShares != null && message.hasOwnProperty("fileShares")) {
+ if (!Array.isArray(message.fileShares))
+ return "fileShares: array expected";
+ for (var i = 0; i < message.fileShares.length; ++i) {
+ var error = $root.google.cloud.filestore.v1.FileShareConfig.verify(message.fileShares[i]);
+ if (error)
+ return "fileShares." + error;
+ }
+ }
+ if (message.networks != null && message.hasOwnProperty("networks")) {
+ if (!Array.isArray(message.networks))
+ return "networks: array expected";
+ for (var i = 0; i < message.networks.length; ++i) {
+ var error = $root.google.cloud.filestore.v1.NetworkConfig.verify(message.networks[i]);
+ if (error)
+ return "networks." + error;
+ }
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.satisfiesPzs);
+ if (error)
+ return "satisfiesPzs." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Instance message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.Instance} Instance
+ */
+ Instance.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.Instance)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.Instance();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "READY":
+ case 2:
+ message.state = 2;
+ break;
+ case "REPAIRING":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ case "ERROR":
+ case 6:
+ message.state = 6;
+ break;
+ case "RESTORING":
+ case 7:
+ message.state = 7;
+ break;
+ }
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Instance.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ switch (object.tier) {
+ default:
+ if (typeof object.tier === "number") {
+ message.tier = object.tier;
+ break;
+ }
+ break;
+ case "TIER_UNSPECIFIED":
+ case 0:
+ message.tier = 0;
+ break;
+ case "STANDARD":
+ case 1:
+ message.tier = 1;
+ break;
+ case "PREMIUM":
+ case 2:
+ message.tier = 2;
+ break;
+ case "BASIC_HDD":
+ case 3:
+ message.tier = 3;
+ break;
+ case "BASIC_SSD":
+ case 4:
+ message.tier = 4;
+ break;
+ case "HIGH_SCALE_SSD":
+ case 5:
+ message.tier = 5;
+ break;
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Instance.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.fileShares) {
+ if (!Array.isArray(object.fileShares))
+ throw TypeError(".google.cloud.filestore.v1.Instance.fileShares: array expected");
+ message.fileShares = [];
+ for (var i = 0; i < object.fileShares.length; ++i) {
+ if (typeof object.fileShares[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Instance.fileShares: object expected");
+ message.fileShares[i] = $root.google.cloud.filestore.v1.FileShareConfig.fromObject(object.fileShares[i]);
+ }
+ }
+ if (object.networks) {
+ if (!Array.isArray(object.networks))
+ throw TypeError(".google.cloud.filestore.v1.Instance.networks: array expected");
+ message.networks = [];
+ for (var i = 0; i < object.networks.length; ++i) {
+ if (typeof object.networks[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Instance.networks: object expected");
+ message.networks[i] = $root.google.cloud.filestore.v1.NetworkConfig.fromObject(object.networks[i]);
+ }
+ }
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ if (object.satisfiesPzs != null) {
+ if (typeof object.satisfiesPzs !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Instance.satisfiesPzs: object expected");
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.fromObject(object.satisfiesPzs);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Instance message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1.Instance} message Instance
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Instance.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.fileShares = [];
+ object.networks = [];
+ }
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.statusMessage = "";
+ object.createTime = null;
+ object.tier = options.enums === String ? "TIER_UNSPECIFIED" : 0;
+ object.etag = "";
+ object.satisfiesPzs = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.filestore.v1.Instance.State[message.state] === undefined ? message.state : $root.google.cloud.filestore.v1.Instance.State[message.state] : message.state;
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.tier != null && message.hasOwnProperty("tier"))
+ object.tier = options.enums === String ? $root.google.cloud.filestore.v1.Instance.Tier[message.tier] === undefined ? message.tier : $root.google.cloud.filestore.v1.Instance.Tier[message.tier] : message.tier;
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.fileShares && message.fileShares.length) {
+ object.fileShares = [];
+ for (var j = 0; j < message.fileShares.length; ++j)
+ object.fileShares[j] = $root.google.cloud.filestore.v1.FileShareConfig.toObject(message.fileShares[j], options);
+ }
+ if (message.networks && message.networks.length) {
+ object.networks = [];
+ for (var j = 0; j < message.networks.length; ++j)
+ object.networks[j] = $root.google.cloud.filestore.v1.NetworkConfig.toObject(message.networks[j], options);
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs"))
+ object.satisfiesPzs = $root.google.protobuf.BoolValue.toObject(message.satisfiesPzs, options);
+ return object;
+ };
+
+ /**
+ * Converts this Instance to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.Instance
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Instance.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Instance
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.Instance
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Instance.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.Instance";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.filestore.v1.Instance.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} READY=2 READY value
+ * @property {number} REPAIRING=3 REPAIRING value
+ * @property {number} DELETING=4 DELETING value
+ * @property {number} ERROR=6 ERROR value
+ * @property {number} RESTORING=7 RESTORING value
+ */
+ Instance.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "READY"] = 2;
+ values[valuesById[3] = "REPAIRING"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ values[valuesById[6] = "ERROR"] = 6;
+ values[valuesById[7] = "RESTORING"] = 7;
+ return values;
+ })();
+
+ /**
+ * Tier enum.
+ * @name google.cloud.filestore.v1.Instance.Tier
+ * @enum {number}
+ * @property {number} TIER_UNSPECIFIED=0 TIER_UNSPECIFIED value
+ * @property {number} STANDARD=1 STANDARD value
+ * @property {number} PREMIUM=2 PREMIUM value
+ * @property {number} BASIC_HDD=3 BASIC_HDD value
+ * @property {number} BASIC_SSD=4 BASIC_SSD value
+ * @property {number} HIGH_SCALE_SSD=5 HIGH_SCALE_SSD value
+ */
+ Instance.Tier = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TIER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "STANDARD"] = 1;
+ values[valuesById[2] = "PREMIUM"] = 2;
+ values[valuesById[3] = "BASIC_HDD"] = 3;
+ values[valuesById[4] = "BASIC_SSD"] = 4;
+ values[valuesById[5] = "HIGH_SCALE_SSD"] = 5;
+ return values;
+ })();
+
+ return Instance;
+ })();
+
+ v1.CreateInstanceRequest = (function() {
+
+ /**
+ * Properties of a CreateInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface ICreateInstanceRequest
+ * @property {string|null} [parent] CreateInstanceRequest parent
+ * @property {string|null} [instanceId] CreateInstanceRequest instanceId
+ * @property {google.cloud.filestore.v1.IInstance|null} [instance] CreateInstanceRequest instance
+ */
+
+ /**
+ * Constructs a new CreateInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a CreateInstanceRequest.
+ * @implements ICreateInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.ICreateInstanceRequest=} [properties] Properties to set
+ */
+ function CreateInstanceRequest(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]];
+ }
+
+ /**
+ * CreateInstanceRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.parent = "";
+
+ /**
+ * CreateInstanceRequest instanceId.
+ * @member {string} instanceId
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.instanceId = "";
+
+ /**
+ * CreateInstanceRequest instance.
+ * @member {google.cloud.filestore.v1.IInstance|null|undefined} instance
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.instance = null;
+
+ /**
+ * Creates a new CreateInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ICreateInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.CreateInstanceRequest} CreateInstanceRequest instance
+ */
+ CreateInstanceRequest.create = function create(properties) {
+ return new CreateInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.CreateInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ICreateInstanceRequest} message CreateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.instanceId != null && Object.hasOwnProperty.call(message, "instanceId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceId);
+ if (message.instance != null && Object.hasOwnProperty.call(message, "instance"))
+ $root.google.cloud.filestore.v1.Instance.encode(message.instance, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.CreateInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ICreateInstanceRequest} message CreateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.CreateInstanceRequest} CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.CreateInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.instanceId = reader.string();
+ break;
+ }
+ case 3: {
+ message.instance = $root.google.cloud.filestore.v1.Instance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.CreateInstanceRequest} CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.instanceId != null && message.hasOwnProperty("instanceId"))
+ if (!$util.isString(message.instanceId))
+ return "instanceId: string expected";
+ if (message.instance != null && message.hasOwnProperty("instance")) {
+ var error = $root.google.cloud.filestore.v1.Instance.verify(message.instance);
+ if (error)
+ return "instance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.CreateInstanceRequest} CreateInstanceRequest
+ */
+ CreateInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.CreateInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.CreateInstanceRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.instanceId != null)
+ message.instanceId = String(object.instanceId);
+ if (object.instance != null) {
+ if (typeof object.instance !== "object")
+ throw TypeError(".google.cloud.filestore.v1.CreateInstanceRequest.instance: object expected");
+ message.instance = $root.google.cloud.filestore.v1.Instance.fromObject(object.instance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.CreateInstanceRequest} message CreateInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.instanceId = "";
+ object.instance = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.instanceId != null && message.hasOwnProperty("instanceId"))
+ object.instanceId = message.instanceId;
+ if (message.instance != null && message.hasOwnProperty("instance"))
+ object.instance = $root.google.cloud.filestore.v1.Instance.toObject(message.instance, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.CreateInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.CreateInstanceRequest";
+ };
+
+ return CreateInstanceRequest;
+ })();
+
+ v1.GetInstanceRequest = (function() {
+
+ /**
+ * Properties of a GetInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IGetInstanceRequest
+ * @property {string|null} [name] GetInstanceRequest name
+ */
+
+ /**
+ * Constructs a new GetInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a GetInstanceRequest.
+ * @implements IGetInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IGetInstanceRequest=} [properties] Properties to set
+ */
+ function GetInstanceRequest(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]];
+ }
+
+ /**
+ * GetInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @instance
+ */
+ GetInstanceRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IGetInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.GetInstanceRequest} GetInstanceRequest instance
+ */
+ GetInstanceRequest.create = function create(properties) {
+ return new GetInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.GetInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IGetInstanceRequest} message GetInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.GetInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IGetInstanceRequest} message GetInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.GetInstanceRequest} GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.GetInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.GetInstanceRequest} GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.GetInstanceRequest} GetInstanceRequest
+ */
+ GetInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.GetInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.GetInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.GetInstanceRequest} message GetInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.GetInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.GetInstanceRequest";
+ };
+
+ return GetInstanceRequest;
+ })();
+
+ v1.UpdateInstanceRequest = (function() {
+
+ /**
+ * Properties of an UpdateInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IUpdateInstanceRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateInstanceRequest updateMask
+ * @property {google.cloud.filestore.v1.IInstance|null} [instance] UpdateInstanceRequest instance
+ */
+
+ /**
+ * Constructs a new UpdateInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents an UpdateInstanceRequest.
+ * @implements IUpdateInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IUpdateInstanceRequest=} [properties] Properties to set
+ */
+ function UpdateInstanceRequest(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]];
+ }
+
+ /**
+ * UpdateInstanceRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @instance
+ */
+ UpdateInstanceRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateInstanceRequest instance.
+ * @member {google.cloud.filestore.v1.IInstance|null|undefined} instance
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @instance
+ */
+ UpdateInstanceRequest.prototype.instance = null;
+
+ /**
+ * Creates a new UpdateInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IUpdateInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.UpdateInstanceRequest} UpdateInstanceRequest instance
+ */
+ UpdateInstanceRequest.create = function create(properties) {
+ return new UpdateInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.UpdateInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.instance != null && Object.hasOwnProperty.call(message, "instance"))
+ $root.google.cloud.filestore.v1.Instance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.UpdateInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.UpdateInstanceRequest} UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.UpdateInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.instance = $root.google.cloud.filestore.v1.Instance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.UpdateInstanceRequest} UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.instance != null && message.hasOwnProperty("instance")) {
+ var error = $root.google.cloud.filestore.v1.Instance.verify(message.instance);
+ if (error)
+ return "instance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.UpdateInstanceRequest} UpdateInstanceRequest
+ */
+ UpdateInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.UpdateInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.UpdateInstanceRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.filestore.v1.UpdateInstanceRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.instance != null) {
+ if (typeof object.instance !== "object")
+ throw TypeError(".google.cloud.filestore.v1.UpdateInstanceRequest.instance: object expected");
+ message.instance = $root.google.cloud.filestore.v1.Instance.fromObject(object.instance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.UpdateInstanceRequest} message UpdateInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.instance = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.instance != null && message.hasOwnProperty("instance"))
+ object.instance = $root.google.cloud.filestore.v1.Instance.toObject(message.instance, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.UpdateInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.UpdateInstanceRequest";
+ };
+
+ return UpdateInstanceRequest;
+ })();
+
+ v1.RestoreInstanceRequest = (function() {
+
+ /**
+ * Properties of a RestoreInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IRestoreInstanceRequest
+ * @property {string|null} [name] RestoreInstanceRequest name
+ * @property {string|null} [fileShare] RestoreInstanceRequest fileShare
+ * @property {string|null} [sourceBackup] RestoreInstanceRequest sourceBackup
+ */
+
+ /**
+ * Constructs a new RestoreInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a RestoreInstanceRequest.
+ * @implements IRestoreInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IRestoreInstanceRequest=} [properties] Properties to set
+ */
+ function RestoreInstanceRequest(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]];
+ }
+
+ /**
+ * RestoreInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @instance
+ */
+ RestoreInstanceRequest.prototype.name = "";
+
+ /**
+ * RestoreInstanceRequest fileShare.
+ * @member {string} fileShare
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @instance
+ */
+ RestoreInstanceRequest.prototype.fileShare = "";
+
+ /**
+ * RestoreInstanceRequest sourceBackup.
+ * @member {string|null|undefined} sourceBackup
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @instance
+ */
+ RestoreInstanceRequest.prototype.sourceBackup = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * RestoreInstanceRequest source.
+ * @member {"sourceBackup"|undefined} source
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @instance
+ */
+ Object.defineProperty(RestoreInstanceRequest.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["sourceBackup"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new RestoreInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IRestoreInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.RestoreInstanceRequest} RestoreInstanceRequest instance
+ */
+ RestoreInstanceRequest.create = function create(properties) {
+ return new RestoreInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.RestoreInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IRestoreInstanceRequest} message RestoreInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestoreInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.fileShare != null && Object.hasOwnProperty.call(message, "fileShare"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileShare);
+ if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceBackup);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.RestoreInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IRestoreInstanceRequest} message RestoreInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestoreInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.RestoreInstanceRequest} RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestoreInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.RestoreInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.fileShare = reader.string();
+ break;
+ }
+ case 3: {
+ message.sourceBackup = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.RestoreInstanceRequest} RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestoreInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RestoreInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RestoreInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.fileShare != null && message.hasOwnProperty("fileShare"))
+ if (!$util.isString(message.fileShare))
+ return "fileShare: string expected";
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ properties.source = 1;
+ if (!$util.isString(message.sourceBackup))
+ return "sourceBackup: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RestoreInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.RestoreInstanceRequest} RestoreInstanceRequest
+ */
+ RestoreInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.RestoreInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.RestoreInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.fileShare != null)
+ message.fileShare = String(object.fileShare);
+ if (object.sourceBackup != null)
+ message.sourceBackup = String(object.sourceBackup);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RestoreInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.RestoreInstanceRequest} message RestoreInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RestoreInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.fileShare = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.fileShare != null && message.hasOwnProperty("fileShare"))
+ object.fileShare = message.fileShare;
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ object.sourceBackup = message.sourceBackup;
+ if (options.oneofs)
+ object.source = "sourceBackup";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this RestoreInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RestoreInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RestoreInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.RestoreInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RestoreInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.RestoreInstanceRequest";
+ };
+
+ return RestoreInstanceRequest;
+ })();
+
+ v1.DeleteInstanceRequest = (function() {
+
+ /**
+ * Properties of a DeleteInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IDeleteInstanceRequest
+ * @property {string|null} [name] DeleteInstanceRequest name
+ */
+
+ /**
+ * Constructs a new DeleteInstanceRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a DeleteInstanceRequest.
+ * @implements IDeleteInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IDeleteInstanceRequest=} [properties] Properties to set
+ */
+ function DeleteInstanceRequest(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]];
+ }
+
+ /**
+ * DeleteInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @instance
+ */
+ DeleteInstanceRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IDeleteInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.DeleteInstanceRequest} DeleteInstanceRequest instance
+ */
+ DeleteInstanceRequest.create = function create(properties) {
+ return new DeleteInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IDeleteInstanceRequest} message DeleteInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IDeleteInstanceRequest} message DeleteInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.DeleteInstanceRequest} DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.DeleteInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.DeleteInstanceRequest} DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.DeleteInstanceRequest} DeleteInstanceRequest
+ */
+ DeleteInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.DeleteInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.DeleteInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1.DeleteInstanceRequest} message DeleteInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.DeleteInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.DeleteInstanceRequest";
+ };
+
+ return DeleteInstanceRequest;
+ })();
+
+ v1.ListInstancesRequest = (function() {
+
+ /**
+ * Properties of a ListInstancesRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IListInstancesRequest
+ * @property {string|null} [parent] ListInstancesRequest parent
+ * @property {number|null} [pageSize] ListInstancesRequest pageSize
+ * @property {string|null} [pageToken] ListInstancesRequest pageToken
+ * @property {string|null} [orderBy] ListInstancesRequest orderBy
+ * @property {string|null} [filter] ListInstancesRequest filter
+ */
+
+ /**
+ * Constructs a new ListInstancesRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a ListInstancesRequest.
+ * @implements IListInstancesRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IListInstancesRequest=} [properties] Properties to set
+ */
+ function ListInstancesRequest(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]];
+ }
+
+ /**
+ * ListInstancesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.parent = "";
+
+ /**
+ * ListInstancesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListInstancesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.pageToken = "";
+
+ /**
+ * ListInstancesRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.orderBy = "";
+
+ /**
+ * ListInstancesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListInstancesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IListInstancesRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.ListInstancesRequest} ListInstancesRequest instance
+ */
+ ListInstancesRequest.create = function create(properties) {
+ return new ListInstancesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListInstancesRequest message. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IListInstancesRequest} message ListInstancesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IListInstancesRequest} message ListInstancesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.ListInstancesRequest} ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.ListInstancesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.orderBy = reader.string();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.ListInstancesRequest} ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListInstancesRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListInstancesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListInstancesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.ListInstancesRequest} ListInstancesRequest
+ */
+ ListInstancesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.ListInstancesRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.ListInstancesRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListInstancesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ListInstancesRequest} message ListInstancesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListInstancesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.orderBy = "";
+ object.filter = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListInstancesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListInstancesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListInstancesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.ListInstancesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.ListInstancesRequest";
+ };
+
+ return ListInstancesRequest;
+ })();
+
+ v1.ListInstancesResponse = (function() {
+
+ /**
+ * Properties of a ListInstancesResponse.
+ * @memberof google.cloud.filestore.v1
+ * @interface IListInstancesResponse
+ * @property {Array.|null} [instances] ListInstancesResponse instances
+ * @property {string|null} [nextPageToken] ListInstancesResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListInstancesResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListInstancesResponse.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a ListInstancesResponse.
+ * @implements IListInstancesResponse
+ * @constructor
+ * @param {google.cloud.filestore.v1.IListInstancesResponse=} [properties] Properties to set
+ */
+ function ListInstancesResponse(properties) {
+ this.instances = [];
+ this.unreachable = [];
+ 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]];
+ }
+
+ /**
+ * ListInstancesResponse instances.
+ * @member {Array.} instances
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @instance
+ */
+ ListInstancesResponse.prototype.instances = $util.emptyArray;
+
+ /**
+ * ListInstancesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @instance
+ */
+ ListInstancesResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListInstancesResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @instance
+ */
+ ListInstancesResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListInstancesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1.IListInstancesResponse=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.ListInstancesResponse} ListInstancesResponse instance
+ */
+ ListInstancesResponse.create = function create(properties) {
+ return new ListInstancesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListInstancesResponse message. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1.IListInstancesResponse} message ListInstancesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.instances != null && message.instances.length)
+ for (var i = 0; i < message.instances.length; ++i)
+ $root.google.cloud.filestore.v1.Instance.encode(message.instances[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListInstancesResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListInstancesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1.IListInstancesResponse} message ListInstancesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.ListInstancesResponse} ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.ListInstancesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.instances && message.instances.length))
+ message.instances = [];
+ message.instances.push($root.google.cloud.filestore.v1.Instance.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.ListInstancesResponse} ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListInstancesResponse message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListInstancesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.instances != null && message.hasOwnProperty("instances")) {
+ if (!Array.isArray(message.instances))
+ return "instances: array expected";
+ for (var i = 0; i < message.instances.length; ++i) {
+ var error = $root.google.cloud.filestore.v1.Instance.verify(message.instances[i]);
+ if (error)
+ return "instances." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListInstancesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.ListInstancesResponse} ListInstancesResponse
+ */
+ ListInstancesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.ListInstancesResponse)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.ListInstancesResponse();
+ if (object.instances) {
+ if (!Array.isArray(object.instances))
+ throw TypeError(".google.cloud.filestore.v1.ListInstancesResponse.instances: array expected");
+ message.instances = [];
+ for (var i = 0; i < object.instances.length; ++i) {
+ if (typeof object.instances[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1.ListInstancesResponse.instances: object expected");
+ message.instances[i] = $root.google.cloud.filestore.v1.Instance.fromObject(object.instances[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.filestore.v1.ListInstancesResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListInstancesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1.ListInstancesResponse} message ListInstancesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListInstancesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.instances = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.instances && message.instances.length) {
+ object.instances = [];
+ for (var j = 0; j < message.instances.length; ++j)
+ object.instances[j] = $root.google.cloud.filestore.v1.Instance.toObject(message.instances[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListInstancesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListInstancesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListInstancesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.ListInstancesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListInstancesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.ListInstancesResponse";
+ };
+
+ return ListInstancesResponse;
+ })();
+
+ v1.Backup = (function() {
+
+ /**
+ * Properties of a Backup.
+ * @memberof google.cloud.filestore.v1
+ * @interface IBackup
+ * @property {string|null} [name] Backup name
+ * @property {string|null} [description] Backup description
+ * @property {google.cloud.filestore.v1.Backup.State|null} [state] Backup state
+ * @property {google.protobuf.ITimestamp|null} [createTime] Backup createTime
+ * @property {Object.|null} [labels] Backup labels
+ * @property {number|Long|null} [capacityGb] Backup capacityGb
+ * @property {number|Long|null} [storageBytes] Backup storageBytes
+ * @property {string|null} [sourceInstance] Backup sourceInstance
+ * @property {string|null} [sourceFileShare] Backup sourceFileShare
+ * @property {google.cloud.filestore.v1.Instance.Tier|null} [sourceInstanceTier] Backup sourceInstanceTier
+ * @property {number|Long|null} [downloadBytes] Backup downloadBytes
+ * @property {google.protobuf.IBoolValue|null} [satisfiesPzs] Backup satisfiesPzs
+ */
+
+ /**
+ * Constructs a new Backup.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a Backup.
+ * @implements IBackup
+ * @constructor
+ * @param {google.cloud.filestore.v1.IBackup=} [properties] Properties to set
+ */
+ function Backup(properties) {
+ this.labels = {};
+ 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]];
+ }
+
+ /**
+ * Backup name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.name = "";
+
+ /**
+ * Backup description.
+ * @member {string} description
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.description = "";
+
+ /**
+ * Backup state.
+ * @member {google.cloud.filestore.v1.Backup.State} state
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.state = 0;
+
+ /**
+ * Backup createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.createTime = null;
+
+ /**
+ * Backup labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.labels = $util.emptyObject;
+
+ /**
+ * Backup capacityGb.
+ * @member {number|Long} capacityGb
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.capacityGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Backup storageBytes.
+ * @member {number|Long} storageBytes
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.storageBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Backup sourceInstance.
+ * @member {string} sourceInstance
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.sourceInstance = "";
+
+ /**
+ * Backup sourceFileShare.
+ * @member {string} sourceFileShare
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.sourceFileShare = "";
+
+ /**
+ * Backup sourceInstanceTier.
+ * @member {google.cloud.filestore.v1.Instance.Tier} sourceInstanceTier
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.sourceInstanceTier = 0;
+
+ /**
+ * Backup downloadBytes.
+ * @member {number|Long} downloadBytes
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.downloadBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Backup satisfiesPzs.
+ * @member {google.protobuf.IBoolValue|null|undefined} satisfiesPzs
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ */
+ Backup.prototype.satisfiesPzs = null;
+
+ /**
+ * Creates a new Backup instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {google.cloud.filestore.v1.IBackup=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.Backup} Backup instance
+ */
+ Backup.create = function create(properties) {
+ return new Backup(properties);
+ };
+
+ /**
+ * Encodes the specified Backup message. Does not implicitly {@link google.cloud.filestore.v1.Backup.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {google.cloud.filestore.v1.IBackup} message Backup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Backup.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.capacityGb != null && Object.hasOwnProperty.call(message, "capacityGb"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int64(message.capacityGb);
+ if (message.storageBytes != null && Object.hasOwnProperty.call(message, "storageBytes"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int64(message.storageBytes);
+ if (message.sourceInstance != null && Object.hasOwnProperty.call(message, "sourceInstance"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.sourceInstance);
+ if (message.sourceFileShare != null && Object.hasOwnProperty.call(message, "sourceFileShare"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.sourceFileShare);
+ if (message.sourceInstanceTier != null && Object.hasOwnProperty.call(message, "sourceInstanceTier"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.sourceInstanceTier);
+ if (message.downloadBytes != null && Object.hasOwnProperty.call(message, "downloadBytes"))
+ writer.uint32(/* id 11, wireType 0 =*/88).int64(message.downloadBytes);
+ if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs"))
+ $root.google.protobuf.BoolValue.encode(message.satisfiesPzs, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.Backup.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {google.cloud.filestore.v1.IBackup} message Backup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Backup.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.Backup} Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Backup.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.Backup(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.state = reader.int32();
+ break;
+ }
+ case 4: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 6: {
+ message.capacityGb = reader.int64();
+ break;
+ }
+ case 7: {
+ message.storageBytes = reader.int64();
+ break;
+ }
+ case 8: {
+ message.sourceInstance = reader.string();
+ break;
+ }
+ case 9: {
+ message.sourceFileShare = reader.string();
+ break;
+ }
+ case 10: {
+ message.sourceInstanceTier = reader.int32();
+ break;
+ }
+ case 11: {
+ message.downloadBytes = reader.int64();
+ break;
+ }
+ case 12: {
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Backup message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.Backup} Backup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Backup.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Backup message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Backup.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (!$util.isInteger(message.capacityGb) && !(message.capacityGb && $util.isInteger(message.capacityGb.low) && $util.isInteger(message.capacityGb.high)))
+ return "capacityGb: integer|Long expected";
+ if (message.storageBytes != null && message.hasOwnProperty("storageBytes"))
+ if (!$util.isInteger(message.storageBytes) && !(message.storageBytes && $util.isInteger(message.storageBytes.low) && $util.isInteger(message.storageBytes.high)))
+ return "storageBytes: integer|Long expected";
+ if (message.sourceInstance != null && message.hasOwnProperty("sourceInstance"))
+ if (!$util.isString(message.sourceInstance))
+ return "sourceInstance: string expected";
+ if (message.sourceFileShare != null && message.hasOwnProperty("sourceFileShare"))
+ if (!$util.isString(message.sourceFileShare))
+ return "sourceFileShare: string expected";
+ if (message.sourceInstanceTier != null && message.hasOwnProperty("sourceInstanceTier"))
+ switch (message.sourceInstanceTier) {
+ default:
+ return "sourceInstanceTier: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.downloadBytes != null && message.hasOwnProperty("downloadBytes"))
+ if (!$util.isInteger(message.downloadBytes) && !(message.downloadBytes && $util.isInteger(message.downloadBytes.low) && $util.isInteger(message.downloadBytes.high)))
+ return "downloadBytes: integer|Long expected";
+ if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.satisfiesPzs);
+ if (error)
+ return "satisfiesPzs." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Backup message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.Backup} Backup
+ */
+ Backup.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.Backup)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.Backup();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "FINALIZING":
+ case 2:
+ message.state = 2;
+ break;
+ case "READY":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Backup.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Backup.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.capacityGb != null)
+ if ($util.Long)
+ (message.capacityGb = $util.Long.fromValue(object.capacityGb)).unsigned = false;
+ else if (typeof object.capacityGb === "string")
+ message.capacityGb = parseInt(object.capacityGb, 10);
+ else if (typeof object.capacityGb === "number")
+ message.capacityGb = object.capacityGb;
+ else if (typeof object.capacityGb === "object")
+ message.capacityGb = new $util.LongBits(object.capacityGb.low >>> 0, object.capacityGb.high >>> 0).toNumber();
+ if (object.storageBytes != null)
+ if ($util.Long)
+ (message.storageBytes = $util.Long.fromValue(object.storageBytes)).unsigned = false;
+ else if (typeof object.storageBytes === "string")
+ message.storageBytes = parseInt(object.storageBytes, 10);
+ else if (typeof object.storageBytes === "number")
+ message.storageBytes = object.storageBytes;
+ else if (typeof object.storageBytes === "object")
+ message.storageBytes = new $util.LongBits(object.storageBytes.low >>> 0, object.storageBytes.high >>> 0).toNumber();
+ if (object.sourceInstance != null)
+ message.sourceInstance = String(object.sourceInstance);
+ if (object.sourceFileShare != null)
+ message.sourceFileShare = String(object.sourceFileShare);
+ switch (object.sourceInstanceTier) {
+ default:
+ if (typeof object.sourceInstanceTier === "number") {
+ message.sourceInstanceTier = object.sourceInstanceTier;
+ break;
+ }
+ break;
+ case "TIER_UNSPECIFIED":
+ case 0:
+ message.sourceInstanceTier = 0;
+ break;
+ case "STANDARD":
+ case 1:
+ message.sourceInstanceTier = 1;
+ break;
+ case "PREMIUM":
+ case 2:
+ message.sourceInstanceTier = 2;
+ break;
+ case "BASIC_HDD":
+ case 3:
+ message.sourceInstanceTier = 3;
+ break;
+ case "BASIC_SSD":
+ case 4:
+ message.sourceInstanceTier = 4;
+ break;
+ case "HIGH_SCALE_SSD":
+ case 5:
+ message.sourceInstanceTier = 5;
+ break;
+ }
+ if (object.downloadBytes != null)
+ if ($util.Long)
+ (message.downloadBytes = $util.Long.fromValue(object.downloadBytes)).unsigned = false;
+ else if (typeof object.downloadBytes === "string")
+ message.downloadBytes = parseInt(object.downloadBytes, 10);
+ else if (typeof object.downloadBytes === "number")
+ message.downloadBytes = object.downloadBytes;
+ else if (typeof object.downloadBytes === "object")
+ message.downloadBytes = new $util.LongBits(object.downloadBytes.low >>> 0, object.downloadBytes.high >>> 0).toNumber();
+ if (object.satisfiesPzs != null) {
+ if (typeof object.satisfiesPzs !== "object")
+ throw TypeError(".google.cloud.filestore.v1.Backup.satisfiesPzs: object expected");
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.fromObject(object.satisfiesPzs);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Backup message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {google.cloud.filestore.v1.Backup} message Backup
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Backup.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.createTime = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.capacityGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.capacityGb = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.storageBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.storageBytes = options.longs === String ? "0" : 0;
+ object.sourceInstance = "";
+ object.sourceFileShare = "";
+ object.sourceInstanceTier = options.enums === String ? "TIER_UNSPECIFIED" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.downloadBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.downloadBytes = options.longs === String ? "0" : 0;
+ object.satisfiesPzs = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.filestore.v1.Backup.State[message.state] === undefined ? message.state : $root.google.cloud.filestore.v1.Backup.State[message.state] : message.state;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (typeof message.capacityGb === "number")
+ object.capacityGb = options.longs === String ? String(message.capacityGb) : message.capacityGb;
+ else
+ object.capacityGb = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGb) : options.longs === Number ? new $util.LongBits(message.capacityGb.low >>> 0, message.capacityGb.high >>> 0).toNumber() : message.capacityGb;
+ if (message.storageBytes != null && message.hasOwnProperty("storageBytes"))
+ if (typeof message.storageBytes === "number")
+ object.storageBytes = options.longs === String ? String(message.storageBytes) : message.storageBytes;
+ else
+ object.storageBytes = options.longs === String ? $util.Long.prototype.toString.call(message.storageBytes) : options.longs === Number ? new $util.LongBits(message.storageBytes.low >>> 0, message.storageBytes.high >>> 0).toNumber() : message.storageBytes;
+ if (message.sourceInstance != null && message.hasOwnProperty("sourceInstance"))
+ object.sourceInstance = message.sourceInstance;
+ if (message.sourceFileShare != null && message.hasOwnProperty("sourceFileShare"))
+ object.sourceFileShare = message.sourceFileShare;
+ if (message.sourceInstanceTier != null && message.hasOwnProperty("sourceInstanceTier"))
+ object.sourceInstanceTier = options.enums === String ? $root.google.cloud.filestore.v1.Instance.Tier[message.sourceInstanceTier] === undefined ? message.sourceInstanceTier : $root.google.cloud.filestore.v1.Instance.Tier[message.sourceInstanceTier] : message.sourceInstanceTier;
+ if (message.downloadBytes != null && message.hasOwnProperty("downloadBytes"))
+ if (typeof message.downloadBytes === "number")
+ object.downloadBytes = options.longs === String ? String(message.downloadBytes) : message.downloadBytes;
+ else
+ object.downloadBytes = options.longs === String ? $util.Long.prototype.toString.call(message.downloadBytes) : options.longs === Number ? new $util.LongBits(message.downloadBytes.low >>> 0, message.downloadBytes.high >>> 0).toNumber() : message.downloadBytes;
+ if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs"))
+ object.satisfiesPzs = $root.google.protobuf.BoolValue.toObject(message.satisfiesPzs, options);
+ return object;
+ };
+
+ /**
+ * Converts this Backup to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.Backup
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Backup.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Backup
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.Backup
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Backup.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.Backup";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.filestore.v1.Backup.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} FINALIZING=2 FINALIZING value
+ * @property {number} READY=3 READY value
+ * @property {number} DELETING=4 DELETING value
+ */
+ Backup.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "FINALIZING"] = 2;
+ values[valuesById[3] = "READY"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ return values;
+ })();
+
+ return Backup;
+ })();
+
+ v1.CreateBackupRequest = (function() {
+
+ /**
+ * Properties of a CreateBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface ICreateBackupRequest
+ * @property {string|null} [parent] CreateBackupRequest parent
+ * @property {google.cloud.filestore.v1.IBackup|null} [backup] CreateBackupRequest backup
+ * @property {string|null} [backupId] CreateBackupRequest backupId
+ */
+
+ /**
+ * Constructs a new CreateBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a CreateBackupRequest.
+ * @implements ICreateBackupRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.ICreateBackupRequest=} [properties] Properties to set
+ */
+ function CreateBackupRequest(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]];
+ }
+
+ /**
+ * CreateBackupRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @instance
+ */
+ CreateBackupRequest.prototype.parent = "";
+
+ /**
+ * CreateBackupRequest backup.
+ * @member {google.cloud.filestore.v1.IBackup|null|undefined} backup
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @instance
+ */
+ CreateBackupRequest.prototype.backup = null;
+
+ /**
+ * CreateBackupRequest backupId.
+ * @member {string} backupId
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @instance
+ */
+ CreateBackupRequest.prototype.backupId = "";
+
+ /**
+ * Creates a new CreateBackupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ICreateBackupRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.CreateBackupRequest} CreateBackupRequest instance
+ */
+ CreateBackupRequest.create = function create(properties) {
+ return new CreateBackupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.CreateBackupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ICreateBackupRequest} message CreateBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateBackupRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ $root.google.cloud.filestore.v1.Backup.encode(message.backup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.backupId != null && Object.hasOwnProperty.call(message, "backupId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.backupId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.CreateBackupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ICreateBackupRequest} message CreateBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.CreateBackupRequest} CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateBackupRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.CreateBackupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.backup = $root.google.cloud.filestore.v1.Backup.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.backupId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateBackupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.CreateBackupRequest} CreateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateBackupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateBackupRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateBackupRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.backup != null && message.hasOwnProperty("backup")) {
+ var error = $root.google.cloud.filestore.v1.Backup.verify(message.backup);
+ if (error)
+ return "backup." + error;
+ }
+ if (message.backupId != null && message.hasOwnProperty("backupId"))
+ if (!$util.isString(message.backupId))
+ return "backupId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.CreateBackupRequest} CreateBackupRequest
+ */
+ CreateBackupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.CreateBackupRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.CreateBackupRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.backup != null) {
+ if (typeof object.backup !== "object")
+ throw TypeError(".google.cloud.filestore.v1.CreateBackupRequest.backup: object expected");
+ message.backup = $root.google.cloud.filestore.v1.Backup.fromObject(object.backup);
+ }
+ if (object.backupId != null)
+ message.backupId = String(object.backupId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateBackupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.CreateBackupRequest} message CreateBackupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateBackupRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.backup = null;
+ object.backupId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.backup != null && message.hasOwnProperty("backup"))
+ object.backup = $root.google.cloud.filestore.v1.Backup.toObject(message.backup, options);
+ if (message.backupId != null && message.hasOwnProperty("backupId"))
+ object.backupId = message.backupId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateBackupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateBackupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateBackupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.CreateBackupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.CreateBackupRequest";
+ };
+
+ return CreateBackupRequest;
+ })();
+
+ v1.DeleteBackupRequest = (function() {
+
+ /**
+ * Properties of a DeleteBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IDeleteBackupRequest
+ * @property {string|null} [name] DeleteBackupRequest name
+ */
+
+ /**
+ * Constructs a new DeleteBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a DeleteBackupRequest.
+ * @implements IDeleteBackupRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IDeleteBackupRequest=} [properties] Properties to set
+ */
+ function DeleteBackupRequest(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]];
+ }
+
+ /**
+ * DeleteBackupRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @instance
+ */
+ DeleteBackupRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteBackupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IDeleteBackupRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.DeleteBackupRequest} DeleteBackupRequest instance
+ */
+ DeleteBackupRequest.create = function create(properties) {
+ return new DeleteBackupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IDeleteBackupRequest} message DeleteBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteBackupRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.DeleteBackupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IDeleteBackupRequest} message DeleteBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.DeleteBackupRequest} DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteBackupRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.DeleteBackupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteBackupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.DeleteBackupRequest} DeleteBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteBackupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteBackupRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteBackupRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.DeleteBackupRequest} DeleteBackupRequest
+ */
+ DeleteBackupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.DeleteBackupRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.DeleteBackupRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteBackupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.DeleteBackupRequest} message DeleteBackupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteBackupRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteBackupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteBackupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteBackupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.DeleteBackupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.DeleteBackupRequest";
+ };
+
+ return DeleteBackupRequest;
+ })();
+
+ v1.UpdateBackupRequest = (function() {
+
+ /**
+ * Properties of an UpdateBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IUpdateBackupRequest
+ * @property {google.cloud.filestore.v1.IBackup|null} [backup] UpdateBackupRequest backup
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateBackupRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents an UpdateBackupRequest.
+ * @implements IUpdateBackupRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IUpdateBackupRequest=} [properties] Properties to set
+ */
+ function UpdateBackupRequest(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]];
+ }
+
+ /**
+ * UpdateBackupRequest backup.
+ * @member {google.cloud.filestore.v1.IBackup|null|undefined} backup
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @instance
+ */
+ UpdateBackupRequest.prototype.backup = null;
+
+ /**
+ * UpdateBackupRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @instance
+ */
+ UpdateBackupRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateBackupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IUpdateBackupRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.UpdateBackupRequest} UpdateBackupRequest instance
+ */
+ UpdateBackupRequest.create = function create(properties) {
+ return new UpdateBackupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.UpdateBackupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IUpdateBackupRequest} message UpdateBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBackupRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.backup != null && Object.hasOwnProperty.call(message, "backup"))
+ $root.google.cloud.filestore.v1.Backup.encode(message.backup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.UpdateBackupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IUpdateBackupRequest} message UpdateBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateBackupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.UpdateBackupRequest} UpdateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBackupRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.UpdateBackupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.backup = $root.google.cloud.filestore.v1.Backup.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateBackupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.UpdateBackupRequest} UpdateBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBackupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateBackupRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateBackupRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.backup != null && message.hasOwnProperty("backup")) {
+ var error = $root.google.cloud.filestore.v1.Backup.verify(message.backup);
+ if (error)
+ return "backup." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.UpdateBackupRequest} UpdateBackupRequest
+ */
+ UpdateBackupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.UpdateBackupRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.UpdateBackupRequest();
+ if (object.backup != null) {
+ if (typeof object.backup !== "object")
+ throw TypeError(".google.cloud.filestore.v1.UpdateBackupRequest.backup: object expected");
+ message.backup = $root.google.cloud.filestore.v1.Backup.fromObject(object.backup);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.filestore.v1.UpdateBackupRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateBackupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.UpdateBackupRequest} message UpdateBackupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateBackupRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.backup = null;
+ object.updateMask = null;
+ }
+ if (message.backup != null && message.hasOwnProperty("backup"))
+ object.backup = $root.google.cloud.filestore.v1.Backup.toObject(message.backup, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateBackupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateBackupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateBackupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.UpdateBackupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.UpdateBackupRequest";
+ };
+
+ return UpdateBackupRequest;
+ })();
+
+ v1.GetBackupRequest = (function() {
+
+ /**
+ * Properties of a GetBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IGetBackupRequest
+ * @property {string|null} [name] GetBackupRequest name
+ */
+
+ /**
+ * Constructs a new GetBackupRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a GetBackupRequest.
+ * @implements IGetBackupRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IGetBackupRequest=} [properties] Properties to set
+ */
+ function GetBackupRequest(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]];
+ }
+
+ /**
+ * GetBackupRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @instance
+ */
+ GetBackupRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetBackupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IGetBackupRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.GetBackupRequest} GetBackupRequest instance
+ */
+ GetBackupRequest.create = function create(properties) {
+ return new GetBackupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetBackupRequest message. Does not implicitly {@link google.cloud.filestore.v1.GetBackupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IGetBackupRequest} message GetBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBackupRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetBackupRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.GetBackupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IGetBackupRequest} message GetBackupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.GetBackupRequest} GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBackupRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.GetBackupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetBackupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.GetBackupRequest} GetBackupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBackupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetBackupRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetBackupRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetBackupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.GetBackupRequest} GetBackupRequest
+ */
+ GetBackupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.GetBackupRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.GetBackupRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetBackupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {google.cloud.filestore.v1.GetBackupRequest} message GetBackupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetBackupRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetBackupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetBackupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetBackupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.GetBackupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetBackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.GetBackupRequest";
+ };
+
+ return GetBackupRequest;
+ })();
+
+ v1.ListBackupsRequest = (function() {
+
+ /**
+ * Properties of a ListBackupsRequest.
+ * @memberof google.cloud.filestore.v1
+ * @interface IListBackupsRequest
+ * @property {string|null} [parent] ListBackupsRequest parent
+ * @property {number|null} [pageSize] ListBackupsRequest pageSize
+ * @property {string|null} [pageToken] ListBackupsRequest pageToken
+ * @property {string|null} [orderBy] ListBackupsRequest orderBy
+ * @property {string|null} [filter] ListBackupsRequest filter
+ */
+
+ /**
+ * Constructs a new ListBackupsRequest.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a ListBackupsRequest.
+ * @implements IListBackupsRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1.IListBackupsRequest=} [properties] Properties to set
+ */
+ function ListBackupsRequest(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]];
+ }
+
+ /**
+ * ListBackupsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.parent = "";
+
+ /**
+ * ListBackupsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListBackupsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.pageToken = "";
+
+ /**
+ * ListBackupsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.orderBy = "";
+
+ /**
+ * ListBackupsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @instance
+ */
+ ListBackupsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListBackupsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IListBackupsRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.ListBackupsRequest} ListBackupsRequest instance
+ */
+ ListBackupsRequest.create = function create(properties) {
+ return new ListBackupsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListBackupsRequest message. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IListBackupsRequest} message ListBackupsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListBackupsRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.filestore.v1.IListBackupsRequest} message ListBackupsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.ListBackupsRequest} ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.ListBackupsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.orderBy = reader.string();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListBackupsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.ListBackupsRequest} ListBackupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListBackupsRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListBackupsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListBackupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.ListBackupsRequest} ListBackupsRequest
+ */
+ ListBackupsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.ListBackupsRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.ListBackupsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListBackupsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {google.cloud.filestore.v1.ListBackupsRequest} message ListBackupsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListBackupsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.orderBy = "";
+ object.filter = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListBackupsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListBackupsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListBackupsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.ListBackupsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListBackupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.ListBackupsRequest";
+ };
+
+ return ListBackupsRequest;
+ })();
+
+ v1.ListBackupsResponse = (function() {
+
+ /**
+ * Properties of a ListBackupsResponse.
+ * @memberof google.cloud.filestore.v1
+ * @interface IListBackupsResponse
+ * @property {Array.|null} [backups] ListBackupsResponse backups
+ * @property {string|null} [nextPageToken] ListBackupsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListBackupsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListBackupsResponse.
+ * @memberof google.cloud.filestore.v1
+ * @classdesc Represents a ListBackupsResponse.
+ * @implements IListBackupsResponse
+ * @constructor
+ * @param {google.cloud.filestore.v1.IListBackupsResponse=} [properties] Properties to set
+ */
+ function ListBackupsResponse(properties) {
+ this.backups = [];
+ this.unreachable = [];
+ 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]];
+ }
+
+ /**
+ * ListBackupsResponse backups.
+ * @member {Array.} backups
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @instance
+ */
+ ListBackupsResponse.prototype.backups = $util.emptyArray;
+
+ /**
+ * ListBackupsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @instance
+ */
+ ListBackupsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListBackupsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @instance
+ */
+ ListBackupsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListBackupsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.filestore.v1.IListBackupsResponse=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1.ListBackupsResponse} ListBackupsResponse instance
+ */
+ ListBackupsResponse.create = function create(properties) {
+ return new ListBackupsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListBackupsResponse message. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.filestore.v1.IListBackupsResponse} message ListBackupsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.backups != null && message.backups.length)
+ for (var i = 0; i < message.backups.length; ++i)
+ $root.google.cloud.filestore.v1.Backup.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListBackupsResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1.ListBackupsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.filestore.v1.IListBackupsResponse} message ListBackupsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1.ListBackupsResponse} ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1.ListBackupsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.backups && message.backups.length))
+ message.backups = [];
+ message.backups.push($root.google.cloud.filestore.v1.Backup.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListBackupsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1.ListBackupsResponse} ListBackupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBackupsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListBackupsResponse message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListBackupsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.backups != null && message.hasOwnProperty("backups")) {
+ if (!Array.isArray(message.backups))
+ return "backups: array expected";
+ for (var i = 0; i < message.backups.length; ++i) {
+ var error = $root.google.cloud.filestore.v1.Backup.verify(message.backups[i]);
+ if (error)
+ return "backups." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListBackupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1.ListBackupsResponse} ListBackupsResponse
+ */
+ ListBackupsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1.ListBackupsResponse)
+ return object;
+ var message = new $root.google.cloud.filestore.v1.ListBackupsResponse();
+ if (object.backups) {
+ if (!Array.isArray(object.backups))
+ throw TypeError(".google.cloud.filestore.v1.ListBackupsResponse.backups: array expected");
+ message.backups = [];
+ for (var i = 0; i < object.backups.length; ++i) {
+ if (typeof object.backups[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1.ListBackupsResponse.backups: object expected");
+ message.backups[i] = $root.google.cloud.filestore.v1.Backup.fromObject(object.backups[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.filestore.v1.ListBackupsResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListBackupsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {google.cloud.filestore.v1.ListBackupsResponse} message ListBackupsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListBackupsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.backups = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.backups && message.backups.length) {
+ object.backups = [];
+ for (var j = 0; j < message.backups.length; ++j)
+ object.backups[j] = $root.google.cloud.filestore.v1.Backup.toObject(message.backups[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListBackupsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListBackupsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListBackupsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1.ListBackupsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListBackupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1.ListBackupsResponse";
+ };
+
+ return ListBackupsResponse;
+ })();
+
+ return v1;
+ })();
+
+ filestore.v1beta1 = (function() {
+
+ /**
+ * Namespace v1beta1.
+ * @memberof google.cloud.filestore
+ * @namespace
+ */
+ var v1beta1 = {};
+
+ v1beta1.CloudFilestoreManager = (function() {
+
+ /**
+ * Constructs a new CloudFilestoreManager service.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a CloudFilestoreManager
+ * @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 CloudFilestoreManager(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (CloudFilestoreManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = CloudFilestoreManager;
+
+ /**
+ * Creates new CloudFilestoreManager service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {CloudFilestoreManager} RPC service. Useful where requests and/or responses are streamed.
+ */
+ CloudFilestoreManager.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listInstances}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef ListInstancesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.ListInstancesResponse} [response] ListInstancesResponse
+ */
+
+ /**
+ * Calls ListInstances.
+ * @function listInstances
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListInstancesRequest} request ListInstancesRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstancesCallback} callback Node-style callback called with the error, if any, and ListInstancesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.listInstances = function listInstances(request, callback) {
+ return this.rpcCall(listInstances, $root.google.cloud.filestore.v1beta1.ListInstancesRequest, $root.google.cloud.filestore.v1beta1.ListInstancesResponse, request, callback);
+ }, "name", { value: "ListInstances" });
+
+ /**
+ * Calls ListInstances.
+ * @function listInstances
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListInstancesRequest} request ListInstancesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getInstance}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef GetInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.Instance} [response] Instance
+ */
+
+ /**
+ * Calls GetInstance.
+ * @function getInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetInstanceRequest} request GetInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstanceCallback} callback Node-style callback called with the error, if any, and Instance
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.getInstance = function getInstance(request, callback) {
+ return this.rpcCall(getInstance, $root.google.cloud.filestore.v1beta1.GetInstanceRequest, $root.google.cloud.filestore.v1beta1.Instance, request, callback);
+ }, "name", { value: "GetInstance" });
+
+ /**
+ * Calls GetInstance.
+ * @function getInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetInstanceRequest} request GetInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createInstance}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef CreateInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateInstance.
+ * @function createInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateInstanceRequest} request CreateInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.createInstance = function createInstance(request, callback) {
+ return this.rpcCall(createInstance, $root.google.cloud.filestore.v1beta1.CreateInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateInstance" });
+
+ /**
+ * Calls CreateInstance.
+ * @function createInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateInstanceRequest} request CreateInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateInstance}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef UpdateInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateInstance.
+ * @function updateInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateInstanceRequest} request UpdateInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.updateInstance = function updateInstance(request, callback) {
+ return this.rpcCall(updateInstance, $root.google.cloud.filestore.v1beta1.UpdateInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateInstance" });
+
+ /**
+ * Calls UpdateInstance.
+ * @function updateInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateInstanceRequest} request UpdateInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|restoreInstance}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef RestoreInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RestoreInstance.
+ * @function restoreInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IRestoreInstanceRequest} request RestoreInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.restoreInstance = function restoreInstance(request, callback) {
+ return this.rpcCall(restoreInstance, $root.google.cloud.filestore.v1beta1.RestoreInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RestoreInstance" });
+
+ /**
+ * Calls RestoreInstance.
+ * @function restoreInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IRestoreInstanceRequest} request RestoreInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|revertInstance}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef RevertInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RevertInstance.
+ * @function revertInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IRevertInstanceRequest} request RevertInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.RevertInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.revertInstance = function revertInstance(request, callback) {
+ return this.rpcCall(revertInstance, $root.google.cloud.filestore.v1beta1.RevertInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RevertInstance" });
+
+ /**
+ * Calls RevertInstance.
+ * @function revertInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IRevertInstanceRequest} request RevertInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteInstance}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef DeleteInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteInstance.
+ * @function deleteInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.deleteInstance = function deleteInstance(request, callback) {
+ return this.rpcCall(deleteInstance, $root.google.cloud.filestore.v1beta1.DeleteInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteInstance" });
+
+ /**
+ * Calls DeleteInstance.
+ * @function deleteInstance
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listSnapshots}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef ListSnapshotsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.ListSnapshotsResponse} [response] ListSnapshotsResponse
+ */
+
+ /**
+ * Calls ListSnapshots.
+ * @function listSnapshots
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListSnapshotsRequest} request ListSnapshotsRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.ListSnapshotsCallback} callback Node-style callback called with the error, if any, and ListSnapshotsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.listSnapshots = function listSnapshots(request, callback) {
+ return this.rpcCall(listSnapshots, $root.google.cloud.filestore.v1beta1.ListSnapshotsRequest, $root.google.cloud.filestore.v1beta1.ListSnapshotsResponse, request, callback);
+ }, "name", { value: "ListSnapshots" });
+
+ /**
+ * Calls ListSnapshots.
+ * @function listSnapshots
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListSnapshotsRequest} request ListSnapshotsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getSnapshot}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef GetSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.Snapshot} [response] Snapshot
+ */
+
+ /**
+ * Calls GetSnapshot.
+ * @function getSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetSnapshotRequest} request GetSnapshotRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.GetSnapshotCallback} callback Node-style callback called with the error, if any, and Snapshot
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.getSnapshot = function getSnapshot(request, callback) {
+ return this.rpcCall(getSnapshot, $root.google.cloud.filestore.v1beta1.GetSnapshotRequest, $root.google.cloud.filestore.v1beta1.Snapshot, request, callback);
+ }, "name", { value: "GetSnapshot" });
+
+ /**
+ * Calls GetSnapshot.
+ * @function getSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetSnapshotRequest} request GetSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createSnapshot}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef CreateSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateSnapshot.
+ * @function createSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateSnapshotRequest} request CreateSnapshotRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateSnapshotCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.createSnapshot = function createSnapshot(request, callback) {
+ return this.rpcCall(createSnapshot, $root.google.cloud.filestore.v1beta1.CreateSnapshotRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateSnapshot" });
+
+ /**
+ * Calls CreateSnapshot.
+ * @function createSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateSnapshotRequest} request CreateSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteSnapshot}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef DeleteSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteSnapshot.
+ * @function deleteSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteSnapshotRequest} request DeleteSnapshotRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteSnapshotCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.deleteSnapshot = function deleteSnapshot(request, callback) {
+ return this.rpcCall(deleteSnapshot, $root.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteSnapshot" });
+
+ /**
+ * Calls DeleteSnapshot.
+ * @function deleteSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteSnapshotRequest} request DeleteSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateSnapshot}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef UpdateSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateSnapshot.
+ * @function updateSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateSnapshotRequest} request UpdateSnapshotRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateSnapshotCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.updateSnapshot = function updateSnapshot(request, callback) {
+ return this.rpcCall(updateSnapshot, $root.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateSnapshot" });
+
+ /**
+ * Calls UpdateSnapshot.
+ * @function updateSnapshot
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateSnapshotRequest} request UpdateSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listBackups}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef ListBackupsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.ListBackupsResponse} [response] ListBackupsResponse
+ */
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackupsCallback} callback Node-style callback called with the error, if any, and ListBackupsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.listBackups = function listBackups(request, callback) {
+ return this.rpcCall(listBackups, $root.google.cloud.filestore.v1beta1.ListBackupsRequest, $root.google.cloud.filestore.v1beta1.ListBackupsResponse, request, callback);
+ }, "name", { value: "ListBackups" });
+
+ /**
+ * Calls ListBackups.
+ * @function listBackups
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListBackupsRequest} request ListBackupsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getBackup}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef GetBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.Backup} [response] Backup
+ */
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackupCallback} callback Node-style callback called with the error, if any, and Backup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.getBackup = function getBackup(request, callback) {
+ return this.rpcCall(getBackup, $root.google.cloud.filestore.v1beta1.GetBackupRequest, $root.google.cloud.filestore.v1beta1.Backup, request, callback);
+ }, "name", { value: "GetBackup" });
+
+ /**
+ * Calls GetBackup.
+ * @function getBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetBackupRequest} request GetBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createBackup}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef CreateBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateBackup.
+ * @function createBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateBackupRequest} request CreateBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.createBackup = function createBackup(request, callback) {
+ return this.rpcCall(createBackup, $root.google.cloud.filestore.v1beta1.CreateBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateBackup" });
+
+ /**
+ * Calls CreateBackup.
+ * @function createBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateBackupRequest} request CreateBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteBackup}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef DeleteBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.deleteBackup = function deleteBackup(request, callback) {
+ return this.rpcCall(deleteBackup, $root.google.cloud.filestore.v1beta1.DeleteBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteBackup" });
+
+ /**
+ * Calls DeleteBackup.
+ * @function deleteBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteBackupRequest} request DeleteBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateBackup}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef UpdateBackupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateBackup.
+ * @function updateBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateBackupRequest} request UpdateBackupRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.updateBackup = function updateBackup(request, callback) {
+ return this.rpcCall(updateBackup, $root.google.cloud.filestore.v1beta1.UpdateBackupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateBackup" });
+
+ /**
+ * Calls UpdateBackup.
+ * @function updateBackup
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateBackupRequest} request UpdateBackupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|listShares}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef ListSharesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.ListSharesResponse} [response] ListSharesResponse
+ */
+
+ /**
+ * Calls ListShares.
+ * @function listShares
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListSharesRequest} request ListSharesRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.ListSharesCallback} callback Node-style callback called with the error, if any, and ListSharesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.listShares = function listShares(request, callback) {
+ return this.rpcCall(listShares, $root.google.cloud.filestore.v1beta1.ListSharesRequest, $root.google.cloud.filestore.v1beta1.ListSharesResponse, request, callback);
+ }, "name", { value: "ListShares" });
+
+ /**
+ * Calls ListShares.
+ * @function listShares
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IListSharesRequest} request ListSharesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|getShare}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef GetShareCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.filestore.v1beta1.Share} [response] Share
+ */
+
+ /**
+ * Calls GetShare.
+ * @function getShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetShareRequest} request GetShareRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.GetShareCallback} callback Node-style callback called with the error, if any, and Share
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.getShare = function getShare(request, callback) {
+ return this.rpcCall(getShare, $root.google.cloud.filestore.v1beta1.GetShareRequest, $root.google.cloud.filestore.v1beta1.Share, request, callback);
+ }, "name", { value: "GetShare" });
+
+ /**
+ * Calls GetShare.
+ * @function getShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IGetShareRequest} request GetShareRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|createShare}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef CreateShareCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateShare.
+ * @function createShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateShareRequest} request CreateShareRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateShareCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.createShare = function createShare(request, callback) {
+ return this.rpcCall(createShare, $root.google.cloud.filestore.v1beta1.CreateShareRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateShare" });
+
+ /**
+ * Calls CreateShare.
+ * @function createShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.ICreateShareRequest} request CreateShareRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|deleteShare}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef DeleteShareCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteShare.
+ * @function deleteShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteShareRequest} request DeleteShareRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteShareCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.deleteShare = function deleteShare(request, callback) {
+ return this.rpcCall(deleteShare, $root.google.cloud.filestore.v1beta1.DeleteShareRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteShare" });
+
+ /**
+ * Calls DeleteShare.
+ * @function deleteShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IDeleteShareRequest} request DeleteShareRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.filestore.v1beta1.CloudFilestoreManager|updateShare}.
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @typedef UpdateShareCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateShare.
+ * @function updateShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateShareRequest} request UpdateShareRequest message or plain object
+ * @param {google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateShareCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFilestoreManager.prototype.updateShare = function updateShare(request, callback) {
+ return this.rpcCall(updateShare, $root.google.cloud.filestore.v1beta1.UpdateShareRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateShare" });
+
+ /**
+ * Calls UpdateShare.
+ * @function updateShare
+ * @memberof google.cloud.filestore.v1beta1.CloudFilestoreManager
+ * @instance
+ * @param {google.cloud.filestore.v1beta1.IUpdateShareRequest} request UpdateShareRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return CloudFilestoreManager;
+ })();
+
+ v1beta1.NetworkConfig = (function() {
+
+ /**
+ * Properties of a NetworkConfig.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface INetworkConfig
+ * @property {string|null} [network] NetworkConfig network
+ * @property {Array.|null} [modes] NetworkConfig modes
+ * @property {string|null} [reservedIpRange] NetworkConfig reservedIpRange
+ * @property {Array.|null} [ipAddresses] NetworkConfig ipAddresses
+ * @property {google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode|null} [connectMode] NetworkConfig connectMode
+ */
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a NetworkConfig.
+ * @implements INetworkConfig
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.INetworkConfig=} [properties] Properties to set
+ */
+ function NetworkConfig(properties) {
+ this.modes = [];
+ this.ipAddresses = [];
+ 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]];
+ }
+
+ /**
+ * NetworkConfig network.
+ * @member {string} network
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.network = "";
+
+ /**
+ * NetworkConfig modes.
+ * @member {Array.} modes
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.modes = $util.emptyArray;
+
+ /**
+ * NetworkConfig reservedIpRange.
+ * @member {string} reservedIpRange
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.reservedIpRange = "";
+
+ /**
+ * NetworkConfig ipAddresses.
+ * @member {Array.} ipAddresses
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.ipAddresses = $util.emptyArray;
+
+ /**
+ * NetworkConfig connectMode.
+ * @member {google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode} connectMode
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.connectMode = 0;
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.INetworkConfig=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.NetworkConfig} NetworkConfig instance
+ */
+ NetworkConfig.create = function create(properties) {
+ return new NetworkConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.filestore.v1beta1.NetworkConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.network != null && Object.hasOwnProperty.call(message, "network"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.network);
+ if (message.modes != null && message.modes.length) {
+ writer.uint32(/* id 3, wireType 2 =*/26).fork();
+ for (var i = 0; i < message.modes.length; ++i)
+ writer.int32(message.modes[i]);
+ writer.ldelim();
+ }
+ if (message.reservedIpRange != null && Object.hasOwnProperty.call(message, "reservedIpRange"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.reservedIpRange);
+ if (message.ipAddresses != null && message.ipAddresses.length)
+ for (var i = 0; i < message.ipAddresses.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.ipAddresses[i]);
+ if (message.connectMode != null && Object.hasOwnProperty.call(message, "connectMode"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.connectMode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.NetworkConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.NetworkConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.network = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.modes && message.modes.length))
+ message.modes = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.modes.push(reader.int32());
+ } else
+ message.modes.push(reader.int32());
+ break;
+ }
+ case 4: {
+ message.reservedIpRange = reader.string();
+ break;
+ }
+ case 5: {
+ if (!(message.ipAddresses && message.ipAddresses.length))
+ message.ipAddresses = [];
+ message.ipAddresses.push(reader.string());
+ break;
+ }
+ case 6: {
+ message.connectMode = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NetworkConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.network != null && message.hasOwnProperty("network"))
+ if (!$util.isString(message.network))
+ return "network: string expected";
+ if (message.modes != null && message.hasOwnProperty("modes")) {
+ if (!Array.isArray(message.modes))
+ return "modes: array expected";
+ for (var i = 0; i < message.modes.length; ++i)
+ switch (message.modes[i]) {
+ default:
+ return "modes: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ if (message.reservedIpRange != null && message.hasOwnProperty("reservedIpRange"))
+ if (!$util.isString(message.reservedIpRange))
+ return "reservedIpRange: string expected";
+ if (message.ipAddresses != null && message.hasOwnProperty("ipAddresses")) {
+ if (!Array.isArray(message.ipAddresses))
+ return "ipAddresses: array expected";
+ for (var i = 0; i < message.ipAddresses.length; ++i)
+ if (!$util.isString(message.ipAddresses[i]))
+ return "ipAddresses: string[] expected";
+ }
+ if (message.connectMode != null && message.hasOwnProperty("connectMode"))
+ switch (message.connectMode) {
+ default:
+ return "connectMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.NetworkConfig} NetworkConfig
+ */
+ NetworkConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.NetworkConfig)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.NetworkConfig();
+ if (object.network != null)
+ message.network = String(object.network);
+ if (object.modes) {
+ if (!Array.isArray(object.modes))
+ throw TypeError(".google.cloud.filestore.v1beta1.NetworkConfig.modes: array expected");
+ message.modes = [];
+ for (var i = 0; i < object.modes.length; ++i)
+ switch (object.modes[i]) {
+ default:
+ if (typeof object.modes[i] === "number") {
+ message.modes[i] = object.modes[i];
+ break;
+ }
+ case "ADDRESS_MODE_UNSPECIFIED":
+ case 0:
+ message.modes[i] = 0;
+ break;
+ case "MODE_IPV4":
+ case 1:
+ message.modes[i] = 1;
+ break;
+ }
+ }
+ if (object.reservedIpRange != null)
+ message.reservedIpRange = String(object.reservedIpRange);
+ if (object.ipAddresses) {
+ if (!Array.isArray(object.ipAddresses))
+ throw TypeError(".google.cloud.filestore.v1beta1.NetworkConfig.ipAddresses: array expected");
+ message.ipAddresses = [];
+ for (var i = 0; i < object.ipAddresses.length; ++i)
+ message.ipAddresses[i] = String(object.ipAddresses[i]);
+ }
+ switch (object.connectMode) {
+ default:
+ if (typeof object.connectMode === "number") {
+ message.connectMode = object.connectMode;
+ break;
+ }
+ break;
+ case "CONNECT_MODE_UNSPECIFIED":
+ case 0:
+ message.connectMode = 0;
+ break;
+ case "DIRECT_PEERING":
+ case 1:
+ message.connectMode = 1;
+ break;
+ case "PRIVATE_SERVICE_ACCESS":
+ case 2:
+ message.connectMode = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.NetworkConfig} message NetworkConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NetworkConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.modes = [];
+ object.ipAddresses = [];
+ }
+ if (options.defaults) {
+ object.network = "";
+ object.reservedIpRange = "";
+ object.connectMode = options.enums === String ? "CONNECT_MODE_UNSPECIFIED" : 0;
+ }
+ if (message.network != null && message.hasOwnProperty("network"))
+ object.network = message.network;
+ if (message.modes && message.modes.length) {
+ object.modes = [];
+ for (var j = 0; j < message.modes.length; ++j)
+ object.modes[j] = options.enums === String ? $root.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode[message.modes[j]] === undefined ? message.modes[j] : $root.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode[message.modes[j]] : message.modes[j];
+ }
+ if (message.reservedIpRange != null && message.hasOwnProperty("reservedIpRange"))
+ object.reservedIpRange = message.reservedIpRange;
+ if (message.ipAddresses && message.ipAddresses.length) {
+ object.ipAddresses = [];
+ for (var j = 0; j < message.ipAddresses.length; ++j)
+ object.ipAddresses[j] = message.ipAddresses[j];
+ }
+ if (message.connectMode != null && message.hasOwnProperty("connectMode"))
+ object.connectMode = options.enums === String ? $root.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode[message.connectMode] === undefined ? message.connectMode : $root.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode[message.connectMode] : message.connectMode;
+ return object;
+ };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NetworkConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.NetworkConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.NetworkConfig";
+ };
+
+ /**
+ * AddressMode enum.
+ * @name google.cloud.filestore.v1beta1.NetworkConfig.AddressMode
+ * @enum {number}
+ * @property {number} ADDRESS_MODE_UNSPECIFIED=0 ADDRESS_MODE_UNSPECIFIED value
+ * @property {number} MODE_IPV4=1 MODE_IPV4 value
+ */
+ NetworkConfig.AddressMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ADDRESS_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "MODE_IPV4"] = 1;
+ return values;
+ })();
+
+ /**
+ * ConnectMode enum.
+ * @name google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode
+ * @enum {number}
+ * @property {number} CONNECT_MODE_UNSPECIFIED=0 CONNECT_MODE_UNSPECIFIED value
+ * @property {number} DIRECT_PEERING=1 DIRECT_PEERING value
+ * @property {number} PRIVATE_SERVICE_ACCESS=2 PRIVATE_SERVICE_ACCESS value
+ */
+ NetworkConfig.ConnectMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CONNECT_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DIRECT_PEERING"] = 1;
+ values[valuesById[2] = "PRIVATE_SERVICE_ACCESS"] = 2;
+ return values;
+ })();
+
+ return NetworkConfig;
+ })();
+
+ v1beta1.FileShareConfig = (function() {
+
+ /**
+ * Properties of a FileShareConfig.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IFileShareConfig
+ * @property {string|null} [name] FileShareConfig name
+ * @property {number|Long|null} [capacityGb] FileShareConfig capacityGb
+ * @property {string|null} [sourceBackup] FileShareConfig sourceBackup
+ * @property {Array.|null} [nfsExportOptions] FileShareConfig nfsExportOptions
+ */
+
+ /**
+ * Constructs a new FileShareConfig.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a FileShareConfig.
+ * @implements IFileShareConfig
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IFileShareConfig=} [properties] Properties to set
+ */
+ function FileShareConfig(properties) {
+ this.nfsExportOptions = [];
+ 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]];
+ }
+
+ /**
+ * FileShareConfig name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.name = "";
+
+ /**
+ * FileShareConfig capacityGb.
+ * @member {number|Long} capacityGb
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.capacityGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * FileShareConfig sourceBackup.
+ * @member {string|null|undefined} sourceBackup
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.sourceBackup = null;
+
+ /**
+ * FileShareConfig nfsExportOptions.
+ * @member {Array.} nfsExportOptions
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @instance
+ */
+ FileShareConfig.prototype.nfsExportOptions = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * FileShareConfig source.
+ * @member {"sourceBackup"|undefined} source
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @instance
+ */
+ Object.defineProperty(FileShareConfig.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["sourceBackup"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new FileShareConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IFileShareConfig=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.FileShareConfig} FileShareConfig instance
+ */
+ FileShareConfig.create = function create(properties) {
+ return new FileShareConfig(properties);
+ };
+
+ /**
+ * Encodes the specified FileShareConfig message. Does not implicitly {@link google.cloud.filestore.v1beta1.FileShareConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IFileShareConfig} message FileShareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileShareConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.capacityGb != null && Object.hasOwnProperty.call(message, "capacityGb"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.capacityGb);
+ if (message.nfsExportOptions != null && message.nfsExportOptions.length)
+ for (var i = 0; i < message.nfsExportOptions.length; ++i)
+ $root.google.cloud.filestore.v1beta1.NfsExportOptions.encode(message.nfsExportOptions[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.sourceBackup);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileShareConfig message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.FileShareConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IFileShareConfig} message FileShareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileShareConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.FileShareConfig} FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileShareConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.FileShareConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.capacityGb = reader.int64();
+ break;
+ }
+ case 9: {
+ message.sourceBackup = reader.string();
+ break;
+ }
+ case 8: {
+ if (!(message.nfsExportOptions && message.nfsExportOptions.length))
+ message.nfsExportOptions = [];
+ message.nfsExportOptions.push($root.google.cloud.filestore.v1beta1.NfsExportOptions.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileShareConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.FileShareConfig} FileShareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileShareConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileShareConfig message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileShareConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (!$util.isInteger(message.capacityGb) && !(message.capacityGb && $util.isInteger(message.capacityGb.low) && $util.isInteger(message.capacityGb.high)))
+ return "capacityGb: integer|Long expected";
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ properties.source = 1;
+ if (!$util.isString(message.sourceBackup))
+ return "sourceBackup: string expected";
+ }
+ if (message.nfsExportOptions != null && message.hasOwnProperty("nfsExportOptions")) {
+ if (!Array.isArray(message.nfsExportOptions))
+ return "nfsExportOptions: array expected";
+ for (var i = 0; i < message.nfsExportOptions.length; ++i) {
+ var error = $root.google.cloud.filestore.v1beta1.NfsExportOptions.verify(message.nfsExportOptions[i]);
+ if (error)
+ return "nfsExportOptions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FileShareConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.FileShareConfig} FileShareConfig
+ */
+ FileShareConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.FileShareConfig)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.FileShareConfig();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.capacityGb != null)
+ if ($util.Long)
+ (message.capacityGb = $util.Long.fromValue(object.capacityGb)).unsigned = false;
+ else if (typeof object.capacityGb === "string")
+ message.capacityGb = parseInt(object.capacityGb, 10);
+ else if (typeof object.capacityGb === "number")
+ message.capacityGb = object.capacityGb;
+ else if (typeof object.capacityGb === "object")
+ message.capacityGb = new $util.LongBits(object.capacityGb.low >>> 0, object.capacityGb.high >>> 0).toNumber();
+ if (object.sourceBackup != null)
+ message.sourceBackup = String(object.sourceBackup);
+ if (object.nfsExportOptions) {
+ if (!Array.isArray(object.nfsExportOptions))
+ throw TypeError(".google.cloud.filestore.v1beta1.FileShareConfig.nfsExportOptions: array expected");
+ message.nfsExportOptions = [];
+ for (var i = 0; i < object.nfsExportOptions.length; ++i) {
+ if (typeof object.nfsExportOptions[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.FileShareConfig.nfsExportOptions: object expected");
+ message.nfsExportOptions[i] = $root.google.cloud.filestore.v1beta1.NfsExportOptions.fromObject(object.nfsExportOptions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FileShareConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {google.cloud.filestore.v1beta1.FileShareConfig} message FileShareConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FileShareConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.nfsExportOptions = [];
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.capacityGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.capacityGb = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (typeof message.capacityGb === "number")
+ object.capacityGb = options.longs === String ? String(message.capacityGb) : message.capacityGb;
+ else
+ object.capacityGb = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGb) : options.longs === Number ? new $util.LongBits(message.capacityGb.low >>> 0, message.capacityGb.high >>> 0).toNumber() : message.capacityGb;
+ if (message.nfsExportOptions && message.nfsExportOptions.length) {
+ object.nfsExportOptions = [];
+ for (var j = 0; j < message.nfsExportOptions.length; ++j)
+ object.nfsExportOptions[j] = $root.google.cloud.filestore.v1beta1.NfsExportOptions.toObject(message.nfsExportOptions[j], options);
+ }
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ object.sourceBackup = message.sourceBackup;
+ if (options.oneofs)
+ object.source = "sourceBackup";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FileShareConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FileShareConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FileShareConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.FileShareConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FileShareConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.FileShareConfig";
+ };
+
+ return FileShareConfig;
+ })();
+
+ v1beta1.NfsExportOptions = (function() {
+
+ /**
+ * Properties of a NfsExportOptions.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface INfsExportOptions
+ * @property {Array.|null} [ipRanges] NfsExportOptions ipRanges
+ * @property {google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode|null} [accessMode] NfsExportOptions accessMode
+ * @property {google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode|null} [squashMode] NfsExportOptions squashMode
+ * @property {number|Long|null} [anonUid] NfsExportOptions anonUid
+ * @property {number|Long|null} [anonGid] NfsExportOptions anonGid
+ */
+
+ /**
+ * Constructs a new NfsExportOptions.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a NfsExportOptions.
+ * @implements INfsExportOptions
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.INfsExportOptions=} [properties] Properties to set
+ */
+ function NfsExportOptions(properties) {
+ this.ipRanges = [];
+ 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]];
+ }
+
+ /**
+ * NfsExportOptions ipRanges.
+ * @member {Array.} ipRanges
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.ipRanges = $util.emptyArray;
+
+ /**
+ * NfsExportOptions accessMode.
+ * @member {google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode} accessMode
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.accessMode = 0;
+
+ /**
+ * NfsExportOptions squashMode.
+ * @member {google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode} squashMode
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.squashMode = 0;
+
+ /**
+ * NfsExportOptions anonUid.
+ * @member {number|Long} anonUid
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.anonUid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * NfsExportOptions anonGid.
+ * @member {number|Long} anonGid
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @instance
+ */
+ NfsExportOptions.prototype.anonGid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new NfsExportOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1beta1.INfsExportOptions=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.NfsExportOptions} NfsExportOptions instance
+ */
+ NfsExportOptions.create = function create(properties) {
+ return new NfsExportOptions(properties);
+ };
+
+ /**
+ * Encodes the specified NfsExportOptions message. Does not implicitly {@link google.cloud.filestore.v1beta1.NfsExportOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1beta1.INfsExportOptions} message NfsExportOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NfsExportOptions.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.ipRanges != null && message.ipRanges.length)
+ for (var i = 0; i < message.ipRanges.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.ipRanges[i]);
+ if (message.accessMode != null && Object.hasOwnProperty.call(message, "accessMode"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.accessMode);
+ if (message.squashMode != null && Object.hasOwnProperty.call(message, "squashMode"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.squashMode);
+ if (message.anonUid != null && Object.hasOwnProperty.call(message, "anonUid"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.anonUid);
+ if (message.anonGid != null && Object.hasOwnProperty.call(message, "anonGid"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.anonGid);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NfsExportOptions message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.NfsExportOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1beta1.INfsExportOptions} message NfsExportOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NfsExportOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.NfsExportOptions} NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NfsExportOptions.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.NfsExportOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.ipRanges && message.ipRanges.length))
+ message.ipRanges = [];
+ message.ipRanges.push(reader.string());
+ break;
+ }
+ case 2: {
+ message.accessMode = reader.int32();
+ break;
+ }
+ case 3: {
+ message.squashMode = reader.int32();
+ break;
+ }
+ case 4: {
+ message.anonUid = reader.int64();
+ break;
+ }
+ case 5: {
+ message.anonGid = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NfsExportOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.NfsExportOptions} NfsExportOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NfsExportOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NfsExportOptions message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NfsExportOptions.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.ipRanges != null && message.hasOwnProperty("ipRanges")) {
+ if (!Array.isArray(message.ipRanges))
+ return "ipRanges: array expected";
+ for (var i = 0; i < message.ipRanges.length; ++i)
+ if (!$util.isString(message.ipRanges[i]))
+ return "ipRanges: string[] expected";
+ }
+ if (message.accessMode != null && message.hasOwnProperty("accessMode"))
+ switch (message.accessMode) {
+ default:
+ return "accessMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.squashMode != null && message.hasOwnProperty("squashMode"))
+ switch (message.squashMode) {
+ default:
+ return "squashMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.anonUid != null && message.hasOwnProperty("anonUid"))
+ if (!$util.isInteger(message.anonUid) && !(message.anonUid && $util.isInteger(message.anonUid.low) && $util.isInteger(message.anonUid.high)))
+ return "anonUid: integer|Long expected";
+ if (message.anonGid != null && message.hasOwnProperty("anonGid"))
+ if (!$util.isInteger(message.anonGid) && !(message.anonGid && $util.isInteger(message.anonGid.low) && $util.isInteger(message.anonGid.high)))
+ return "anonGid: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a NfsExportOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.NfsExportOptions} NfsExportOptions
+ */
+ NfsExportOptions.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.NfsExportOptions)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.NfsExportOptions();
+ if (object.ipRanges) {
+ if (!Array.isArray(object.ipRanges))
+ throw TypeError(".google.cloud.filestore.v1beta1.NfsExportOptions.ipRanges: array expected");
+ message.ipRanges = [];
+ for (var i = 0; i < object.ipRanges.length; ++i)
+ message.ipRanges[i] = String(object.ipRanges[i]);
+ }
+ switch (object.accessMode) {
+ default:
+ if (typeof object.accessMode === "number") {
+ message.accessMode = object.accessMode;
+ break;
+ }
+ break;
+ case "ACCESS_MODE_UNSPECIFIED":
+ case 0:
+ message.accessMode = 0;
+ break;
+ case "READ_ONLY":
+ case 1:
+ message.accessMode = 1;
+ break;
+ case "READ_WRITE":
+ case 2:
+ message.accessMode = 2;
+ break;
+ }
+ switch (object.squashMode) {
+ default:
+ if (typeof object.squashMode === "number") {
+ message.squashMode = object.squashMode;
+ break;
+ }
+ break;
+ case "SQUASH_MODE_UNSPECIFIED":
+ case 0:
+ message.squashMode = 0;
+ break;
+ case "NO_ROOT_SQUASH":
+ case 1:
+ message.squashMode = 1;
+ break;
+ case "ROOT_SQUASH":
+ case 2:
+ message.squashMode = 2;
+ break;
+ }
+ if (object.anonUid != null)
+ if ($util.Long)
+ (message.anonUid = $util.Long.fromValue(object.anonUid)).unsigned = false;
+ else if (typeof object.anonUid === "string")
+ message.anonUid = parseInt(object.anonUid, 10);
+ else if (typeof object.anonUid === "number")
+ message.anonUid = object.anonUid;
+ else if (typeof object.anonUid === "object")
+ message.anonUid = new $util.LongBits(object.anonUid.low >>> 0, object.anonUid.high >>> 0).toNumber();
+ if (object.anonGid != null)
+ if ($util.Long)
+ (message.anonGid = $util.Long.fromValue(object.anonGid)).unsigned = false;
+ else if (typeof object.anonGid === "string")
+ message.anonGid = parseInt(object.anonGid, 10);
+ else if (typeof object.anonGid === "number")
+ message.anonGid = object.anonGid;
+ else if (typeof object.anonGid === "object")
+ message.anonGid = new $util.LongBits(object.anonGid.low >>> 0, object.anonGid.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NfsExportOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {google.cloud.filestore.v1beta1.NfsExportOptions} message NfsExportOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NfsExportOptions.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.ipRanges = [];
+ if (options.defaults) {
+ object.accessMode = options.enums === String ? "ACCESS_MODE_UNSPECIFIED" : 0;
+ object.squashMode = options.enums === String ? "SQUASH_MODE_UNSPECIFIED" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.anonUid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.anonUid = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.anonGid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.anonGid = options.longs === String ? "0" : 0;
+ }
+ if (message.ipRanges && message.ipRanges.length) {
+ object.ipRanges = [];
+ for (var j = 0; j < message.ipRanges.length; ++j)
+ object.ipRanges[j] = message.ipRanges[j];
+ }
+ if (message.accessMode != null && message.hasOwnProperty("accessMode"))
+ object.accessMode = options.enums === String ? $root.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode[message.accessMode] === undefined ? message.accessMode : $root.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode[message.accessMode] : message.accessMode;
+ if (message.squashMode != null && message.hasOwnProperty("squashMode"))
+ object.squashMode = options.enums === String ? $root.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode[message.squashMode] === undefined ? message.squashMode : $root.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode[message.squashMode] : message.squashMode;
+ if (message.anonUid != null && message.hasOwnProperty("anonUid"))
+ if (typeof message.anonUid === "number")
+ object.anonUid = options.longs === String ? String(message.anonUid) : message.anonUid;
+ else
+ object.anonUid = options.longs === String ? $util.Long.prototype.toString.call(message.anonUid) : options.longs === Number ? new $util.LongBits(message.anonUid.low >>> 0, message.anonUid.high >>> 0).toNumber() : message.anonUid;
+ if (message.anonGid != null && message.hasOwnProperty("anonGid"))
+ if (typeof message.anonGid === "number")
+ object.anonGid = options.longs === String ? String(message.anonGid) : message.anonGid;
+ else
+ object.anonGid = options.longs === String ? $util.Long.prototype.toString.call(message.anonGid) : options.longs === Number ? new $util.LongBits(message.anonGid.low >>> 0, message.anonGid.high >>> 0).toNumber() : message.anonGid;
+ return object;
+ };
+
+ /**
+ * Converts this NfsExportOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NfsExportOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NfsExportOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.NfsExportOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NfsExportOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.NfsExportOptions";
+ };
+
+ /**
+ * AccessMode enum.
+ * @name google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode
+ * @enum {number}
+ * @property {number} ACCESS_MODE_UNSPECIFIED=0 ACCESS_MODE_UNSPECIFIED value
+ * @property {number} READ_ONLY=1 READ_ONLY value
+ * @property {number} READ_WRITE=2 READ_WRITE value
+ */
+ NfsExportOptions.AccessMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ACCESS_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "READ_ONLY"] = 1;
+ values[valuesById[2] = "READ_WRITE"] = 2;
+ return values;
+ })();
+
+ /**
+ * SquashMode enum.
+ * @name google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode
+ * @enum {number}
+ * @property {number} SQUASH_MODE_UNSPECIFIED=0 SQUASH_MODE_UNSPECIFIED value
+ * @property {number} NO_ROOT_SQUASH=1 NO_ROOT_SQUASH value
+ * @property {number} ROOT_SQUASH=2 ROOT_SQUASH value
+ */
+ NfsExportOptions.SquashMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SQUASH_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NO_ROOT_SQUASH"] = 1;
+ values[valuesById[2] = "ROOT_SQUASH"] = 2;
+ return values;
+ })();
+
+ return NfsExportOptions;
+ })();
+
+ v1beta1.Instance = (function() {
+
+ /**
+ * Properties of an Instance.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IInstance
+ * @property {string|null} [name] Instance name
+ * @property {string|null} [description] Instance description
+ * @property {google.cloud.filestore.v1beta1.Instance.State|null} [state] Instance state
+ * @property {string|null} [statusMessage] Instance statusMessage
+ * @property {google.protobuf.ITimestamp|null} [createTime] Instance createTime
+ * @property {google.cloud.filestore.v1beta1.Instance.Tier|null} [tier] Instance tier
+ * @property {Object.|null} [labels] Instance labels
+ * @property {Array.|null} [fileShares] Instance fileShares
+ * @property {Array.|null} [networks] Instance networks
+ * @property {string|null} [etag] Instance etag
+ * @property {google.protobuf.IBoolValue|null} [satisfiesPzs] Instance satisfiesPzs
+ * @property {string|null} [kmsKeyName] Instance kmsKeyName
+ * @property {Array.|null} [suspensionReasons] Instance suspensionReasons
+ * @property {number|Long|null} [maxCapacityGb] Instance maxCapacityGb
+ * @property {number|Long|null} [capacityStepSizeGb] Instance capacityStepSizeGb
+ * @property {number|Long|null} [maxShareCount] Instance maxShareCount
+ * @property {number|Long|null} [capacityGb] Instance capacityGb
+ * @property {boolean|null} [multiShareEnabled] Instance multiShareEnabled
+ */
+
+ /**
+ * Constructs a new Instance.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents an Instance.
+ * @implements IInstance
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IInstance=} [properties] Properties to set
+ */
+ function Instance(properties) {
+ this.labels = {};
+ this.fileShares = [];
+ this.networks = [];
+ this.suspensionReasons = [];
+ 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]];
+ }
+
+ /**
+ * Instance name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.name = "";
+
+ /**
+ * Instance description.
+ * @member {string} description
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.description = "";
+
+ /**
+ * Instance state.
+ * @member {google.cloud.filestore.v1beta1.Instance.State} state
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.state = 0;
+
+ /**
+ * Instance statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.statusMessage = "";
+
+ /**
+ * Instance createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.createTime = null;
+
+ /**
+ * Instance tier.
+ * @member {google.cloud.filestore.v1beta1.Instance.Tier} tier
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.tier = 0;
+
+ /**
+ * Instance labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.labels = $util.emptyObject;
+
+ /**
+ * Instance fileShares.
+ * @member {Array.} fileShares
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.fileShares = $util.emptyArray;
+
+ /**
+ * Instance networks.
+ * @member {Array.} networks
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.networks = $util.emptyArray;
+
+ /**
+ * Instance etag.
+ * @member {string} etag
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.etag = "";
+
+ /**
+ * Instance satisfiesPzs.
+ * @member {google.protobuf.IBoolValue|null|undefined} satisfiesPzs
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.satisfiesPzs = null;
+
+ /**
+ * Instance kmsKeyName.
+ * @member {string} kmsKeyName
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.kmsKeyName = "";
+
+ /**
+ * Instance suspensionReasons.
+ * @member {Array.} suspensionReasons
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.suspensionReasons = $util.emptyArray;
+
+ /**
+ * Instance maxCapacityGb.
+ * @member {number|Long} maxCapacityGb
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.maxCapacityGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Instance capacityStepSizeGb.
+ * @member {number|Long} capacityStepSizeGb
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.capacityStepSizeGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Instance maxShareCount.
+ * @member {number|Long} maxShareCount
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.maxShareCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Instance capacityGb.
+ * @member {number|Long} capacityGb
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.capacityGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Instance multiShareEnabled.
+ * @member {boolean} multiShareEnabled
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ */
+ Instance.prototype.multiShareEnabled = false;
+
+ /**
+ * Creates a new Instance instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IInstance=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.Instance} Instance instance
+ */
+ Instance.create = function create(properties) {
+ return new Instance(properties);
+ };
+
+ /**
+ * Encodes the specified Instance message. Does not implicitly {@link google.cloud.filestore.v1beta1.Instance.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IInstance} message Instance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Instance.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.statusMessage);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.tier != null && Object.hasOwnProperty.call(message, "tier"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.tier);
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.fileShares != null && message.fileShares.length)
+ for (var i = 0; i < message.fileShares.length; ++i)
+ $root.google.cloud.filestore.v1beta1.FileShareConfig.encode(message.fileShares[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.networks != null && message.networks.length)
+ for (var i = 0; i < message.networks.length; ++i)
+ $root.google.cloud.filestore.v1beta1.NetworkConfig.encode(message.networks[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.etag);
+ if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs"))
+ $root.google.protobuf.BoolValue.encode(message.satisfiesPzs, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.kmsKeyName);
+ if (message.suspensionReasons != null && message.suspensionReasons.length) {
+ writer.uint32(/* id 15, wireType 2 =*/122).fork();
+ for (var i = 0; i < message.suspensionReasons.length; ++i)
+ writer.int32(message.suspensionReasons[i]);
+ writer.ldelim();
+ }
+ if (message.maxCapacityGb != null && Object.hasOwnProperty.call(message, "maxCapacityGb"))
+ writer.uint32(/* id 16, wireType 0 =*/128).int64(message.maxCapacityGb);
+ if (message.capacityStepSizeGb != null && Object.hasOwnProperty.call(message, "capacityStepSizeGb"))
+ writer.uint32(/* id 17, wireType 0 =*/136).int64(message.capacityStepSizeGb);
+ if (message.maxShareCount != null && Object.hasOwnProperty.call(message, "maxShareCount"))
+ writer.uint32(/* id 18, wireType 0 =*/144).int64(message.maxShareCount);
+ if (message.capacityGb != null && Object.hasOwnProperty.call(message, "capacityGb"))
+ writer.uint32(/* id 19, wireType 0 =*/152).int64(message.capacityGb);
+ if (message.multiShareEnabled != null && Object.hasOwnProperty.call(message, "multiShareEnabled"))
+ writer.uint32(/* id 20, wireType 0 =*/160).bool(message.multiShareEnabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Instance message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.Instance.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IInstance} message Instance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Instance.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.Instance} Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Instance.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.Instance(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 6: {
+ message.statusMessage = reader.string();
+ break;
+ }
+ case 7: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.tier = reader.int32();
+ break;
+ }
+ case 9: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 10: {
+ if (!(message.fileShares && message.fileShares.length))
+ message.fileShares = [];
+ message.fileShares.push($root.google.cloud.filestore.v1beta1.FileShareConfig.decode(reader, reader.uint32()));
+ break;
+ }
+ case 11: {
+ if (!(message.networks && message.networks.length))
+ message.networks = [];
+ message.networks.push($root.google.cloud.filestore.v1beta1.NetworkConfig.decode(reader, reader.uint32()));
+ break;
+ }
+ case 12: {
+ message.etag = reader.string();
+ break;
+ }
+ case 13: {
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
+ break;
+ }
+ case 14: {
+ message.kmsKeyName = reader.string();
+ break;
+ }
+ case 15: {
+ if (!(message.suspensionReasons && message.suspensionReasons.length))
+ message.suspensionReasons = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.suspensionReasons.push(reader.int32());
+ } else
+ message.suspensionReasons.push(reader.int32());
+ break;
+ }
+ case 16: {
+ message.maxCapacityGb = reader.int64();
+ break;
+ }
+ case 17: {
+ message.capacityStepSizeGb = reader.int64();
+ break;
+ }
+ case 18: {
+ message.maxShareCount = reader.int64();
+ break;
+ }
+ case 19: {
+ message.capacityGb = reader.int64();
+ break;
+ }
+ case 20: {
+ message.multiShareEnabled = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.Instance} Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Instance.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Instance message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Instance.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ break;
+ }
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.tier != null && message.hasOwnProperty("tier"))
+ switch (message.tier) {
+ default:
+ return "tier: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.fileShares != null && message.hasOwnProperty("fileShares")) {
+ if (!Array.isArray(message.fileShares))
+ return "fileShares: array expected";
+ for (var i = 0; i < message.fileShares.length; ++i) {
+ var error = $root.google.cloud.filestore.v1beta1.FileShareConfig.verify(message.fileShares[i]);
+ if (error)
+ return "fileShares." + error;
+ }
+ }
+ if (message.networks != null && message.hasOwnProperty("networks")) {
+ if (!Array.isArray(message.networks))
+ return "networks: array expected";
+ for (var i = 0; i < message.networks.length; ++i) {
+ var error = $root.google.cloud.filestore.v1beta1.NetworkConfig.verify(message.networks[i]);
+ if (error)
+ return "networks." + error;
+ }
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.satisfiesPzs);
+ if (error)
+ return "satisfiesPzs." + error;
+ }
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ if (!$util.isString(message.kmsKeyName))
+ return "kmsKeyName: string expected";
+ if (message.suspensionReasons != null && message.hasOwnProperty("suspensionReasons")) {
+ if (!Array.isArray(message.suspensionReasons))
+ return "suspensionReasons: array expected";
+ for (var i = 0; i < message.suspensionReasons.length; ++i)
+ switch (message.suspensionReasons[i]) {
+ default:
+ return "suspensionReasons: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ if (message.maxCapacityGb != null && message.hasOwnProperty("maxCapacityGb"))
+ if (!$util.isInteger(message.maxCapacityGb) && !(message.maxCapacityGb && $util.isInteger(message.maxCapacityGb.low) && $util.isInteger(message.maxCapacityGb.high)))
+ return "maxCapacityGb: integer|Long expected";
+ if (message.capacityStepSizeGb != null && message.hasOwnProperty("capacityStepSizeGb"))
+ if (!$util.isInteger(message.capacityStepSizeGb) && !(message.capacityStepSizeGb && $util.isInteger(message.capacityStepSizeGb.low) && $util.isInteger(message.capacityStepSizeGb.high)))
+ return "capacityStepSizeGb: integer|Long expected";
+ if (message.maxShareCount != null && message.hasOwnProperty("maxShareCount"))
+ if (!$util.isInteger(message.maxShareCount) && !(message.maxShareCount && $util.isInteger(message.maxShareCount.low) && $util.isInteger(message.maxShareCount.high)))
+ return "maxShareCount: integer|Long expected";
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (!$util.isInteger(message.capacityGb) && !(message.capacityGb && $util.isInteger(message.capacityGb.low) && $util.isInteger(message.capacityGb.high)))
+ return "capacityGb: integer|Long expected";
+ if (message.multiShareEnabled != null && message.hasOwnProperty("multiShareEnabled"))
+ if (typeof message.multiShareEnabled !== "boolean")
+ return "multiShareEnabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an Instance message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.Instance} Instance
+ */
+ Instance.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.Instance)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.Instance();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "READY":
+ case 2:
+ message.state = 2;
+ break;
+ case "REPAIRING":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ case "ERROR":
+ case 6:
+ message.state = 6;
+ break;
+ case "RESTORING":
+ case 7:
+ message.state = 7;
+ break;
+ case "SUSPENDED":
+ case 8:
+ message.state = 8;
+ break;
+ case "REVERTING":
+ case 9:
+ message.state = 9;
+ break;
+ case "SUSPENDING":
+ case 10:
+ message.state = 10;
+ break;
+ case "RESUMING":
+ case 11:
+ message.state = 11;
+ break;
+ }
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ switch (object.tier) {
+ default:
+ if (typeof object.tier === "number") {
+ message.tier = object.tier;
+ break;
+ }
+ break;
+ case "TIER_UNSPECIFIED":
+ case 0:
+ message.tier = 0;
+ break;
+ case "STANDARD":
+ case 1:
+ message.tier = 1;
+ break;
+ case "PREMIUM":
+ case 2:
+ message.tier = 2;
+ break;
+ case "BASIC_HDD":
+ case 3:
+ message.tier = 3;
+ break;
+ case "BASIC_SSD":
+ case 4:
+ message.tier = 4;
+ break;
+ case "HIGH_SCALE_SSD":
+ case 6:
+ message.tier = 6;
+ break;
+ case "ENTERPRISE":
+ case 7:
+ message.tier = 7;
+ break;
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.fileShares) {
+ if (!Array.isArray(object.fileShares))
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.fileShares: array expected");
+ message.fileShares = [];
+ for (var i = 0; i < object.fileShares.length; ++i) {
+ if (typeof object.fileShares[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.fileShares: object expected");
+ message.fileShares[i] = $root.google.cloud.filestore.v1beta1.FileShareConfig.fromObject(object.fileShares[i]);
+ }
+ }
+ if (object.networks) {
+ if (!Array.isArray(object.networks))
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.networks: array expected");
+ message.networks = [];
+ for (var i = 0; i < object.networks.length; ++i) {
+ if (typeof object.networks[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.networks: object expected");
+ message.networks[i] = $root.google.cloud.filestore.v1beta1.NetworkConfig.fromObject(object.networks[i]);
+ }
+ }
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ if (object.satisfiesPzs != null) {
+ if (typeof object.satisfiesPzs !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.satisfiesPzs: object expected");
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.fromObject(object.satisfiesPzs);
+ }
+ if (object.kmsKeyName != null)
+ message.kmsKeyName = String(object.kmsKeyName);
+ if (object.suspensionReasons) {
+ if (!Array.isArray(object.suspensionReasons))
+ throw TypeError(".google.cloud.filestore.v1beta1.Instance.suspensionReasons: array expected");
+ message.suspensionReasons = [];
+ for (var i = 0; i < object.suspensionReasons.length; ++i)
+ switch (object.suspensionReasons[i]) {
+ default:
+ if (typeof object.suspensionReasons[i] === "number") {
+ message.suspensionReasons[i] = object.suspensionReasons[i];
+ break;
+ }
+ case "SUSPENSION_REASON_UNSPECIFIED":
+ case 0:
+ message.suspensionReasons[i] = 0;
+ break;
+ case "KMS_KEY_ISSUE":
+ case 1:
+ message.suspensionReasons[i] = 1;
+ break;
+ }
+ }
+ if (object.maxCapacityGb != null)
+ if ($util.Long)
+ (message.maxCapacityGb = $util.Long.fromValue(object.maxCapacityGb)).unsigned = false;
+ else if (typeof object.maxCapacityGb === "string")
+ message.maxCapacityGb = parseInt(object.maxCapacityGb, 10);
+ else if (typeof object.maxCapacityGb === "number")
+ message.maxCapacityGb = object.maxCapacityGb;
+ else if (typeof object.maxCapacityGb === "object")
+ message.maxCapacityGb = new $util.LongBits(object.maxCapacityGb.low >>> 0, object.maxCapacityGb.high >>> 0).toNumber();
+ if (object.capacityStepSizeGb != null)
+ if ($util.Long)
+ (message.capacityStepSizeGb = $util.Long.fromValue(object.capacityStepSizeGb)).unsigned = false;
+ else if (typeof object.capacityStepSizeGb === "string")
+ message.capacityStepSizeGb = parseInt(object.capacityStepSizeGb, 10);
+ else if (typeof object.capacityStepSizeGb === "number")
+ message.capacityStepSizeGb = object.capacityStepSizeGb;
+ else if (typeof object.capacityStepSizeGb === "object")
+ message.capacityStepSizeGb = new $util.LongBits(object.capacityStepSizeGb.low >>> 0, object.capacityStepSizeGb.high >>> 0).toNumber();
+ if (object.maxShareCount != null)
+ if ($util.Long)
+ (message.maxShareCount = $util.Long.fromValue(object.maxShareCount)).unsigned = false;
+ else if (typeof object.maxShareCount === "string")
+ message.maxShareCount = parseInt(object.maxShareCount, 10);
+ else if (typeof object.maxShareCount === "number")
+ message.maxShareCount = object.maxShareCount;
+ else if (typeof object.maxShareCount === "object")
+ message.maxShareCount = new $util.LongBits(object.maxShareCount.low >>> 0, object.maxShareCount.high >>> 0).toNumber();
+ if (object.capacityGb != null)
+ if ($util.Long)
+ (message.capacityGb = $util.Long.fromValue(object.capacityGb)).unsigned = false;
+ else if (typeof object.capacityGb === "string")
+ message.capacityGb = parseInt(object.capacityGb, 10);
+ else if (typeof object.capacityGb === "number")
+ message.capacityGb = object.capacityGb;
+ else if (typeof object.capacityGb === "object")
+ message.capacityGb = new $util.LongBits(object.capacityGb.low >>> 0, object.capacityGb.high >>> 0).toNumber();
+ if (object.multiShareEnabled != null)
+ message.multiShareEnabled = Boolean(object.multiShareEnabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Instance message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {google.cloud.filestore.v1beta1.Instance} message Instance
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Instance.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.fileShares = [];
+ object.networks = [];
+ object.suspensionReasons = [];
+ }
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.statusMessage = "";
+ object.createTime = null;
+ object.tier = options.enums === String ? "TIER_UNSPECIFIED" : 0;
+ object.etag = "";
+ object.satisfiesPzs = null;
+ object.kmsKeyName = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.maxCapacityGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.maxCapacityGb = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.capacityStepSizeGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.capacityStepSizeGb = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.maxShareCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.maxShareCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.capacityGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.capacityGb = options.longs === String ? "0" : 0;
+ object.multiShareEnabled = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.filestore.v1beta1.Instance.State[message.state] === undefined ? message.state : $root.google.cloud.filestore.v1beta1.Instance.State[message.state] : message.state;
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.tier != null && message.hasOwnProperty("tier"))
+ object.tier = options.enums === String ? $root.google.cloud.filestore.v1beta1.Instance.Tier[message.tier] === undefined ? message.tier : $root.google.cloud.filestore.v1beta1.Instance.Tier[message.tier] : message.tier;
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.fileShares && message.fileShares.length) {
+ object.fileShares = [];
+ for (var j = 0; j < message.fileShares.length; ++j)
+ object.fileShares[j] = $root.google.cloud.filestore.v1beta1.FileShareConfig.toObject(message.fileShares[j], options);
+ }
+ if (message.networks && message.networks.length) {
+ object.networks = [];
+ for (var j = 0; j < message.networks.length; ++j)
+ object.networks[j] = $root.google.cloud.filestore.v1beta1.NetworkConfig.toObject(message.networks[j], options);
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs"))
+ object.satisfiesPzs = $root.google.protobuf.BoolValue.toObject(message.satisfiesPzs, options);
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ object.kmsKeyName = message.kmsKeyName;
+ if (message.suspensionReasons && message.suspensionReasons.length) {
+ object.suspensionReasons = [];
+ for (var j = 0; j < message.suspensionReasons.length; ++j)
+ object.suspensionReasons[j] = options.enums === String ? $root.google.cloud.filestore.v1beta1.Instance.SuspensionReason[message.suspensionReasons[j]] === undefined ? message.suspensionReasons[j] : $root.google.cloud.filestore.v1beta1.Instance.SuspensionReason[message.suspensionReasons[j]] : message.suspensionReasons[j];
+ }
+ if (message.maxCapacityGb != null && message.hasOwnProperty("maxCapacityGb"))
+ if (typeof message.maxCapacityGb === "number")
+ object.maxCapacityGb = options.longs === String ? String(message.maxCapacityGb) : message.maxCapacityGb;
+ else
+ object.maxCapacityGb = options.longs === String ? $util.Long.prototype.toString.call(message.maxCapacityGb) : options.longs === Number ? new $util.LongBits(message.maxCapacityGb.low >>> 0, message.maxCapacityGb.high >>> 0).toNumber() : message.maxCapacityGb;
+ if (message.capacityStepSizeGb != null && message.hasOwnProperty("capacityStepSizeGb"))
+ if (typeof message.capacityStepSizeGb === "number")
+ object.capacityStepSizeGb = options.longs === String ? String(message.capacityStepSizeGb) : message.capacityStepSizeGb;
+ else
+ object.capacityStepSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.capacityStepSizeGb) : options.longs === Number ? new $util.LongBits(message.capacityStepSizeGb.low >>> 0, message.capacityStepSizeGb.high >>> 0).toNumber() : message.capacityStepSizeGb;
+ if (message.maxShareCount != null && message.hasOwnProperty("maxShareCount"))
+ if (typeof message.maxShareCount === "number")
+ object.maxShareCount = options.longs === String ? String(message.maxShareCount) : message.maxShareCount;
+ else
+ object.maxShareCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxShareCount) : options.longs === Number ? new $util.LongBits(message.maxShareCount.low >>> 0, message.maxShareCount.high >>> 0).toNumber() : message.maxShareCount;
+ if (message.capacityGb != null && message.hasOwnProperty("capacityGb"))
+ if (typeof message.capacityGb === "number")
+ object.capacityGb = options.longs === String ? String(message.capacityGb) : message.capacityGb;
+ else
+ object.capacityGb = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGb) : options.longs === Number ? new $util.LongBits(message.capacityGb.low >>> 0, message.capacityGb.high >>> 0).toNumber() : message.capacityGb;
+ if (message.multiShareEnabled != null && message.hasOwnProperty("multiShareEnabled"))
+ object.multiShareEnabled = message.multiShareEnabled;
+ return object;
+ };
+
+ /**
+ * Converts this Instance to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Instance.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Instance
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.Instance
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Instance.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.Instance";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.filestore.v1beta1.Instance.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} READY=2 READY value
+ * @property {number} REPAIRING=3 REPAIRING value
+ * @property {number} DELETING=4 DELETING value
+ * @property {number} ERROR=6 ERROR value
+ * @property {number} RESTORING=7 RESTORING value
+ * @property {number} SUSPENDED=8 SUSPENDED value
+ * @property {number} REVERTING=9 REVERTING value
+ * @property {number} SUSPENDING=10 SUSPENDING value
+ * @property {number} RESUMING=11 RESUMING value
+ */
+ Instance.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "READY"] = 2;
+ values[valuesById[3] = "REPAIRING"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ values[valuesById[6] = "ERROR"] = 6;
+ values[valuesById[7] = "RESTORING"] = 7;
+ values[valuesById[8] = "SUSPENDED"] = 8;
+ values[valuesById[9] = "REVERTING"] = 9;
+ values[valuesById[10] = "SUSPENDING"] = 10;
+ values[valuesById[11] = "RESUMING"] = 11;
+ return values;
+ })();
+
+ /**
+ * Tier enum.
+ * @name google.cloud.filestore.v1beta1.Instance.Tier
+ * @enum {number}
+ * @property {number} TIER_UNSPECIFIED=0 TIER_UNSPECIFIED value
+ * @property {number} STANDARD=1 STANDARD value
+ * @property {number} PREMIUM=2 PREMIUM value
+ * @property {number} BASIC_HDD=3 BASIC_HDD value
+ * @property {number} BASIC_SSD=4 BASIC_SSD value
+ * @property {number} HIGH_SCALE_SSD=6 HIGH_SCALE_SSD value
+ * @property {number} ENTERPRISE=7 ENTERPRISE value
+ */
+ Instance.Tier = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TIER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "STANDARD"] = 1;
+ values[valuesById[2] = "PREMIUM"] = 2;
+ values[valuesById[3] = "BASIC_HDD"] = 3;
+ values[valuesById[4] = "BASIC_SSD"] = 4;
+ values[valuesById[6] = "HIGH_SCALE_SSD"] = 6;
+ values[valuesById[7] = "ENTERPRISE"] = 7;
+ return values;
+ })();
+
+ /**
+ * SuspensionReason enum.
+ * @name google.cloud.filestore.v1beta1.Instance.SuspensionReason
+ * @enum {number}
+ * @property {number} SUSPENSION_REASON_UNSPECIFIED=0 SUSPENSION_REASON_UNSPECIFIED value
+ * @property {number} KMS_KEY_ISSUE=1 KMS_KEY_ISSUE value
+ */
+ Instance.SuspensionReason = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SUSPENSION_REASON_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "KMS_KEY_ISSUE"] = 1;
+ return values;
+ })();
+
+ return Instance;
+ })();
+
+ v1beta1.CreateInstanceRequest = (function() {
+
+ /**
+ * Properties of a CreateInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface ICreateInstanceRequest
+ * @property {string|null} [parent] CreateInstanceRequest parent
+ * @property {string|null} [instanceId] CreateInstanceRequest instanceId
+ * @property {google.cloud.filestore.v1beta1.IInstance|null} [instance] CreateInstanceRequest instance
+ */
+
+ /**
+ * Constructs a new CreateInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a CreateInstanceRequest.
+ * @implements ICreateInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.ICreateInstanceRequest=} [properties] Properties to set
+ */
+ function CreateInstanceRequest(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]];
+ }
+
+ /**
+ * CreateInstanceRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.parent = "";
+
+ /**
+ * CreateInstanceRequest instanceId.
+ * @member {string} instanceId
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.instanceId = "";
+
+ /**
+ * CreateInstanceRequest instance.
+ * @member {google.cloud.filestore.v1beta1.IInstance|null|undefined} instance
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.instance = null;
+
+ /**
+ * Creates a new CreateInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ICreateInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.CreateInstanceRequest} CreateInstanceRequest instance
+ */
+ CreateInstanceRequest.create = function create(properties) {
+ return new CreateInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ICreateInstanceRequest} message CreateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.instanceId != null && Object.hasOwnProperty.call(message, "instanceId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceId);
+ if (message.instance != null && Object.hasOwnProperty.call(message, "instance"))
+ $root.google.cloud.filestore.v1beta1.Instance.encode(message.instance, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ICreateInstanceRequest} message CreateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.CreateInstanceRequest} CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.CreateInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.instanceId = reader.string();
+ break;
+ }
+ case 3: {
+ message.instance = $root.google.cloud.filestore.v1beta1.Instance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.CreateInstanceRequest} CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.instanceId != null && message.hasOwnProperty("instanceId"))
+ if (!$util.isString(message.instanceId))
+ return "instanceId: string expected";
+ if (message.instance != null && message.hasOwnProperty("instance")) {
+ var error = $root.google.cloud.filestore.v1beta1.Instance.verify(message.instance);
+ if (error)
+ return "instance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.CreateInstanceRequest} CreateInstanceRequest
+ */
+ CreateInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.CreateInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.CreateInstanceRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.instanceId != null)
+ message.instanceId = String(object.instanceId);
+ if (object.instance != null) {
+ if (typeof object.instance !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.CreateInstanceRequest.instance: object expected");
+ message.instance = $root.google.cloud.filestore.v1beta1.Instance.fromObject(object.instance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.CreateInstanceRequest} message CreateInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.instanceId = "";
+ object.instance = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.instanceId != null && message.hasOwnProperty("instanceId"))
+ object.instanceId = message.instanceId;
+ if (message.instance != null && message.hasOwnProperty("instance"))
+ object.instance = $root.google.cloud.filestore.v1beta1.Instance.toObject(message.instance, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.CreateInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.CreateInstanceRequest";
+ };
+
+ return CreateInstanceRequest;
+ })();
+
+ v1beta1.GetInstanceRequest = (function() {
+
+ /**
+ * Properties of a GetInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IGetInstanceRequest
+ * @property {string|null} [name] GetInstanceRequest name
+ */
+
+ /**
+ * Constructs a new GetInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a GetInstanceRequest.
+ * @implements IGetInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IGetInstanceRequest=} [properties] Properties to set
+ */
+ function GetInstanceRequest(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]];
+ }
+
+ /**
+ * GetInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @instance
+ */
+ GetInstanceRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IGetInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.GetInstanceRequest} GetInstanceRequest instance
+ */
+ GetInstanceRequest.create = function create(properties) {
+ return new GetInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.GetInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IGetInstanceRequest} message GetInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.GetInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IGetInstanceRequest} message GetInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.GetInstanceRequest} GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.GetInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.GetInstanceRequest} GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.GetInstanceRequest} GetInstanceRequest
+ */
+ GetInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.GetInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.GetInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.GetInstanceRequest} message GetInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.GetInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.GetInstanceRequest";
+ };
+
+ return GetInstanceRequest;
+ })();
+
+ v1beta1.UpdateInstanceRequest = (function() {
+
+ /**
+ * Properties of an UpdateInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IUpdateInstanceRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateInstanceRequest updateMask
+ * @property {google.cloud.filestore.v1beta1.IInstance|null} [instance] UpdateInstanceRequest instance
+ */
+
+ /**
+ * Constructs a new UpdateInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents an UpdateInstanceRequest.
+ * @implements IUpdateInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IUpdateInstanceRequest=} [properties] Properties to set
+ */
+ function UpdateInstanceRequest(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]];
+ }
+
+ /**
+ * UpdateInstanceRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @instance
+ */
+ UpdateInstanceRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateInstanceRequest instance.
+ * @member {google.cloud.filestore.v1beta1.IInstance|null|undefined} instance
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @instance
+ */
+ UpdateInstanceRequest.prototype.instance = null;
+
+ /**
+ * Creates a new UpdateInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IUpdateInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.UpdateInstanceRequest} UpdateInstanceRequest instance
+ */
+ UpdateInstanceRequest.create = function create(properties) {
+ return new UpdateInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.instance != null && Object.hasOwnProperty.call(message, "instance"))
+ $root.google.cloud.filestore.v1beta1.Instance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.UpdateInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IUpdateInstanceRequest} message UpdateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.UpdateInstanceRequest} UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.UpdateInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.instance = $root.google.cloud.filestore.v1beta1.Instance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.UpdateInstanceRequest} UpdateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.instance != null && message.hasOwnProperty("instance")) {
+ var error = $root.google.cloud.filestore.v1beta1.Instance.verify(message.instance);
+ if (error)
+ return "instance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.UpdateInstanceRequest} UpdateInstanceRequest
+ */
+ UpdateInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.UpdateInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.UpdateInstanceRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.UpdateInstanceRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.instance != null) {
+ if (typeof object.instance !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.UpdateInstanceRequest.instance: object expected");
+ message.instance = $root.google.cloud.filestore.v1beta1.Instance.fromObject(object.instance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.UpdateInstanceRequest} message UpdateInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.instance = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.instance != null && message.hasOwnProperty("instance"))
+ object.instance = $root.google.cloud.filestore.v1beta1.Instance.toObject(message.instance, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.UpdateInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.UpdateInstanceRequest";
+ };
+
+ return UpdateInstanceRequest;
+ })();
+
+ v1beta1.RestoreInstanceRequest = (function() {
+
+ /**
+ * Properties of a RestoreInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IRestoreInstanceRequest
+ * @property {string|null} [name] RestoreInstanceRequest name
+ * @property {string|null} [fileShare] RestoreInstanceRequest fileShare
+ * @property {string|null} [sourceSnapshot] RestoreInstanceRequest sourceSnapshot
+ * @property {string|null} [sourceBackup] RestoreInstanceRequest sourceBackup
+ */
+
+ /**
+ * Constructs a new RestoreInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a RestoreInstanceRequest.
+ * @implements IRestoreInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IRestoreInstanceRequest=} [properties] Properties to set
+ */
+ function RestoreInstanceRequest(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]];
+ }
+
+ /**
+ * RestoreInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @instance
+ */
+ RestoreInstanceRequest.prototype.name = "";
+
+ /**
+ * RestoreInstanceRequest fileShare.
+ * @member {string} fileShare
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @instance
+ */
+ RestoreInstanceRequest.prototype.fileShare = "";
+
+ /**
+ * RestoreInstanceRequest sourceSnapshot.
+ * @member {string|null|undefined} sourceSnapshot
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @instance
+ */
+ RestoreInstanceRequest.prototype.sourceSnapshot = null;
+
+ /**
+ * RestoreInstanceRequest sourceBackup.
+ * @member {string|null|undefined} sourceBackup
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @instance
+ */
+ RestoreInstanceRequest.prototype.sourceBackup = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * RestoreInstanceRequest source.
+ * @member {"sourceSnapshot"|"sourceBackup"|undefined} source
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @instance
+ */
+ Object.defineProperty(RestoreInstanceRequest.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["sourceSnapshot", "sourceBackup"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new RestoreInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IRestoreInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.RestoreInstanceRequest} RestoreInstanceRequest instance
+ */
+ RestoreInstanceRequest.create = function create(properties) {
+ return new RestoreInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.RestoreInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IRestoreInstanceRequest} message RestoreInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestoreInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.fileShare != null && Object.hasOwnProperty.call(message, "fileShare"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileShare);
+ if (message.sourceSnapshot != null && Object.hasOwnProperty.call(message, "sourceSnapshot"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceSnapshot);
+ if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.sourceBackup);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RestoreInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.RestoreInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IRestoreInstanceRequest} message RestoreInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestoreInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.RestoreInstanceRequest} RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestoreInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.RestoreInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.fileShare = reader.string();
+ break;
+ }
+ case 3: {
+ message.sourceSnapshot = reader.string();
+ break;
+ }
+ case 4: {
+ message.sourceBackup = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RestoreInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.RestoreInstanceRequest} RestoreInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestoreInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RestoreInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RestoreInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.fileShare != null && message.hasOwnProperty("fileShare"))
+ if (!$util.isString(message.fileShare))
+ return "fileShare: string expected";
+ if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) {
+ properties.source = 1;
+ if (!$util.isString(message.sourceSnapshot))
+ return "sourceSnapshot: string expected";
+ }
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ if (properties.source === 1)
+ return "source: multiple values";
+ properties.source = 1;
+ if (!$util.isString(message.sourceBackup))
+ return "sourceBackup: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RestoreInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.RestoreInstanceRequest} RestoreInstanceRequest
+ */
+ RestoreInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.RestoreInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.RestoreInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.fileShare != null)
+ message.fileShare = String(object.fileShare);
+ if (object.sourceSnapshot != null)
+ message.sourceSnapshot = String(object.sourceSnapshot);
+ if (object.sourceBackup != null)
+ message.sourceBackup = String(object.sourceBackup);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RestoreInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.RestoreInstanceRequest} message RestoreInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RestoreInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.fileShare = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.fileShare != null && message.hasOwnProperty("fileShare"))
+ object.fileShare = message.fileShare;
+ if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) {
+ object.sourceSnapshot = message.sourceSnapshot;
+ if (options.oneofs)
+ object.source = "sourceSnapshot";
+ }
+ if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) {
+ object.sourceBackup = message.sourceBackup;
+ if (options.oneofs)
+ object.source = "sourceBackup";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this RestoreInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RestoreInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RestoreInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.RestoreInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RestoreInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.RestoreInstanceRequest";
+ };
+
+ return RestoreInstanceRequest;
+ })();
+
+ v1beta1.RevertInstanceRequest = (function() {
+
+ /**
+ * Properties of a RevertInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IRevertInstanceRequest
+ * @property {string|null} [name] RevertInstanceRequest name
+ * @property {string|null} [targetSnapshotId] RevertInstanceRequest targetSnapshotId
+ */
+
+ /**
+ * Constructs a new RevertInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a RevertInstanceRequest.
+ * @implements IRevertInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IRevertInstanceRequest=} [properties] Properties to set
+ */
+ function RevertInstanceRequest(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]];
+ }
+
+ /**
+ * RevertInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @instance
+ */
+ RevertInstanceRequest.prototype.name = "";
+
+ /**
+ * RevertInstanceRequest targetSnapshotId.
+ * @member {string} targetSnapshotId
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @instance
+ */
+ RevertInstanceRequest.prototype.targetSnapshotId = "";
+
+ /**
+ * Creates a new RevertInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IRevertInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.RevertInstanceRequest} RevertInstanceRequest instance
+ */
+ RevertInstanceRequest.create = function create(properties) {
+ return new RevertInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RevertInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.RevertInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IRevertInstanceRequest} message RevertInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RevertInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.targetSnapshotId != null && Object.hasOwnProperty.call(message, "targetSnapshotId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetSnapshotId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RevertInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.RevertInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IRevertInstanceRequest} message RevertInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RevertInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RevertInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.RevertInstanceRequest} RevertInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RevertInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.RevertInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.targetSnapshotId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RevertInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.RevertInstanceRequest} RevertInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RevertInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RevertInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RevertInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.targetSnapshotId != null && message.hasOwnProperty("targetSnapshotId"))
+ if (!$util.isString(message.targetSnapshotId))
+ return "targetSnapshotId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a RevertInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.RevertInstanceRequest} RevertInstanceRequest
+ */
+ RevertInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.RevertInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.RevertInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.targetSnapshotId != null)
+ message.targetSnapshotId = String(object.targetSnapshotId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RevertInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.RevertInstanceRequest} message RevertInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RevertInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.targetSnapshotId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.targetSnapshotId != null && message.hasOwnProperty("targetSnapshotId"))
+ object.targetSnapshotId = message.targetSnapshotId;
+ return object;
+ };
+
+ /**
+ * Converts this RevertInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RevertInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RevertInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.RevertInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RevertInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.RevertInstanceRequest";
+ };
+
+ return RevertInstanceRequest;
+ })();
+
+ v1beta1.DeleteInstanceRequest = (function() {
+
+ /**
+ * Properties of a DeleteInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IDeleteInstanceRequest
+ * @property {string|null} [name] DeleteInstanceRequest name
+ * @property {boolean|null} [force] DeleteInstanceRequest force
+ */
+
+ /**
+ * Constructs a new DeleteInstanceRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a DeleteInstanceRequest.
+ * @implements IDeleteInstanceRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IDeleteInstanceRequest=} [properties] Properties to set
+ */
+ function DeleteInstanceRequest(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]];
+ }
+
+ /**
+ * DeleteInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @instance
+ */
+ DeleteInstanceRequest.prototype.name = "";
+
+ /**
+ * DeleteInstanceRequest force.
+ * @member {boolean} force
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @instance
+ */
+ DeleteInstanceRequest.prototype.force = false;
+
+ /**
+ * Creates a new DeleteInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IDeleteInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.DeleteInstanceRequest} DeleteInstanceRequest instance
+ */
+ DeleteInstanceRequest.create = function create(properties) {
+ return new DeleteInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IDeleteInstanceRequest} message DeleteInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteInstanceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.force != null && Object.hasOwnProperty.call(message, "force"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.DeleteInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IDeleteInstanceRequest} message DeleteInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.DeleteInstanceRequest} DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteInstanceRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.DeleteInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.force = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.DeleteInstanceRequest} DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteInstanceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.force != null && message.hasOwnProperty("force"))
+ if (typeof message.force !== "boolean")
+ return "force: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.DeleteInstanceRequest} DeleteInstanceRequest
+ */
+ DeleteInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.DeleteInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.DeleteInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.force != null)
+ message.force = Boolean(object.force);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.DeleteInstanceRequest} message DeleteInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.force = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.force != null && message.hasOwnProperty("force"))
+ object.force = message.force;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.DeleteInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.DeleteInstanceRequest";
+ };
+
+ return DeleteInstanceRequest;
+ })();
+
+ v1beta1.ListInstancesRequest = (function() {
+
+ /**
+ * Properties of a ListInstancesRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IListInstancesRequest
+ * @property {string|null} [parent] ListInstancesRequest parent
+ * @property {number|null} [pageSize] ListInstancesRequest pageSize
+ * @property {string|null} [pageToken] ListInstancesRequest pageToken
+ * @property {string|null} [orderBy] ListInstancesRequest orderBy
+ * @property {string|null} [filter] ListInstancesRequest filter
+ */
+
+ /**
+ * Constructs a new ListInstancesRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a ListInstancesRequest.
+ * @implements IListInstancesRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IListInstancesRequest=} [properties] Properties to set
+ */
+ function ListInstancesRequest(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]];
+ }
+
+ /**
+ * ListInstancesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.parent = "";
+
+ /**
+ * ListInstancesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListInstancesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.pageToken = "";
+
+ /**
+ * ListInstancesRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.orderBy = "";
+
+ /**
+ * ListInstancesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @instance
+ */
+ ListInstancesRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListInstancesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IListInstancesRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesRequest} ListInstancesRequest instance
+ */
+ ListInstancesRequest.create = function create(properties) {
+ return new ListInstancesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListInstancesRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IListInstancesRequest} message ListInstancesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IListInstancesRequest} message ListInstancesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesRequest} ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.ListInstancesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.orderBy = reader.string();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListInstancesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesRequest} ListInstancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListInstancesRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListInstancesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListInstancesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesRequest} ListInstancesRequest
+ */
+ ListInstancesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.ListInstancesRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.ListInstancesRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListInstancesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ListInstancesRequest} message ListInstancesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListInstancesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.orderBy = "";
+ object.filter = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListInstancesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListInstancesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListInstancesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.ListInstancesRequest";
+ };
+
+ return ListInstancesRequest;
+ })();
+
+ v1beta1.ListInstancesResponse = (function() {
+
+ /**
+ * Properties of a ListInstancesResponse.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface IListInstancesResponse
+ * @property {Array.|null} [instances] ListInstancesResponse instances
+ * @property {string|null} [nextPageToken] ListInstancesResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListInstancesResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListInstancesResponse.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a ListInstancesResponse.
+ * @implements IListInstancesResponse
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.IListInstancesResponse=} [properties] Properties to set
+ */
+ function ListInstancesResponse(properties) {
+ this.instances = [];
+ this.unreachable = [];
+ 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]];
+ }
+
+ /**
+ * ListInstancesResponse instances.
+ * @member {Array.} instances
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @instance
+ */
+ ListInstancesResponse.prototype.instances = $util.emptyArray;
+
+ /**
+ * ListInstancesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @instance
+ */
+ ListInstancesResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListInstancesResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @instance
+ */
+ ListInstancesResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListInstancesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IListInstancesResponse=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesResponse} ListInstancesResponse instance
+ */
+ ListInstancesResponse.create = function create(properties) {
+ return new ListInstancesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListInstancesResponse message. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IListInstancesResponse} message ListInstancesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.instances != null && message.instances.length)
+ for (var i = 0; i < message.instances.length; ++i)
+ $root.google.cloud.filestore.v1beta1.Instance.encode(message.instances[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListInstancesResponse message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.ListInstancesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1beta1.IListInstancesResponse} message ListInstancesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInstancesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesResponse} ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.ListInstancesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.instances && message.instances.length))
+ message.instances = [];
+ message.instances.push($root.google.cloud.filestore.v1beta1.Instance.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListInstancesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesResponse} ListInstancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInstancesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListInstancesResponse message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListInstancesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.instances != null && message.hasOwnProperty("instances")) {
+ if (!Array.isArray(message.instances))
+ return "instances: array expected";
+ for (var i = 0; i < message.instances.length; ++i) {
+ var error = $root.google.cloud.filestore.v1beta1.Instance.verify(message.instances[i]);
+ if (error)
+ return "instances." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListInstancesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.ListInstancesResponse} ListInstancesResponse
+ */
+ ListInstancesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.ListInstancesResponse)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.ListInstancesResponse();
+ if (object.instances) {
+ if (!Array.isArray(object.instances))
+ throw TypeError(".google.cloud.filestore.v1beta1.ListInstancesResponse.instances: array expected");
+ message.instances = [];
+ for (var i = 0; i < object.instances.length; ++i) {
+ if (typeof object.instances[i] !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.ListInstancesResponse.instances: object expected");
+ message.instances[i] = $root.google.cloud.filestore.v1beta1.Instance.fromObject(object.instances[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.filestore.v1beta1.ListInstancesResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListInstancesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ListInstancesResponse} message ListInstancesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListInstancesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.instances = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.instances && message.instances.length) {
+ object.instances = [];
+ for (var j = 0; j < message.instances.length; ++j)
+ object.instances[j] = $root.google.cloud.filestore.v1beta1.Instance.toObject(message.instances[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListInstancesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListInstancesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListInstancesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.ListInstancesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListInstancesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.ListInstancesResponse";
+ };
+
+ return ListInstancesResponse;
+ })();
+
+ v1beta1.Snapshot = (function() {
+
+ /**
+ * Properties of a Snapshot.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface ISnapshot
+ * @property {string|null} [name] Snapshot name
+ * @property {string|null} [description] Snapshot description
+ * @property {google.cloud.filestore.v1beta1.Snapshot.State|null} [state] Snapshot state
+ * @property {google.protobuf.ITimestamp|null} [createTime] Snapshot createTime
+ * @property {Object.|null} [labels] Snapshot labels
+ * @property {number|Long|null} [filesystemUsedBytes] Snapshot filesystemUsedBytes
+ */
+
+ /**
+ * Constructs a new Snapshot.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a Snapshot.
+ * @implements ISnapshot
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.ISnapshot=} [properties] Properties to set
+ */
+ function Snapshot(properties) {
+ this.labels = {};
+ 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]];
+ }
+
+ /**
+ * Snapshot name.
+ * @member {string} name
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.name = "";
+
+ /**
+ * Snapshot description.
+ * @member {string} description
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.description = "";
+
+ /**
+ * Snapshot state.
+ * @member {google.cloud.filestore.v1beta1.Snapshot.State} state
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.state = 0;
+
+ /**
+ * Snapshot createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.createTime = null;
+
+ /**
+ * Snapshot labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.labels = $util.emptyObject;
+
+ /**
+ * Snapshot filesystemUsedBytes.
+ * @member {number|Long} filesystemUsedBytes
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.filesystemUsedBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new Snapshot instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ISnapshot=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.Snapshot} Snapshot instance
+ */
+ Snapshot.create = function create(properties) {
+ return new Snapshot(properties);
+ };
+
+ /**
+ * Encodes the specified Snapshot message. Does not implicitly {@link google.cloud.filestore.v1beta1.Snapshot.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ISnapshot} message Snapshot message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Snapshot.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.filesystemUsedBytes != null && Object.hasOwnProperty.call(message, "filesystemUsedBytes"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int64(message.filesystemUsedBytes);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.Snapshot.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ISnapshot} message Snapshot message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Snapshot.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Snapshot message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.Snapshot} Snapshot
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Snapshot.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.Snapshot(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.state = reader.int32();
+ break;
+ }
+ case 4: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 12: {
+ message.filesystemUsedBytes = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Snapshot message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.Snapshot} Snapshot
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Snapshot.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Snapshot message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Snapshot.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.filesystemUsedBytes != null && message.hasOwnProperty("filesystemUsedBytes"))
+ if (!$util.isInteger(message.filesystemUsedBytes) && !(message.filesystemUsedBytes && $util.isInteger(message.filesystemUsedBytes.low) && $util.isInteger(message.filesystemUsedBytes.high)))
+ return "filesystemUsedBytes: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a Snapshot message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.Snapshot} Snapshot
+ */
+ Snapshot.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.Snapshot)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.Snapshot();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "READY":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.Snapshot.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.Snapshot.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.filesystemUsedBytes != null)
+ if ($util.Long)
+ (message.filesystemUsedBytes = $util.Long.fromValue(object.filesystemUsedBytes)).unsigned = false;
+ else if (typeof object.filesystemUsedBytes === "string")
+ message.filesystemUsedBytes = parseInt(object.filesystemUsedBytes, 10);
+ else if (typeof object.filesystemUsedBytes === "number")
+ message.filesystemUsedBytes = object.filesystemUsedBytes;
+ else if (typeof object.filesystemUsedBytes === "object")
+ message.filesystemUsedBytes = new $util.LongBits(object.filesystemUsedBytes.low >>> 0, object.filesystemUsedBytes.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Snapshot message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {google.cloud.filestore.v1beta1.Snapshot} message Snapshot
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Snapshot.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.createTime = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.filesystemUsedBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.filesystemUsedBytes = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.filestore.v1beta1.Snapshot.State[message.state] === undefined ? message.state : $root.google.cloud.filestore.v1beta1.Snapshot.State[message.state] : message.state;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.filesystemUsedBytes != null && message.hasOwnProperty("filesystemUsedBytes"))
+ if (typeof message.filesystemUsedBytes === "number")
+ object.filesystemUsedBytes = options.longs === String ? String(message.filesystemUsedBytes) : message.filesystemUsedBytes;
+ else
+ object.filesystemUsedBytes = options.longs === String ? $util.Long.prototype.toString.call(message.filesystemUsedBytes) : options.longs === Number ? new $util.LongBits(message.filesystemUsedBytes.low >>> 0, message.filesystemUsedBytes.high >>> 0).toNumber() : message.filesystemUsedBytes;
+ return object;
+ };
+
+ /**
+ * Converts this Snapshot to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Snapshot.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Snapshot
+ * @function getTypeUrl
+ * @memberof google.cloud.filestore.v1beta1.Snapshot
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Snapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.filestore.v1beta1.Snapshot";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.filestore.v1beta1.Snapshot.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} READY=3 READY value
+ * @property {number} DELETING=4 DELETING value
+ */
+ Snapshot.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[3] = "READY"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ return values;
+ })();
+
+ return Snapshot;
+ })();
+
+ v1beta1.CreateSnapshotRequest = (function() {
+
+ /**
+ * Properties of a CreateSnapshotRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @interface ICreateSnapshotRequest
+ * @property {string|null} [parent] CreateSnapshotRequest parent
+ * @property {string|null} [snapshotId] CreateSnapshotRequest snapshotId
+ * @property {google.cloud.filestore.v1beta1.ISnapshot|null} [snapshot] CreateSnapshotRequest snapshot
+ */
+
+ /**
+ * Constructs a new CreateSnapshotRequest.
+ * @memberof google.cloud.filestore.v1beta1
+ * @classdesc Represents a CreateSnapshotRequest.
+ * @implements ICreateSnapshotRequest
+ * @constructor
+ * @param {google.cloud.filestore.v1beta1.ICreateSnapshotRequest=} [properties] Properties to set
+ */
+ function CreateSnapshotRequest(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]];
+ }
+
+ /**
+ * CreateSnapshotRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @instance
+ */
+ CreateSnapshotRequest.prototype.parent = "";
+
+ /**
+ * CreateSnapshotRequest snapshotId.
+ * @member {string} snapshotId
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @instance
+ */
+ CreateSnapshotRequest.prototype.snapshotId = "";
+
+ /**
+ * CreateSnapshotRequest snapshot.
+ * @member {google.cloud.filestore.v1beta1.ISnapshot|null|undefined} snapshot
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @instance
+ */
+ CreateSnapshotRequest.prototype.snapshot = null;
+
+ /**
+ * Creates a new CreateSnapshotRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ICreateSnapshotRequest=} [properties] Properties to set
+ * @returns {google.cloud.filestore.v1beta1.CreateSnapshotRequest} CreateSnapshotRequest instance
+ */
+ CreateSnapshotRequest.create = function create(properties) {
+ return new CreateSnapshotRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateSnapshotRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ICreateSnapshotRequest} message CreateSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateSnapshotRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.snapshotId != null && Object.hasOwnProperty.call(message, "snapshotId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.snapshotId);
+ if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot"))
+ $root.google.cloud.filestore.v1beta1.Snapshot.encode(message.snapshot, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.filestore.v1beta1.CreateSnapshotRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.ICreateSnapshotRequest} message CreateSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateSnapshotRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.filestore.v1beta1.CreateSnapshotRequest} CreateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateSnapshotRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.filestore.v1beta1.CreateSnapshotRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.snapshotId = reader.string();
+ break;
+ }
+ case 3: {
+ message.snapshot = $root.google.cloud.filestore.v1beta1.Snapshot.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.filestore.v1beta1.CreateSnapshotRequest} CreateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateSnapshotRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateSnapshotRequest message.
+ * @function verify
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateSnapshotRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.snapshotId != null && message.hasOwnProperty("snapshotId"))
+ if (!$util.isString(message.snapshotId))
+ return "snapshotId: string expected";
+ if (message.snapshot != null && message.hasOwnProperty("snapshot")) {
+ var error = $root.google.cloud.filestore.v1beta1.Snapshot.verify(message.snapshot);
+ if (error)
+ return "snapshot." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.filestore.v1beta1.CreateSnapshotRequest} CreateSnapshotRequest
+ */
+ CreateSnapshotRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.filestore.v1beta1.CreateSnapshotRequest)
+ return object;
+ var message = new $root.google.cloud.filestore.v1beta1.CreateSnapshotRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.snapshotId != null)
+ message.snapshotId = String(object.snapshotId);
+ if (object.snapshot != null) {
+ if (typeof object.snapshot !== "object")
+ throw TypeError(".google.cloud.filestore.v1beta1.CreateSnapshotRequest.snapshot: object expected");
+ message.snapshot = $root.google.cloud.filestore.v1beta1.Snapshot.fromObject(object.snapshot);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.filestore.v1beta1.CreateSnapshotRequest} message CreateSnapshotRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateSnapshotRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.snapshotId = "";
+ object.snapshot = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.snapshotId != null && message.hasOwnProperty("snapshotId"))
+ object.snapshotId = message.snapshotId;
+ if (message.snapshot != null && message.hasOwnProperty("snapshot"))
+ object.snapshot = $root.google.cloud.filestore.v1beta1.Snapshot.toObject(message.snapshot, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateSnapshotRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.filestore.v1beta1.CreateSnapshotRequest
+ * @instance
+ * @returns {Object.