diff --git a/packages/google-cloud-netapp/.OwlBot.yaml b/packages/google-cloud-netapp/.OwlBot.yaml
new file mode 100644
index 000000000000..e92d94b96a67
--- /dev/null
+++ b/packages/google-cloud-netapp/.OwlBot.yaml
@@ -0,0 +1,19 @@
+# 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.
+
+deep-copy-regex:
+ - source: /google/cloud/netapp/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-netapp/$1
+
+api-name: netapp
\ No newline at end of file
diff --git a/packages/google-cloud-netapp/.eslintignore b/packages/google-cloud-netapp/.eslintignore
new file mode 100644
index 000000000000..ea5b04aebe68
--- /dev/null
+++ b/packages/google-cloud-netapp/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-netapp/.eslintrc.json b/packages/google-cloud-netapp/.eslintrc.json
new file mode 100644
index 000000000000..782153495464
--- /dev/null
+++ b/packages/google-cloud-netapp/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-netapp/.gitattributes b/packages/google-cloud-netapp/.gitattributes
new file mode 100644
index 000000000000..33739cb74e44
--- /dev/null
+++ b/packages/google-cloud-netapp/.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-netapp/.gitignore b/packages/google-cloud-netapp/.gitignore
new file mode 100644
index 000000000000..d4f03a0df2e8
--- /dev/null
+++ b/packages/google-cloud-netapp/.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-netapp/.jsdoc.js b/packages/google-cloud-netapp/.jsdoc.js
new file mode 100644
index 000000000000..16362034078f
--- /dev/null
+++ b/packages/google-cloud-netapp/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2023 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 2023 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/netapp',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-netapp/.mocharc.js b/packages/google-cloud-netapp/.mocharc.js
new file mode 100644
index 000000000000..49e7e228701d
--- /dev/null
+++ b/packages/google-cloud-netapp/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2023 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-netapp/.nycrc b/packages/google-cloud-netapp/.nycrc
new file mode 100644
index 000000000000..b18d5472b62b
--- /dev/null
+++ b/packages/google-cloud-netapp/.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-netapp/.prettierignore b/packages/google-cloud-netapp/.prettierignore
new file mode 100644
index 000000000000..9340ad9b86d3
--- /dev/null
+++ b/packages/google-cloud-netapp/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-netapp/.prettierrc.js b/packages/google-cloud-netapp/.prettierrc.js
new file mode 100644
index 000000000000..1e6cec783e40
--- /dev/null
+++ b/packages/google-cloud-netapp/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2023 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-netapp/.repo-metadata.json b/packages/google-cloud-netapp/.repo-metadata.json
new file mode 100644
index 000000000000..6237022da1d1
--- /dev/null
+++ b/packages/google-cloud-netapp/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "netapp",
+ "name_pretty": "NetApp API",
+ "product_documentation": "https://cloud.google.com/netapp/volumes/docs/discover/overview",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/netapp/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "preview",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/netapp",
+ "api_id": "netapp.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO",
+ "api_shortname": "netapp"
+}
+
diff --git a/packages/google-cloud-netapp/CODE_OF_CONDUCT.md b/packages/google-cloud-netapp/CODE_OF_CONDUCT.md
new file mode 100644
index 000000000000..2add2547a812
--- /dev/null
+++ b/packages/google-cloud-netapp/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-netapp/CONTRIBUTING.md b/packages/google-cloud-netapp/CONTRIBUTING.md
new file mode 100644
index 000000000000..2161fae34c98
--- /dev/null
+++ b/packages/google-cloud-netapp/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 NetApp API 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=netapp.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-netapp/LICENSE b/packages/google-cloud-netapp/LICENSE
new file mode 100644
index 000000000000..d64569567334
--- /dev/null
+++ b/packages/google-cloud-netapp/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-netapp/README.md b/packages/google-cloud-netapp/README.md
new file mode 100644
index 000000000000..28765e7a1f84
--- /dev/null
+++ b/packages/google-cloud-netapp/README.md
@@ -0,0 +1,224 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [NetApp API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-netapp)
+
+[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
+[![npm version](https://img.shields.io/npm/v/@google-cloud/netapp.svg)](https://www.npmjs.org/package/@google-cloud/netapp)
+
+
+
+
+NetApp API 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-netapp/CHANGELOG.md).
+
+* [NetApp API Node.js Client API Reference][client-docs]
+* [NetApp API Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-netapp](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-netapp)
+
+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 NetApp API 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/netapp
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * This snippet has been automatically generated and should be regarded as a code template only.
+ * It will require modifications to work.
+ * It may require correct/in-range values for request initialization.
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+/**
+ * Required. Parent value
+ */
+// const parent = 'abc123'
+/**
+ * The maximum number of items to return.
+ */
+// const pageSize = 1234
+/**
+ * The next_page_token value to use if there are additional
+ * results to retrieve for this list request.
+ */
+// const pageToken = 'abc123'
+/**
+ * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+ */
+// const orderBy = 'abc123'
+/**
+ * List filter.
+ */
+// const filter = 'abc123'
+
+// Imports the Netapp library
+const {NetAppClient} = require('@google-cloud/netapp').v1;
+
+// Instantiates a client
+const netappClient = new NetAppClient();
+
+async function callListStoragePools() {
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ const iterable = await netappClient.listStoragePoolsAsync(request);
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListStoragePools();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-netapp/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Net_app.create_active_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.create_active_directory.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-netapp/samples/generated/v1/net_app.create_active_directory.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.create_kms_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.create_kms_config.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-netapp/samples/generated/v1/net_app.create_kms_config.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.create_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.create_replication.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-netapp/samples/generated/v1/net_app.create_replication.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.create_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.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-netapp/samples/generated/v1/net_app.create_snapshot.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.create_storage_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.create_storage_pool.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-netapp/samples/generated/v1/net_app.create_storage_pool.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.create_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.create_volume.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-netapp/samples/generated/v1/net_app.create_volume.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.delete_active_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.delete_active_directory.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-netapp/samples/generated/v1/net_app.delete_active_directory.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.delete_kms_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.delete_kms_config.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-netapp/samples/generated/v1/net_app.delete_kms_config.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.delete_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.delete_replication.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-netapp/samples/generated/v1/net_app.delete_replication.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.delete_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.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-netapp/samples/generated/v1/net_app.delete_snapshot.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.delete_storage_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.delete_storage_pool.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-netapp/samples/generated/v1/net_app.delete_storage_pool.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.delete_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.delete_volume.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-netapp/samples/generated/v1/net_app.delete_volume.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.encrypt_volumes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.encrypt_volumes.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-netapp/samples/generated/v1/net_app.encrypt_volumes.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.get_active_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_active_directory.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-netapp/samples/generated/v1/net_app.get_active_directory.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.get_kms_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_kms_config.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-netapp/samples/generated/v1/net_app.get_kms_config.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.get_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_replication.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-netapp/samples/generated/v1/net_app.get_replication.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.get_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.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-netapp/samples/generated/v1/net_app.get_snapshot.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.get_storage_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_storage_pool.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-netapp/samples/generated/v1/net_app.get_storage_pool.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.get_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_volume.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-netapp/samples/generated/v1/net_app.get_volume.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.list_active_directories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.list_active_directories.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-netapp/samples/generated/v1/net_app.list_active_directories.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.list_kms_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.list_kms_configs.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-netapp/samples/generated/v1/net_app.list_kms_configs.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.list_replications | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.list_replications.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-netapp/samples/generated/v1/net_app.list_replications.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.list_snapshots | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.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-netapp/samples/generated/v1/net_app.list_snapshots.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.list_storage_pools | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.list_storage_pools.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-netapp/samples/generated/v1/net_app.list_storage_pools.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.list_volumes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.list_volumes.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-netapp/samples/generated/v1/net_app.list_volumes.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.resume_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.resume_replication.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-netapp/samples/generated/v1/net_app.resume_replication.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.reverse_replication_direction | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.reverse_replication_direction.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-netapp/samples/generated/v1/net_app.reverse_replication_direction.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.revert_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.revert_volume.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-netapp/samples/generated/v1/net_app.revert_volume.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.stop_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.stop_replication.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-netapp/samples/generated/v1/net_app.stop_replication.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.update_active_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_active_directory.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-netapp/samples/generated/v1/net_app.update_active_directory.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.update_kms_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_kms_config.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-netapp/samples/generated/v1/net_app.update_kms_config.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.update_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_replication.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-netapp/samples/generated/v1/net_app.update_replication.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.update_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.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-netapp/samples/generated/v1/net_app.update_snapshot.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.update_storage_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_storage_pool.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-netapp/samples/generated/v1/net_app.update_storage_pool.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.update_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_volume.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-netapp/samples/generated/v1/net_app.update_volume.js,packages/google-cloud-netapp/samples/README.md) |
+| Net_app.verify_kms_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.verify_kms_config.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-netapp/samples/generated/v1/net_app.verify_kms_config.js,packages/google-cloud-netapp/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/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-netapp/samples/quickstart.js,packages/google-cloud-netapp/samples/README.md) |
+
+
+
+The [NetApp API 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://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/netapp@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 in **preview**. This means it is still a
+work-in-progress and under active development. Any release is subject to
+backwards-incompatible changes at any time.
+
+
+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/netapp/latest
+[product-docs]: https://cloud.google.com/netapp/volumes/docs/discover/overview
+[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=netapp.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-netapp/package.json b/packages/google-cloud-netapp/package.json
new file mode 100644
index 000000000000..dc450b659453
--- /dev/null
+++ b/packages/google-cloud-netapp/package.json
@@ -0,0 +1,70 @@
+{
+ "name": "@google-cloud/netapp",
+ "version": "0.0.0",
+ "description": "NetApp API client for Node.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/googleapis/google-cloud-node.git",
+ "directory": "packages/google-cloud-netapp"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-netapp",
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google netapp",
+ "netapp",
+ "NetApp API"
+ ],
+ "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",
+ "lint": "gts check",
+ "postpack": "minifyProtoJson",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^4.0.3"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^20.4.5",
+ "@types/sinon": "^10.0.0",
+ "c8": "^8.0.1",
+ "gapic-tools": "^0.1.8",
+ "gts": "^5.0.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^3.0.0",
+ "jsdoc-region-tag": "^3.0.0",
+ "linkinator": "4.1.2",
+ "long": "^5.2.3",
+ "mocha": "^9.2.2",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^15.0.0",
+ "typescript": "^5.1.6"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+}
diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/active_directory.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/active_directory.proto
new file mode 100644
index 000000000000..79293e524fcc
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/active_directory.proto
@@ -0,0 +1,223 @@
+// Copyright 2023 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.netapp.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "ActiveDirectoryProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+
+// ListActiveDirectoriesRequest for requesting multiple active directories.
+message ListActiveDirectoriesRequest {
+ // Required. Parent value for ListActiveDirectoriesRequest
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/ActiveDirectory"
+ }
+ ];
+
+ // Requested page size. Server may return fewer items than requested.
+ // If unspecified, the server will pick an appropriate default.
+ int32 page_size = 2;
+
+ // A token identifying a page of results the server should return.
+ string page_token = 3;
+
+ // Filtering results
+ string filter = 4;
+
+ // Hint for how to order the results
+ string order_by = 5;
+}
+
+// ListActiveDirectoriesResponse contains all the active directories requested.
+message ListActiveDirectoriesResponse {
+ // The list of active directories.
+ repeated ActiveDirectory active_directories = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// GetActiveDirectory for getting a single active directory.
+message GetActiveDirectoryRequest {
+ // Required. Name of the active directory.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/ActiveDirectory"
+ }
+ ];
+}
+
+// CreateActiveDirectoryRequest for creating an active directory.
+message CreateActiveDirectoryRequest {
+ // Required. Value for parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/ActiveDirectory"
+ }
+ ];
+
+ // Required. Fields of the to be created active directory.
+ ActiveDirectory active_directory = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. ID of the active directory to create.
+ string active_directory_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// UpdateActiveDirectoryRequest for updating an active directory.
+message UpdateActiveDirectoryRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // Active Directory resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The volume being updated
+ ActiveDirectory active_directory = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteActiveDirectoryRequest for deleting a single active directory.
+message DeleteActiveDirectoryRequest {
+ // Required. Name of the active directory.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/ActiveDirectory"
+ }
+ ];
+}
+
+// ActiveDirectory is the public representation of the active directory config.
+message ActiveDirectory {
+ option (google.api.resource) = {
+ type: "netapp.googleapis.com/ActiveDirectory"
+ pattern: "projects/{project}/locations/{location}/activeDirectories/{active_directory}"
+ };
+
+ // The Active Directory States
+ enum State {
+ // Unspecified Active Directory State
+ STATE_UNSPECIFIED = 0;
+
+ // Active Directory State is Creating
+ CREATING = 1;
+
+ // Active Directory State is Ready
+ READY = 2;
+
+ // Active Directory State is Updating
+ UPDATING = 3;
+
+ // Active Directory State is In use
+ IN_USE = 4;
+
+ // Active Directory State is Deleting
+ DELETING = 5;
+
+ // Active Directory State is Error
+ ERROR = 6;
+ }
+
+ // Output only. The resource name of the active directory.
+ // Format:
+ // `projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Create time of the active directory.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The state of the AD.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Name of the Active Directory domain
+ string domain = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // The Active Directory site the service will limit Domain Controller
+ // discovery too.
+ string site = 5;
+
+ // Required. Comma separated list of DNS server IP addresses for the Active
+ // Directory domain.
+ string dns = 6 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. NetBIOSPrefix is used as a prefix for SMB server name.
+ string net_bios_prefix = 7 [(google.api.field_behavior) = REQUIRED];
+
+ // The Organizational Unit (OU) within the Windows Active Directory the user
+ // belongs to.
+ string organizational_unit = 8;
+
+ // If enabled, AES encryption will be enabled for SMB communication.
+ bool aes_encryption = 9;
+
+ // Required. Username of the Active Directory domain administrator.
+ string username = 10 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Password of the Active Directory domain administrator.
+ string password = 11 [(google.api.field_behavior) = REQUIRED];
+
+ // Users to be added to the Built-in Backup Operator active directory group.
+ repeated string backup_operators = 12;
+
+ // Domain users to be given the SeSecurityPrivilege.
+ repeated string security_operators = 13;
+
+ // Name of the active directory machine. This optional parameter is used only
+ // while creating kerberos volume
+ string kdc_hostname = 14;
+
+ // KDC server IP address for the active directory machine.
+ string kdc_ip = 15;
+
+ // If enabled, will allow access to local users and LDAP users. If access is
+ // needed for only LDAP users, it has to be disabled.
+ bool nfs_users_with_ldap = 16;
+
+ // Description of the active directory.
+ string description = 17;
+
+ // Specifies whether or not the LDAP traffic needs to be signed.
+ bool ldap_signing = 18;
+
+ // If enabled, traffic between the SMB server to Domain Controller (DC) will
+ // be encrypted.
+ bool encrypt_dc_connections = 19;
+
+ // Labels for the active directory.
+ map labels = 20;
+
+ // Output only. The state details of the Active Directory.
+ string state_details = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto
new file mode 100644
index 000000000000..2eec5a18daca
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto
@@ -0,0 +1,502 @@
+// Copyright 2023 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.netapp.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/netapp/v1/active_directory.proto";
+import "google/cloud/netapp/v1/kms.proto";
+import "google/cloud/netapp/v1/replication.proto";
+import "google/cloud/netapp/v1/snapshot.proto";
+import "google/cloud/netapp/v1/storage_pool.proto";
+import "google/cloud/netapp/v1/volume.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "CloudNetappServiceProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Network"
+ pattern: "projects/{project}/global/networks/{network}"
+};
+
+// NetApp Files Google Cloud Service
+service NetApp {
+ option (google.api.default_host) = "netapp.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Returns descriptions of all storage pools owned by the caller.
+ rpc ListStoragePools(ListStoragePoolsRequest)
+ returns (ListStoragePoolsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/storagePools"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates a new storage pool.
+ rpc CreateStoragePool(CreateStoragePoolRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/storagePools"
+ body: "storage_pool"
+ };
+ option (google.api.method_signature) =
+ "parent,storage_pool,storage_pool_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "StoragePool"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Returns the description of the specified storage pool by poolId.
+ rpc GetStoragePool(GetStoragePoolRequest) returns (StoragePool) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/storagePools/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the storage pool properties with the full spec
+ rpc UpdateStoragePool(UpdateStoragePoolRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{storage_pool.name=projects/*/locations/*/storagePools/*}"
+ body: "storage_pool"
+ };
+ option (google.api.method_signature) = "storage_pool,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "StoragePool"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Warning! This operation will permanently delete the storage pool.
+ rpc DeleteStoragePool(DeleteStoragePoolRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/storagePools/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists Volumes in a given project.
+ rpc ListVolumes(ListVolumesRequest) returns (ListVolumesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/volumes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Volume.
+ rpc GetVolume(GetVolumeRequest) returns (Volume) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/volumes/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Volume in a given project and location.
+ rpc CreateVolume(CreateVolumeRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/volumes"
+ body: "volume"
+ };
+ option (google.api.method_signature) = "parent,volume,volume_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Volume"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single Volume.
+ rpc UpdateVolume(UpdateVolumeRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{volume.name=projects/*/locations/*/volumes/*}"
+ body: "volume"
+ };
+ option (google.api.method_signature) = "volume,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Volume"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Volume.
+ rpc DeleteVolume(DeleteVolumeRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/volumes/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Revert an existing volume to a specified snapshot.
+ // Warning! This operation will permanently revert all changes made after the
+ // snapshot was created.
+ rpc RevertVolume(RevertVolumeRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/volumes/*}:revert"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Volume"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Returns descriptions of all snapshots for a volume.
+ rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/volumes/*}/snapshots"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Describe a snapshot for a volume.
+ rpc GetSnapshot(GetSnapshotRequest) returns (Snapshot) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/volumes/*/snapshots/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Create a new snapshot for a volume.
+ rpc CreateSnapshot(CreateSnapshotRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/volumes/*}/snapshots"
+ body: "snapshot"
+ };
+ option (google.api.method_signature) = "parent,snapshot,snapshot_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Snapshot"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a snapshot.
+ rpc DeleteSnapshot(DeleteSnapshotRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/volumes/*/snapshots/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific snapshot.
+ rpc UpdateSnapshot(UpdateSnapshotRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{snapshot.name=projects/*/locations/*/volumes/*/snapshots/*}"
+ body: "snapshot"
+ };
+ option (google.api.method_signature) = "snapshot,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Snapshot"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists active directories.
+ rpc ListActiveDirectories(ListActiveDirectoriesRequest)
+ returns (ListActiveDirectoriesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/activeDirectories"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Describes a specified active directory.
+ rpc GetActiveDirectory(GetActiveDirectoryRequest) returns (ActiveDirectory) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/activeDirectories/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // CreateActiveDirectory
+ // Creates the active directory specified in the request.
+ rpc CreateActiveDirectory(CreateActiveDirectoryRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/activeDirectories"
+ body: "active_directory"
+ };
+ option (google.api.method_signature) =
+ "parent,active_directory,active_directory_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "ActiveDirectory"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Update the parameters of an active directories.
+ rpc UpdateActiveDirectory(UpdateActiveDirectoryRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{active_directory.name=projects/*/locations/*/activeDirectories/*}"
+ body: "active_directory"
+ };
+ option (google.api.method_signature) = "active_directory,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "ActiveDirectory"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Delete the active directory specified in the request.
+ rpc DeleteActiveDirectory(DeleteActiveDirectoryRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/activeDirectories/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Returns descriptions of all KMS configs owned by the caller.
+ rpc ListKmsConfigs(ListKmsConfigsRequest) returns (ListKmsConfigsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/kmsConfigs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates a new KMS config.
+ rpc CreateKmsConfig(CreateKmsConfigRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/kmsConfigs"
+ body: "kms_config"
+ };
+ option (google.api.method_signature) = "parent,kms_config,kms_config_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "KmsConfig"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Returns the description of the specified KMS config by kms_config_id.
+ rpc GetKmsConfig(GetKmsConfigRequest) returns (KmsConfig) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/kmsConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the Kms config properties with the full spec
+ rpc UpdateKmsConfig(UpdateKmsConfigRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{kms_config.name=projects/*/locations/*/kmsConfigs/*}"
+ body: "kms_config"
+ };
+ option (google.api.method_signature) = "kms_config,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "KmsConfig"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Encrypt the existing volumes without CMEK encryption with the desired the
+ // KMS config for the whole region.
+ rpc EncryptVolumes(EncryptVolumesRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/kmsConfigs/*}:encrypt"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "KmsConfig"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Verifies KMS config reachability.
+ rpc VerifyKmsConfig(VerifyKmsConfigRequest)
+ returns (VerifyKmsConfigResponse) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/kmsConfigs/*}:verify"
+ body: "*"
+ };
+ }
+
+ // Warning! This operation will permanently delete the Kms config.
+ rpc DeleteKmsConfig(DeleteKmsConfigRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/kmsConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Returns descriptions of all replications for a volume.
+ rpc ListReplications(ListReplicationsRequest)
+ returns (ListReplicationsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/volumes/*}/replications"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Describe a replication for a volume.
+ rpc GetReplication(GetReplicationRequest) returns (Replication) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Create a new replication for a volume.
+ rpc CreateReplication(CreateReplicationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/volumes/*}/replications"
+ body: "replication"
+ };
+ option (google.api.method_signature) = "parent,replication,replication_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Replication"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a replication.
+ rpc DeleteReplication(DeleteReplicationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the settings of a specific replication.
+ rpc UpdateReplication(UpdateReplicationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{replication.name=projects/*/locations/*/volumes/*/replications/*}"
+ body: "replication"
+ };
+ option (google.api.method_signature) = "replication,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Replication"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Stop Cross Region Replication.
+ rpc StopReplication(StopReplicationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:stop"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Replication"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Resume Cross Region Replication.
+ rpc ResumeReplication(ResumeReplicationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:resume"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Replication"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Reverses direction of replication. Source becomes destination and
+ // destination becomes source.
+ rpc ReverseReplicationDirection(ReverseReplicationDirectionRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:reverseDirection"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Replication"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// 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_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have been canceled successfully
+ // have [Operation.error][] value with a
+ // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ // `Code.CANCELLED`.
+ bool requested_cancellation = 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-netapp/protos/google/cloud/netapp/v1/common.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/common.proto
new file mode 100644
index 000000000000..2aa2ba6a32ef
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/common.proto
@@ -0,0 +1,49 @@
+// Copyright 2023 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.netapp.v1;
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "CommonProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+
+// The service levels - Storage Pool, Volumes
+enum ServiceLevel {
+ SERVICE_LEVEL_UNSPECIFIED = 0;
+
+ PREMIUM = 1;
+
+ EXTREME = 2;
+
+ // Standard (Software offering)
+ STANDARD = 3;
+}
+
+// Defined the current volume encryption key source.
+enum EncryptionType {
+ // The source of encryption key is not specified.
+ ENCRYPTION_TYPE_UNSPECIFIED = 0;
+
+ // Google managed encryption key.
+ SERVICE_MANAGED = 1;
+
+ // Customer managed encryption key, which is stored in KMS.
+ CLOUD_KMS = 2;
+}
diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/kms.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/kms.proto
new file mode 100644
index 000000000000..0547e49d31dd
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/kms.proto
@@ -0,0 +1,238 @@
+// Copyright 2023 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.netapp.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "KmsProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+
+// GetKmsConfigRequest gets a KMS Config.
+message GetKmsConfigRequest {
+ // Required. Name of the KmsConfig
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/KmsConfig"
+ }
+ ];
+}
+
+// ListKmsConfigsRequest lists KMS Configs.
+message ListKmsConfigsRequest {
+ // Required. Parent value
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/KmsConfig"
+ }
+ ];
+
+ // 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;
+}
+
+// ListKmsConfigsResponse is the response to a ListKmsConfigsRequest.
+message ListKmsConfigsResponse {
+ // The list of KmsConfigs
+ repeated KmsConfig kms_configs = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// CreateKmsConfigRequest creates a KMS Config.
+message CreateKmsConfigRequest {
+ // Required. Value for parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/KmsConfig"
+ }
+ ];
+
+ // Required. Id of the requesting KmsConfig
+ // If auto-generating Id server-side, remove this field and
+ // id from the method_signature of Create RPC
+ string kms_config_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The required parameters to create a new KmsConfig.
+ KmsConfig kms_config = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// UpdateKmsConfigRequest updates a KMS Config.
+message UpdateKmsConfigRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // KmsConfig resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The KmsConfig being updated
+ KmsConfig kms_config = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteKmsConfigRequest deletes a KMS Config.
+message DeleteKmsConfigRequest {
+ // Required. Name of the KmsConfig.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/KmsConfig"
+ }
+ ];
+}
+
+// EncryptVolumesRequest specifies the KMS config to encrypt existing volumes.
+message EncryptVolumesRequest {
+ // Required. Name of the KmsConfig.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/KmsConfig"
+ }
+ ];
+}
+
+// VerifyKmsConfigRequest specifies the KMS config to be validated.
+message VerifyKmsConfigRequest {
+ // Required. Name of the KMS Config to be verified.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/KmsConfig"
+ }
+ ];
+}
+
+// VerifyKmsConfigResponse contains the information if the config is correctly
+// and error message.
+message VerifyKmsConfigResponse {
+ // Output only. If the customer key configured correctly to the encrypt
+ // volume.
+ bool healthy = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Error message if config is not healthy.
+ string health_error = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Instructions for the customers to provide the access to the
+ // encryption key.
+ string instructions = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// KmsConfig is the customer managed encryption key(CMEK) configuration.
+message KmsConfig {
+ option (google.api.resource) = {
+ type: "netapp.googleapis.com/KmsConfig"
+ pattern: "projects/{project}/locations/{location}/kmsConfigs/{kms_config}"
+ };
+
+ // The KmsConfig States
+ enum State {
+ // Unspecified KmsConfig State
+ STATE_UNSPECIFIED = 0;
+
+ // KmsConfig State is Ready
+ READY = 1;
+
+ // KmsConfig State is Creating
+ CREATING = 2;
+
+ // KmsConfig State is Deleting
+ DELETING = 3;
+
+ // KmsConfig State is Updating
+ UPDATING = 4;
+
+ // KmsConfig State is In Use.
+ IN_USE = 5;
+
+ // KmsConfig State is Error
+ ERROR = 6;
+
+ // KmsConfig State is Pending to verify crypto key access.
+ KEY_CHECK_PENDING = 7;
+
+ // KmsConfig State is Not accessbile by the SDE service account to the
+ // crypto key.
+ KEY_NOT_REACHABLE = 8;
+
+ // KmsConfig State is Disabling.
+ DISABLING = 9;
+
+ // KmsConfig State is Disabled.
+ DISABLED = 10;
+
+ // KmsConfig State is Migrating.
+ // The existing volumes are migrating from SMEK to CMEK.
+ MIGRATING = 11;
+ }
+
+ // Output only. Name of the KmsConfig.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Customer managed crypto key resource full name. Format:
+ // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
+ string crypto_key_name = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. State of the KmsConfig.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State details of the KmsConfig.
+ string state_details = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Create time of the KmsConfig.
+ google.protobuf.Timestamp create_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Description of the KmsConfig.
+ string description = 6;
+
+ // Labels as key value pairs
+ map labels = 7;
+
+ // Output only. Instructions to provide the access to the customer provided
+ // encryption key.
+ string instructions = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The Service account which will have access to the customer
+ // provided encryption key.
+ string service_account = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/replication.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/replication.proto
new file mode 100644
index 000000000000..b11f4497c681
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/replication.proto
@@ -0,0 +1,366 @@
+// Copyright 2023 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.netapp.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "ReplicationProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+
+// TransferStats reports all statistics related to replication transfer.
+message TransferStats {
+ // bytes trasferred so far in current transfer.
+ optional int64 transfer_bytes = 1;
+
+ // Total time taken during transfer.
+ optional google.protobuf.Duration total_transfer_duration = 2;
+
+ // Last transfer size in bytes.
+ optional int64 last_transfer_bytes = 3;
+
+ // Time taken during last transfer.
+ optional google.protobuf.Duration last_transfer_duration = 4;
+
+ // Lag duration indicates the duration by which Destination region volume
+ // content lags behind the primary region volume content.
+ optional google.protobuf.Duration lag_duration = 5;
+
+ // Time when progress was updated last.
+ optional google.protobuf.Timestamp update_time = 6;
+
+ // Time when last transfer completed.
+ optional google.protobuf.Timestamp last_transfer_end_time = 7;
+
+ // A message describing the cause of the last transfer failure.
+ optional string last_transfer_error = 8;
+}
+
+// Replication is a nested resource under Volume, that describes a
+// cross-region replication relationship between 2 volumes in different
+// regions.
+message Replication {
+ option (google.api.resource) = {
+ type: "netapp.googleapis.com/Replication"
+ pattern: "projects/{project}/locations/{location}/volumes/{volume}/replications/{replication}"
+ };
+
+ // The replication states
+ // New enum values may be added in future to indicate possible new states.
+ enum State {
+ // Unspecified replication State
+ STATE_UNSPECIFIED = 0;
+
+ // Replication is creating.
+ CREATING = 1;
+
+ // Replication is ready.
+ READY = 2;
+
+ // Replication is updating.
+ UPDATING = 3;
+
+ // Replication is deleting.
+ DELETING = 5;
+
+ // Replication is in error state.
+ ERROR = 6;
+ }
+
+ // New enum values may be added in future to support different replication
+ // topology.
+ enum ReplicationRole {
+ // Unspecified replication role
+ REPLICATION_ROLE_UNSPECIFIED = 0;
+
+ // Indicates Source volume.
+ SOURCE = 1;
+
+ // Indicates Destination volume.
+ DESTINATION = 2;
+ }
+
+ // Schedule for Replication.
+ // New enum values may be added in future to support different frequency of
+ // replication.
+ enum ReplicationSchedule {
+ // Unspecified ReplicationSchedule
+ REPLICATION_SCHEDULE_UNSPECIFIED = 0;
+
+ // Replication happens once every 10 minutes.
+ EVERY_10_MINUTES = 1;
+
+ // Replication happens once every hour.
+ HOURLY = 2;
+
+ // Replication happens once every day.
+ DAILY = 3;
+ }
+
+ // Mirroring states.
+ // No new value is expected to be added in future.
+ enum MirrorState {
+ // Unspecified MirrorState
+ MIRROR_STATE_UNSPECIFIED = 0;
+
+ // Destination volume is being prepared.
+ PREPARING = 1;
+
+ // Destination volume has been initialized and is ready to receive
+ // replication transfers.
+ MIRRORED = 2;
+
+ // Destination volume is not receiving replication transfers.
+ STOPPED = 3;
+
+ // Replication is in progress.
+ TRANSFERRING = 4;
+ }
+
+ // Output only. The resource name of the Replication.
+ // Format:
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the replication.
+ State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State details of the replication.
+ string state_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates whether this points to source or destination.
+ ReplicationRole role = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Indicates the schedule for replication.
+ ReplicationSchedule replication_schedule = 5
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Indicates the state of mirroring.
+ MirrorState mirror_state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Condition of the relationship. Can be one of the following:
+ // - true: The replication relationship is healthy. It has not missed the most
+ // recent scheduled transfer.
+ // - false: The replication relationship is not healthy. It has missed the
+ // most recent scheduled transfer.
+ optional bool healthy = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Replication create time.
+ google.protobuf.Timestamp create_time = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Full name of destination volume resource.
+ // Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
+ string destination_volume = 10 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" }
+ ];
+
+ // Output only. Replication transfer statistics.
+ TransferStats transfer_stats = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Resource labels to represent user provided metadata.
+ map labels = 12;
+
+ // A description about this replication relationship.
+ optional string description = 13;
+
+ // Required. Input only. Destination volume parameters
+ DestinationVolumeParameters destination_volume_parameters = 14 [
+ (google.api.field_behavior) = INPUT_ONLY,
+ (google.api.field_behavior) = REQUIRED
+ ];
+
+ // Output only. Full name of source volume resource.
+ // Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
+ string source_volume = 15 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" }
+ ];
+}
+
+// ListReplications lists replications.
+message ListReplicationsRequest {
+ // Required. The volume for which to retrieve replication information,
+ // in the format
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/Replication"
+ }
+ ];
+
+ // 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;
+}
+
+// ListReplicationsResponse is the result of ListReplicationsRequest.
+message ListReplicationsResponse {
+ // A list of replications in the project for the specified volume.
+ repeated Replication replications = 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;
+}
+
+// GetReplicationRequest gets the state of a replication.
+message GetReplicationRequest {
+ // Required. The replication resource name, in the format
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/Replication"
+ }
+ ];
+}
+
+// DestinationVolumeParameters specify input parameters used for creating
+// destination volume.
+message DestinationVolumeParameters {
+ // Required. Existing destination StoragePool name.
+ string storage_pool = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/StoragePool"
+ }
+ ];
+
+ // Desired destination volume resource id. If not specified, source volume's
+ // resource id will be used.
+ // 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 volume_id = 2;
+
+ // Destination volume's share name. If not specified, source volume's share
+ // name will be used.
+ string share_name = 3;
+
+ // Description for the destination volume.
+ optional string description = 4;
+}
+
+// CreateReplicationRequest creates a replication.
+message CreateReplicationRequest {
+ // Required. The NetApp volume to create the replications of, in the format
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/Replication"
+ }
+ ];
+
+ // Required. A replication resource
+ Replication replication = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. ID of the replication to create.
+ // 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 replication_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteReplicationRequest deletes a replication.
+message DeleteReplicationRequest {
+ // Required. The replication resource name, in the format
+ // `projects/*/locations/*/volumes/*/replications/{replication_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/Replication"
+ }
+ ];
+}
+
+// UpdateReplicationRequest updates description and/or labels for a replication.
+message UpdateReplicationRequest {
+ // 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 replication resource
+ Replication replication = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// StopReplicationRequest stops a replication until resumed.
+message StopReplicationRequest {
+ // Required. The resource name of the replication, in the format of
+ // projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/Replication"
+ }
+ ];
+
+ // Indicates whether to stop replication forcefully while data transfer is in
+ // progress.
+ // Warning! if force is true, this will abort any current transfers
+ // and can lead to data loss due to partial transfer.
+ // If force is false, stop replication will fail while data transfer is in
+ // progress and you will need to retry later.
+ bool force = 2;
+}
+
+// ResumeReplicationRequest resumes a stopped replication.
+message ResumeReplicationRequest {
+ // Required. The resource name of the replication, in the format of
+ // projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/Replication"
+ }
+ ];
+}
+
+// ReverseReplicationDirectionRequest reverses direction of replication. Source
+// becomes destination and destination becomes source.
+message ReverseReplicationDirectionRequest {
+ // Required. The resource name of the replication, in the format of
+ // projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/Replication"
+ }
+ ];
+}
diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/snapshot.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/snapshot.proto
new file mode 100644
index 000000000000..a37ef7dd41d5
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/snapshot.proto
@@ -0,0 +1,177 @@
+// Copyright 2023 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.netapp.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "SnapshotProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+
+// ListSnapshotsRequest lists snapshots.
+message ListSnapshotsRequest {
+ // Required. The volume for which to retrieve snapshot information,
+ // in the format
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/Snapshot"
+ }
+ ];
+
+ // 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 volume.
+ 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;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// GetSnapshotRequest gets the state of a snapshot.
+message GetSnapshotRequest {
+ // Required. The snapshot resource name, in the format
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "netapp.googleapis.com/Snapshot" }
+ ];
+}
+
+// CreateSnapshotRequest creates a snapshot.
+message CreateSnapshotRequest {
+ // Required. The NetApp volume to create the snapshots of, in the format
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/Snapshot"
+ }
+ ];
+
+ // Required. A snapshot resource
+ Snapshot snapshot = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. ID of the snapshot to create.
+ // 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 = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteSnapshotRequest deletes a snapshot.
+message DeleteSnapshotRequest {
+ // Required. The snapshot resource name, in the format
+ // `projects/*/locations/*/volumes/*/snapshots/{snapshot_id}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "netapp.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];
+}
+
+// Snapshot is a point-in-time version of a Volume's content.
+message Snapshot {
+ option (google.api.resource) = {
+ type: "netapp.googleapis.com/Snapshot"
+ pattern: "projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}"
+ };
+
+ // The Snapshot States
+ enum State {
+ // Unspecified Snapshot State
+ STATE_UNSPECIFIED = 0;
+
+ // Snapshot State is Ready
+ READY = 1;
+
+ // Snapshot State is Creating
+ CREATING = 2;
+
+ // Snapshot State is Deleting
+ DELETING = 3;
+
+ // Snapshot State is Updating
+ UPDATING = 4;
+
+ // Snapshot State is Disabled
+ DISABLED = 5;
+
+ // Snapshot State is Error
+ ERROR = 6;
+ }
+
+ // Output only. The resource name of the snapshot.
+ // Format:
+ // `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The snapshot state.
+ State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State details of the storage pool
+ string state_details = 3 [(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 = 4;
+
+ // Output only. Current storage usage for the snapshot in bytes.
+ double used_bytes = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the snapshot was created.
+ google.protobuf.Timestamp create_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Resource labels to represent user provided metadata.
+ map labels = 7;
+}
diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto
new file mode 100644
index 000000000000..1dcdbacf113c
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto
@@ -0,0 +1,222 @@
+// Copyright 2023 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.netapp.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/netapp/v1/common.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "StoragePoolProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+
+// GetStoragePoolRequest gets a Storage Pool.
+message GetStoragePoolRequest {
+ // Required. Name of the storage pool
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/StoragePool"
+ }
+ ];
+}
+
+// ListStoragePoolsRequest lists Storage Pools.
+message ListStoragePoolsRequest {
+ // Required. Parent value
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/StoragePool"
+ }
+ ];
+
+ // 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;
+}
+
+// ListStoragePoolsResponse is the response to a ListStoragePoolsRequest.
+message ListStoragePoolsResponse {
+ // The list of StoragePools
+ repeated StoragePool storage_pools = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// CreateStoragePoolRequest creates a Storage Pool.
+message CreateStoragePoolRequest {
+ // Required. Value for parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/StoragePool"
+ }
+ ];
+
+ // Required. Id of the requesting storage pool
+ // If auto-generating Id server-side, remove this field and
+ // id from the method_signature of Create RPC
+ string storage_pool_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The required parameters to create a new storage pool.
+ StoragePool storage_pool = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// UpdateStoragePoolRequest updates a Storage Pool.
+message UpdateStoragePoolRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // StoragePool resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The pool being updated
+ StoragePool storage_pool = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// DeleteStoragePoolRequest deletes a Storage Pool.
+message DeleteStoragePoolRequest {
+ // Required. Name of the storage pool
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/StoragePool"
+ }
+ ];
+}
+
+// StoragePool is a container for volumes with a service level and capacity.
+// Volumes can be created in a pool of sufficient available capacity.
+// StoragePool capacity is what you are billed for.
+message StoragePool {
+ option (google.api.resource) = {
+ type: "netapp.googleapis.com/StoragePool"
+ pattern: "projects/{project}/locations/{location}/storagePools/{storage_pool}"
+ };
+
+ // The Storage Pool States
+ enum State {
+ // Unspecified Storage Pool State
+ STATE_UNSPECIFIED = 0;
+
+ // Storage Pool State is Ready
+ READY = 1;
+
+ // Storage Pool State is Creating
+ CREATING = 2;
+
+ // Storage Pool State is Deleting
+ DELETING = 3;
+
+ // Storage Pool State is Updating
+ UPDATING = 4;
+
+ // Storage Pool State is Restoring
+ RESTORING = 5;
+
+ // Storage Pool State is Disabled
+ DISABLED = 6;
+
+ // Storage Pool State is Error
+ ERROR = 7;
+ }
+
+ // Output only. Name of the storage pool
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Service level of the storage pool
+ ServiceLevel service_level = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Capacity in GIB of the pool
+ int64 capacity_gib = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Allocated size of all volumes in GIB in the storage pool
+ int64 volume_capacity_gib = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Volume count of the storage pool
+ int32 volume_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the storage pool
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State details of the storage pool
+ string state_details = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Create time of the storage pool
+ google.protobuf.Timestamp create_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Description of the storage pool
+ string description = 9;
+
+ // Labels as key value pairs
+ map labels = 10;
+
+ // Required. VPC Network name.
+ // Format: projects/{project}/global/networks/{network}
+ string network = 11 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "compute.googleapis.com/Network" }
+ ];
+
+ // Specifies the Active Directory to be used for creating a SMB volume.
+ string active_directory = 12 [(google.api.resource_reference) = {
+ type: "netapp.googleapis.com/ActiveDirectory"
+ }];
+
+ // Specifies the KMS config to be used for volume encryption.
+ string kms_config = 13 [(google.api.resource_reference) = {
+ type: "netapp.googleapis.com/KmsConfig"
+ }];
+
+ // Flag indicating if the pool is NFS LDAP enabled or not.
+ bool ldap_enabled = 14;
+
+ // Name of the Private Service Access allocated range. If
+ // not provided, any available range will be chosen.
+ string psa_range = 15;
+
+ // Output only. Specifies the current pool encryption key source.
+ EncryptionType encryption_type = 16
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Allows SO pool to access AD or DNS server from other regions.
+ optional bool global_access_allowed = 17
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto
new file mode 100644
index 000000000000..b657dfa0d8e6
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto
@@ -0,0 +1,540 @@
+// Copyright 2023 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.netapp.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/netapp/v1/common.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.NetApp.V1";
+option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
+option java_multiple_files = true;
+option java_outer_classname = "VolumeProto";
+option java_package = "com.google.cloud.netapp.v1";
+option php_namespace = "Google\\Cloud\\NetApp\\V1";
+option ruby_package = "Google::Cloud::NetApp::V1";
+
+enum Protocols {
+ // Unspecified protocol
+ PROTOCOLS_UNSPECIFIED = 0;
+
+ // NFS V3 protocol
+ NFSV3 = 1;
+
+ // NFS V4 protocol
+ NFSV4 = 2;
+
+ // SMB protocol
+ SMB = 3;
+}
+
+enum AccessType {
+ // Unspecified Access Type
+ ACCESS_TYPE_UNSPECIFIED = 0;
+
+ // Read Only
+ READ_ONLY = 1;
+
+ // Read Write
+ READ_WRITE = 2;
+
+ // None
+ READ_NONE = 3;
+}
+
+// SMBSettings
+// Modifies the behaviour of a SMB volume.
+enum SMBSettings {
+ // Unspecified default option
+ SMB_SETTINGS_UNSPECIFIED = 0;
+
+ // SMB setting encrypt data
+ ENCRYPT_DATA = 1;
+
+ // SMB setting browsable
+ BROWSABLE = 2;
+
+ // SMB setting notify change
+ CHANGE_NOTIFY = 3;
+
+ // SMB setting not to notify change
+ NON_BROWSABLE = 4;
+
+ // SMB setting oplocks
+ OPLOCKS = 5;
+
+ // SMB setting to show snapshots
+ SHOW_SNAPSHOT = 6;
+
+ // SMB setting to show previous versions
+ SHOW_PREVIOUS_VERSIONS = 7;
+
+ // SMB setting to access volume based on enumerartion
+ ACCESS_BASED_ENUMERATION = 8;
+
+ // Continuously available enumeration
+ CONTINUOUSLY_AVAILABLE = 9;
+}
+
+// The security style of the volume, can be either UNIX or NTFS.
+enum SecurityStyle {
+ // SecurityStyle is unspecified
+ SECURITY_STYLE_UNSPECIFIED = 0;
+
+ // SecurityStyle uses NTFS
+ NTFS = 1;
+
+ // SecurityStyle uses NTFS
+ UNIX = 2;
+}
+
+// Actions to be restricted for a volume.
+enum RestrictedAction {
+ // Unspecified restricted action
+ RESTRICTED_ACTION_UNSPECIFIED = 0;
+
+ // Prevent volume from being deleted when mounted.
+ DELETE = 1;
+}
+
+// Message for requesting list of Volumes
+message ListVolumesRequest {
+ // Required. Parent value for ListVolumesRequest
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/Volume"
+ }
+ ];
+
+ // Requested page size. Server may return fewer items than requested.
+ // If unspecified, the server will pick an appropriate default.
+ int32 page_size = 2;
+
+ // A token identifying a page of results the server should return.
+ string page_token = 3;
+
+ // Filtering results
+ string filter = 4;
+
+ // Hint for how to order the results
+ string order_by = 5;
+}
+
+// Message for response to listing Volumes
+message ListVolumesResponse {
+ // The list of Volume
+ repeated Volume volumes = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Message for getting a Volume
+message GetVolumeRequest {
+ // Required. Name of the volume
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" }
+ ];
+}
+
+// Message for creating a Volume
+message CreateVolumeRequest {
+ // Required. Value for parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "netapp.googleapis.com/Volume"
+ }
+ ];
+
+ // Required. Id of the requesting volume
+ // If auto-generating Id server-side, remove this field and
+ // Id from the method_signature of Create RPC
+ string volume_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The volume being created.
+ Volume volume = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Message for updating a Volume
+message UpdateVolumeRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // Volume resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The volume being updated
+ Volume volume = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Message for deleting a Volume
+message DeleteVolumeRequest {
+ // Required. Name of the volume
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" }
+ ];
+
+ // If this field is set as true, CCFE will not block the volume resource
+ // deletion even if it has any snapshots resource. (Otherwise, the request
+ // will only work if the volume has no snapshots.)
+ bool force = 2;
+}
+
+// RevertVolumeRequest reverts the given volume to the specified snapshot.
+message RevertVolumeRequest {
+ // Required. The resource name of the volume, in the format of
+ // projects/{project_id}/locations/{location}/volumes/{volume_id}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" }
+ ];
+
+ // 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}/volumes/{volume_id}/snapshots/{snapshot_id}
+ string snapshot_id = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Volume provides a filesystem that you can mount.
+message Volume {
+ option (google.api.resource) = {
+ type: "netapp.googleapis.com/Volume"
+ pattern: "projects/{project}/locations/{location}/volumes/{volume}"
+ };
+
+ // The volume states
+ enum State {
+ // Unspecified Volume State
+ STATE_UNSPECIFIED = 0;
+
+ // Volume State is Ready
+ READY = 1;
+
+ // Volume State is Creating
+ CREATING = 2;
+
+ // Volume State is Deleting
+ DELETING = 3;
+
+ // Volume State is Updating
+ UPDATING = 4;
+
+ // Volume State is Restoring
+ RESTORING = 5;
+
+ // Volume State is Disabled
+ DISABLED = 6;
+
+ // Volume State is Error
+ ERROR = 7;
+ }
+
+ // Output only. Name of the volume
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the volume
+ State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State details of the volume
+ string state_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Create time of the volume
+ google.protobuf.Timestamp create_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Share name of the volume
+ string share_name = 5 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Name of the Private Service Access allocated range. This is
+ // optional. If not provided, any available range will be chosen.
+ string psa_range = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. StoragePool name of the volume
+ string storage_pool = 7 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/StoragePool"
+ }
+ ];
+
+ // Output only. VPC Network name.
+ // Format: projects/{project}/global/networks/{network}
+ string network = 8 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = { type: "compute.googleapis.com/Network" }
+ ];
+
+ // Output only. Service level of the volume
+ ServiceLevel service_level = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Capacity in GIB of the volume
+ int64 capacity_gib = 10 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Export policy of the volume
+ ExportPolicy export_policy = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Protocols required for the volume
+ repeated Protocols protocols = 12 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. SMB share settings for the volume.
+ repeated SMBSettings smb_settings = 13
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Mount options of this volume
+ repeated MountOption mount_options = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Default unix style permission (e.g. 777) the mount point will be
+ // created with. Applicable for NFS protocol types only.
+ string unix_permissions = 15 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Labels as key value pairs
+ map labels = 16 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Description of the volume
+ string description = 17 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. SnapshotPolicy for a volume.
+ SnapshotPolicy snapshot_policy = 18 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Snap_reserve specifies percentage of volume storage reserved for
+ // snapshot storage. Default is 0 percent.
+ double snap_reserve = 19 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Snapshot_directory if enabled (true) the volume will contain a
+ // read-only .snapshot directory which provides access to each of the volume's
+ // snapshots.
+ bool snapshot_directory = 20 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Used capacity in GIB of the volume. This is computed
+ // periodically and it does not represent the realtime usage.
+ int64 used_gib = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Security Style of the Volume
+ SecurityStyle security_style = 22 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Flag indicating if the volume is a kerberos volume or not, export
+ // policy rules control kerberos security modes (krb5, krb5i, krb5p).
+ bool kerberos_enabled = 23 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Flag indicating if the volume is NFS LDAP enabled or not.
+ bool ldap_enabled = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Specifies the ActiveDirectory name of a SMB volume.
+ string active_directory = 25 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/ActiveDirectory"
+ }
+ ];
+
+ // Optional. Specifies the source of the volume to be created from.
+ RestoreParameters restore_parameters = 26
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Specifies the KMS config to be used for volume encryption.
+ string kms_config = 27 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "netapp.googleapis.com/KmsConfig"
+ }
+ ];
+
+ // Output only. Specified the current volume encryption key source.
+ EncryptionType encryption_type = 28
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates whether the volume is part of a replication
+ // relationship.
+ bool has_replication = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. List of actions that are restricted on this volume.
+ repeated RestrictedAction restricted_actions = 31
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Defines the export policy for the volume.
+message ExportPolicy {
+ // Required. List of export policy rules
+ repeated SimpleExportPolicyRule rules = 1
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// An export policy rule describing various export options.
+message SimpleExportPolicyRule {
+ // Comma separated list of allowed clients IP addresses
+ optional string allowed_clients = 1;
+
+ // Whether Unix root access will be granted.
+ optional string has_root_access = 2;
+
+ // Access type (ReadWrite, ReadOnly, None)
+ optional AccessType access_type = 3;
+
+ // NFS V3 protocol.
+ optional bool nfsv3 = 4;
+
+ // NFS V4 protocol.
+ optional bool nfsv4 = 5;
+
+ // If enabled (true) the rule defines a read only access for clients matching
+ // the 'allowedClients' specification. It enables nfs clients to mount using
+ // 'authentication' kerberos security mode.
+ optional bool kerberos_5_read_only = 6;
+
+ // If enabled (true) the rule defines read and write access for clients
+ // matching the 'allowedClients' specification. It enables nfs clients to
+ // mount using 'authentication' kerberos security mode. The
+ // 'kerberos5ReadOnly' value be ignored if this is enabled.
+ optional bool kerberos_5_read_write = 7;
+
+ // If enabled (true) the rule defines a read only access for clients matching
+ // the 'allowedClients' specification. It enables nfs clients to mount using
+ // 'integrity' kerberos security mode.
+ optional bool kerberos_5i_read_only = 8;
+
+ // If enabled (true) the rule defines read and write access for clients
+ // matching the 'allowedClients' specification. It enables nfs clients to
+ // mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly'
+ // value be ignored if this is enabled.
+ optional bool kerberos_5i_read_write = 9;
+
+ // If enabled (true) the rule defines a read only access for clients matching
+ // the 'allowedClients' specification. It enables nfs clients to mount using
+ // 'privacy' kerberos security mode.
+ optional bool kerberos_5p_read_only = 10;
+
+ // If enabled (true) the rule defines read and write access for clients
+ // matching the 'allowedClients' specification. It enables nfs clients to
+ // mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly'
+ // value be ignored if this is enabled.
+ optional bool kerberos_5p_read_write = 11;
+}
+
+// Snapshot Policy for a volume.
+message SnapshotPolicy {
+ // If enabled, make snapshots automatically according to the schedules.
+ // Default is false.
+ optional bool enabled = 1;
+
+ // Hourly schedule policy.
+ optional HourlySchedule hourly_schedule = 2;
+
+ // Daily schedule policy.
+ optional DailySchedule daily_schedule = 3;
+
+ // Weekly schedule policy.
+ optional WeeklySchedule weekly_schedule = 4;
+
+ // Monthly schedule policy.
+ optional MonthlySchedule monthly_schedule = 5;
+}
+
+// Make a snapshot every hour e.g. at 04:00, 05:00, 06:00.
+message HourlySchedule {
+ // The maximum number of Snapshots to keep for the hourly schedule
+ optional double snapshots_to_keep = 1;
+
+ // Set the minute of the hour to start the snapshot (0-59), defaults to the
+ // top of the hour (0).
+ optional double minute = 2;
+}
+
+// Make a snapshot every day e.g. at 04:00, 05:20, 23:50
+message DailySchedule {
+ // The maximum number of Snapshots to keep for the hourly schedule
+ optional double snapshots_to_keep = 1;
+
+ // Set the minute of the hour to start the snapshot (0-59), defaults to the
+ // top of the hour (0).
+ optional double minute = 2;
+
+ // Set the hour to start the snapshot (0-23), defaults to midnight (0).
+ optional double hour = 3;
+}
+
+// Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday
+// 23:50
+message WeeklySchedule {
+ // The maximum number of Snapshots to keep for the hourly schedule
+ optional double snapshots_to_keep = 1;
+
+ // Set the minute of the hour to start the snapshot (0-59), defaults to the
+ // top of the hour (0).
+ optional double minute = 2;
+
+ // Set the hour to start the snapshot (0-23), defaults to midnight (0).
+ optional double hour = 3;
+
+ // Set the day or days of the week to make a snapshot. Accepts a comma
+ // separated days of the week. Defaults to 'Sunday'.
+ optional string day = 4;
+}
+
+// Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50
+message MonthlySchedule {
+ // The maximum number of Snapshots to keep for the hourly schedule
+ optional double snapshots_to_keep = 1;
+
+ // Set the minute of the hour to start the snapshot (0-59), defaults to the
+ // top of the hour (0).
+ optional double minute = 2;
+
+ // Set the hour to start the snapshot (0-23), defaults to midnight (0).
+ optional double hour = 3;
+
+ // Set the day or days of the month to make a snapshot (1-31). Accepts a
+ // comma separated number of days. Defaults to '1'.
+ optional string days_of_month = 4;
+}
+
+// View only mount options for a volume.
+message MountOption {
+ // Export string
+ string export = 1;
+
+ // Full export string
+ string export_full = 2;
+
+ // Protocol to mount with.
+ Protocols protocol = 3;
+
+ // Instructions for mounting
+ string instructions = 4;
+}
+
+// The RestoreParameters if volume is created from a snapshot or backup.
+message RestoreParameters {
+ // The source that the volume is created from.
+ oneof source {
+ // Full name of the snapshot resource.
+ // Format:
+ // projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
+ string source_snapshot = 1;
+ }
+}
diff --git a/packages/google-cloud-netapp/protos/protos.d.ts b/packages/google-cloud-netapp/protos/protos.d.ts
new file mode 100644
index 000000000000..b1462f53e622
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/protos.d.ts
@@ -0,0 +1,15237 @@
+// Copyright 2023 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 netapp. */
+ namespace netapp {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a ListActiveDirectoriesRequest. */
+ interface IListActiveDirectoriesRequest {
+
+ /** ListActiveDirectoriesRequest parent */
+ parent?: (string|null);
+
+ /** ListActiveDirectoriesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListActiveDirectoriesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListActiveDirectoriesRequest filter */
+ filter?: (string|null);
+
+ /** ListActiveDirectoriesRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListActiveDirectoriesRequest. */
+ class ListActiveDirectoriesRequest implements IListActiveDirectoriesRequest {
+
+ /**
+ * Constructs a new ListActiveDirectoriesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListActiveDirectoriesRequest);
+
+ /** ListActiveDirectoriesRequest parent. */
+ public parent: string;
+
+ /** ListActiveDirectoriesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListActiveDirectoriesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListActiveDirectoriesRequest filter. */
+ public filter: string;
+
+ /** ListActiveDirectoriesRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListActiveDirectoriesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListActiveDirectoriesRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListActiveDirectoriesRequest): google.cloud.netapp.v1.ListActiveDirectoriesRequest;
+
+ /**
+ * Encodes the specified ListActiveDirectoriesRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesRequest.verify|verify} messages.
+ * @param message ListActiveDirectoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListActiveDirectoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListActiveDirectoriesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesRequest.verify|verify} messages.
+ * @param message ListActiveDirectoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListActiveDirectoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListActiveDirectoriesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListActiveDirectoriesRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.ListActiveDirectoriesRequest;
+
+ /**
+ * Decodes a ListActiveDirectoriesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListActiveDirectoriesRequest
+ * @throws {Error} If the payload 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.netapp.v1.ListActiveDirectoriesRequest;
+
+ /**
+ * Verifies a ListActiveDirectoriesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListActiveDirectoriesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListActiveDirectoriesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListActiveDirectoriesRequest;
+
+ /**
+ * Creates a plain object from a ListActiveDirectoriesRequest message. Also converts values to other types if specified.
+ * @param message ListActiveDirectoriesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListActiveDirectoriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListActiveDirectoriesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListActiveDirectoriesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListActiveDirectoriesResponse. */
+ interface IListActiveDirectoriesResponse {
+
+ /** ListActiveDirectoriesResponse activeDirectories */
+ activeDirectories?: (google.cloud.netapp.v1.IActiveDirectory[]|null);
+
+ /** ListActiveDirectoriesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListActiveDirectoriesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListActiveDirectoriesResponse. */
+ class ListActiveDirectoriesResponse implements IListActiveDirectoriesResponse {
+
+ /**
+ * Constructs a new ListActiveDirectoriesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListActiveDirectoriesResponse);
+
+ /** ListActiveDirectoriesResponse activeDirectories. */
+ public activeDirectories: google.cloud.netapp.v1.IActiveDirectory[];
+
+ /** ListActiveDirectoriesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListActiveDirectoriesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListActiveDirectoriesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListActiveDirectoriesResponse instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListActiveDirectoriesResponse): google.cloud.netapp.v1.ListActiveDirectoriesResponse;
+
+ /**
+ * Encodes the specified ListActiveDirectoriesResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesResponse.verify|verify} messages.
+ * @param message ListActiveDirectoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListActiveDirectoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListActiveDirectoriesResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesResponse.verify|verify} messages.
+ * @param message ListActiveDirectoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListActiveDirectoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListActiveDirectoriesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListActiveDirectoriesResponse
+ * @throws {Error} If the payload is not 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.netapp.v1.ListActiveDirectoriesResponse;
+
+ /**
+ * Decodes a ListActiveDirectoriesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListActiveDirectoriesResponse
+ * @throws {Error} If the payload 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.netapp.v1.ListActiveDirectoriesResponse;
+
+ /**
+ * Verifies a ListActiveDirectoriesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListActiveDirectoriesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListActiveDirectoriesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListActiveDirectoriesResponse;
+
+ /**
+ * Creates a plain object from a ListActiveDirectoriesResponse message. Also converts values to other types if specified.
+ * @param message ListActiveDirectoriesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListActiveDirectoriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListActiveDirectoriesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListActiveDirectoriesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetActiveDirectoryRequest. */
+ interface IGetActiveDirectoryRequest {
+
+ /** GetActiveDirectoryRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetActiveDirectoryRequest. */
+ class GetActiveDirectoryRequest implements IGetActiveDirectoryRequest {
+
+ /**
+ * Constructs a new GetActiveDirectoryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IGetActiveDirectoryRequest);
+
+ /** GetActiveDirectoryRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetActiveDirectoryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetActiveDirectoryRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IGetActiveDirectoryRequest): google.cloud.netapp.v1.GetActiveDirectoryRequest;
+
+ /**
+ * Encodes the specified GetActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetActiveDirectoryRequest.verify|verify} messages.
+ * @param message GetActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IGetActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetActiveDirectoryRequest.verify|verify} messages.
+ * @param message GetActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IGetActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetActiveDirectoryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetActiveDirectoryRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.GetActiveDirectoryRequest;
+
+ /**
+ * Decodes a GetActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetActiveDirectoryRequest
+ * @throws {Error} If the payload 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.netapp.v1.GetActiveDirectoryRequest;
+
+ /**
+ * Verifies a GetActiveDirectoryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetActiveDirectoryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetActiveDirectoryRequest;
+
+ /**
+ * Creates a plain object from a GetActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @param message GetActiveDirectoryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.GetActiveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetActiveDirectoryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetActiveDirectoryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateActiveDirectoryRequest. */
+ interface ICreateActiveDirectoryRequest {
+
+ /** CreateActiveDirectoryRequest parent */
+ parent?: (string|null);
+
+ /** CreateActiveDirectoryRequest activeDirectory */
+ activeDirectory?: (google.cloud.netapp.v1.IActiveDirectory|null);
+
+ /** CreateActiveDirectoryRequest activeDirectoryId */
+ activeDirectoryId?: (string|null);
+ }
+
+ /** Represents a CreateActiveDirectoryRequest. */
+ class CreateActiveDirectoryRequest implements ICreateActiveDirectoryRequest {
+
+ /**
+ * Constructs a new CreateActiveDirectoryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ICreateActiveDirectoryRequest);
+
+ /** CreateActiveDirectoryRequest parent. */
+ public parent: string;
+
+ /** CreateActiveDirectoryRequest activeDirectory. */
+ public activeDirectory?: (google.cloud.netapp.v1.IActiveDirectory|null);
+
+ /** CreateActiveDirectoryRequest activeDirectoryId. */
+ public activeDirectoryId: string;
+
+ /**
+ * Creates a new CreateActiveDirectoryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateActiveDirectoryRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ICreateActiveDirectoryRequest): google.cloud.netapp.v1.CreateActiveDirectoryRequest;
+
+ /**
+ * Encodes the specified CreateActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateActiveDirectoryRequest.verify|verify} messages.
+ * @param message CreateActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ICreateActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateActiveDirectoryRequest.verify|verify} messages.
+ * @param message CreateActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ICreateActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateActiveDirectoryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateActiveDirectoryRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.CreateActiveDirectoryRequest;
+
+ /**
+ * Decodes a CreateActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateActiveDirectoryRequest
+ * @throws {Error} If the payload 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.netapp.v1.CreateActiveDirectoryRequest;
+
+ /**
+ * Verifies a CreateActiveDirectoryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateActiveDirectoryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateActiveDirectoryRequest;
+
+ /**
+ * Creates a plain object from a CreateActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @param message CreateActiveDirectoryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.CreateActiveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateActiveDirectoryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateActiveDirectoryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateActiveDirectoryRequest. */
+ interface IUpdateActiveDirectoryRequest {
+
+ /** UpdateActiveDirectoryRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateActiveDirectoryRequest activeDirectory */
+ activeDirectory?: (google.cloud.netapp.v1.IActiveDirectory|null);
+ }
+
+ /** Represents an UpdateActiveDirectoryRequest. */
+ class UpdateActiveDirectoryRequest implements IUpdateActiveDirectoryRequest {
+
+ /**
+ * Constructs a new UpdateActiveDirectoryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IUpdateActiveDirectoryRequest);
+
+ /** UpdateActiveDirectoryRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateActiveDirectoryRequest activeDirectory. */
+ public activeDirectory?: (google.cloud.netapp.v1.IActiveDirectory|null);
+
+ /**
+ * Creates a new UpdateActiveDirectoryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateActiveDirectoryRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IUpdateActiveDirectoryRequest): google.cloud.netapp.v1.UpdateActiveDirectoryRequest;
+
+ /**
+ * Encodes the specified UpdateActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateActiveDirectoryRequest.verify|verify} messages.
+ * @param message UpdateActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IUpdateActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateActiveDirectoryRequest.verify|verify} messages.
+ * @param message UpdateActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateActiveDirectoryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateActiveDirectoryRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.UpdateActiveDirectoryRequest;
+
+ /**
+ * Decodes an UpdateActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateActiveDirectoryRequest
+ * @throws {Error} If the payload 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.netapp.v1.UpdateActiveDirectoryRequest;
+
+ /**
+ * Verifies an UpdateActiveDirectoryRequest message.
+ * @param message Plain 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 UpdateActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateActiveDirectoryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateActiveDirectoryRequest;
+
+ /**
+ * Creates a plain object from an UpdateActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @param message UpdateActiveDirectoryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.UpdateActiveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateActiveDirectoryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateActiveDirectoryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteActiveDirectoryRequest. */
+ interface IDeleteActiveDirectoryRequest {
+
+ /** DeleteActiveDirectoryRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteActiveDirectoryRequest. */
+ class DeleteActiveDirectoryRequest implements IDeleteActiveDirectoryRequest {
+
+ /**
+ * Constructs a new DeleteActiveDirectoryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IDeleteActiveDirectoryRequest);
+
+ /** DeleteActiveDirectoryRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteActiveDirectoryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteActiveDirectoryRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IDeleteActiveDirectoryRequest): google.cloud.netapp.v1.DeleteActiveDirectoryRequest;
+
+ /**
+ * Encodes the specified DeleteActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteActiveDirectoryRequest.verify|verify} messages.
+ * @param message DeleteActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IDeleteActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteActiveDirectoryRequest.verify|verify} messages.
+ * @param message DeleteActiveDirectoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteActiveDirectoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteActiveDirectoryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteActiveDirectoryRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.DeleteActiveDirectoryRequest;
+
+ /**
+ * Decodes a DeleteActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteActiveDirectoryRequest
+ * @throws {Error} If the payload 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.netapp.v1.DeleteActiveDirectoryRequest;
+
+ /**
+ * Verifies a DeleteActiveDirectoryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteActiveDirectoryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteActiveDirectoryRequest;
+
+ /**
+ * Creates a plain object from a DeleteActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @param message DeleteActiveDirectoryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.DeleteActiveDirectoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteActiveDirectoryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteActiveDirectoryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ActiveDirectory. */
+ interface IActiveDirectory {
+
+ /** ActiveDirectory name */
+ name?: (string|null);
+
+ /** ActiveDirectory createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ActiveDirectory state */
+ state?: (google.cloud.netapp.v1.ActiveDirectory.State|keyof typeof google.cloud.netapp.v1.ActiveDirectory.State|null);
+
+ /** ActiveDirectory domain */
+ domain?: (string|null);
+
+ /** ActiveDirectory site */
+ site?: (string|null);
+
+ /** ActiveDirectory dns */
+ dns?: (string|null);
+
+ /** ActiveDirectory netBiosPrefix */
+ netBiosPrefix?: (string|null);
+
+ /** ActiveDirectory organizationalUnit */
+ organizationalUnit?: (string|null);
+
+ /** ActiveDirectory aesEncryption */
+ aesEncryption?: (boolean|null);
+
+ /** ActiveDirectory username */
+ username?: (string|null);
+
+ /** ActiveDirectory password */
+ password?: (string|null);
+
+ /** ActiveDirectory backupOperators */
+ backupOperators?: (string[]|null);
+
+ /** ActiveDirectory securityOperators */
+ securityOperators?: (string[]|null);
+
+ /** ActiveDirectory kdcHostname */
+ kdcHostname?: (string|null);
+
+ /** ActiveDirectory kdcIp */
+ kdcIp?: (string|null);
+
+ /** ActiveDirectory nfsUsersWithLdap */
+ nfsUsersWithLdap?: (boolean|null);
+
+ /** ActiveDirectory description */
+ description?: (string|null);
+
+ /** ActiveDirectory ldapSigning */
+ ldapSigning?: (boolean|null);
+
+ /** ActiveDirectory encryptDcConnections */
+ encryptDcConnections?: (boolean|null);
+
+ /** ActiveDirectory labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ActiveDirectory stateDetails */
+ stateDetails?: (string|null);
+ }
+
+ /** Represents an ActiveDirectory. */
+ class ActiveDirectory implements IActiveDirectory {
+
+ /**
+ * Constructs a new ActiveDirectory.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IActiveDirectory);
+
+ /** ActiveDirectory name. */
+ public name: string;
+
+ /** ActiveDirectory createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ActiveDirectory state. */
+ public state: (google.cloud.netapp.v1.ActiveDirectory.State|keyof typeof google.cloud.netapp.v1.ActiveDirectory.State);
+
+ /** ActiveDirectory domain. */
+ public domain: string;
+
+ /** ActiveDirectory site. */
+ public site: string;
+
+ /** ActiveDirectory dns. */
+ public dns: string;
+
+ /** ActiveDirectory netBiosPrefix. */
+ public netBiosPrefix: string;
+
+ /** ActiveDirectory organizationalUnit. */
+ public organizationalUnit: string;
+
+ /** ActiveDirectory aesEncryption. */
+ public aesEncryption: boolean;
+
+ /** ActiveDirectory username. */
+ public username: string;
+
+ /** ActiveDirectory password. */
+ public password: string;
+
+ /** ActiveDirectory backupOperators. */
+ public backupOperators: string[];
+
+ /** ActiveDirectory securityOperators. */
+ public securityOperators: string[];
+
+ /** ActiveDirectory kdcHostname. */
+ public kdcHostname: string;
+
+ /** ActiveDirectory kdcIp. */
+ public kdcIp: string;
+
+ /** ActiveDirectory nfsUsersWithLdap. */
+ public nfsUsersWithLdap: boolean;
+
+ /** ActiveDirectory description. */
+ public description: string;
+
+ /** ActiveDirectory ldapSigning. */
+ public ldapSigning: boolean;
+
+ /** ActiveDirectory encryptDcConnections. */
+ public encryptDcConnections: boolean;
+
+ /** ActiveDirectory labels. */
+ public labels: { [k: string]: string };
+
+ /** ActiveDirectory stateDetails. */
+ public stateDetails: string;
+
+ /**
+ * Creates a new ActiveDirectory instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ActiveDirectory instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IActiveDirectory): google.cloud.netapp.v1.ActiveDirectory;
+
+ /**
+ * Encodes the specified ActiveDirectory message. Does not implicitly {@link google.cloud.netapp.v1.ActiveDirectory.verify|verify} messages.
+ * @param message ActiveDirectory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IActiveDirectory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ActiveDirectory message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ActiveDirectory.verify|verify} messages.
+ * @param message ActiveDirectory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IActiveDirectory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ActiveDirectory message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ActiveDirectory
+ * @throws {Error} If the payload is not 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.netapp.v1.ActiveDirectory;
+
+ /**
+ * Decodes an ActiveDirectory message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ActiveDirectory
+ * @throws {Error} If the payload 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.netapp.v1.ActiveDirectory;
+
+ /**
+ * Verifies an ActiveDirectory message.
+ * @param message Plain 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 ActiveDirectory message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ActiveDirectory
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ActiveDirectory;
+
+ /**
+ * Creates a plain object from an ActiveDirectory message. Also converts values to other types if specified.
+ * @param message ActiveDirectory
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ActiveDirectory, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ActiveDirectory to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ActiveDirectory
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ActiveDirectory {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 2,
+ UPDATING = 3,
+ IN_USE = 4,
+ DELETING = 5,
+ ERROR = 6
+ }
+ }
+
+ /** Represents a NetApp */
+ class NetApp extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new NetApp 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 NetApp 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): NetApp;
+
+ /**
+ * Calls ListStoragePools.
+ * @param request ListStoragePoolsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListStoragePoolsResponse
+ */
+ public listStoragePools(request: google.cloud.netapp.v1.IListStoragePoolsRequest, callback: google.cloud.netapp.v1.NetApp.ListStoragePoolsCallback): void;
+
+ /**
+ * Calls ListStoragePools.
+ * @param request ListStoragePoolsRequest message or plain object
+ * @returns Promise
+ */
+ public listStoragePools(request: google.cloud.netapp.v1.IListStoragePoolsRequest): Promise;
+
+ /**
+ * Calls CreateStoragePool.
+ * @param request CreateStoragePoolRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createStoragePool(request: google.cloud.netapp.v1.ICreateStoragePoolRequest, callback: google.cloud.netapp.v1.NetApp.CreateStoragePoolCallback): void;
+
+ /**
+ * Calls CreateStoragePool.
+ * @param request CreateStoragePoolRequest message or plain object
+ * @returns Promise
+ */
+ public createStoragePool(request: google.cloud.netapp.v1.ICreateStoragePoolRequest): Promise;
+
+ /**
+ * Calls GetStoragePool.
+ * @param request GetStoragePoolRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and StoragePool
+ */
+ public getStoragePool(request: google.cloud.netapp.v1.IGetStoragePoolRequest, callback: google.cloud.netapp.v1.NetApp.GetStoragePoolCallback): void;
+
+ /**
+ * Calls GetStoragePool.
+ * @param request GetStoragePoolRequest message or plain object
+ * @returns Promise
+ */
+ public getStoragePool(request: google.cloud.netapp.v1.IGetStoragePoolRequest): Promise;
+
+ /**
+ * Calls UpdateStoragePool.
+ * @param request UpdateStoragePoolRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateStoragePool(request: google.cloud.netapp.v1.IUpdateStoragePoolRequest, callback: google.cloud.netapp.v1.NetApp.UpdateStoragePoolCallback): void;
+
+ /**
+ * Calls UpdateStoragePool.
+ * @param request UpdateStoragePoolRequest message or plain object
+ * @returns Promise
+ */
+ public updateStoragePool(request: google.cloud.netapp.v1.IUpdateStoragePoolRequest): Promise;
+
+ /**
+ * Calls DeleteStoragePool.
+ * @param request DeleteStoragePoolRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteStoragePool(request: google.cloud.netapp.v1.IDeleteStoragePoolRequest, callback: google.cloud.netapp.v1.NetApp.DeleteStoragePoolCallback): void;
+
+ /**
+ * Calls DeleteStoragePool.
+ * @param request DeleteStoragePoolRequest message or plain object
+ * @returns Promise
+ */
+ public deleteStoragePool(request: google.cloud.netapp.v1.IDeleteStoragePoolRequest): Promise;
+
+ /**
+ * Calls ListVolumes.
+ * @param request ListVolumesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListVolumesResponse
+ */
+ public listVolumes(request: google.cloud.netapp.v1.IListVolumesRequest, callback: google.cloud.netapp.v1.NetApp.ListVolumesCallback): void;
+
+ /**
+ * Calls ListVolumes.
+ * @param request ListVolumesRequest message or plain object
+ * @returns Promise
+ */
+ public listVolumes(request: google.cloud.netapp.v1.IListVolumesRequest): Promise;
+
+ /**
+ * Calls GetVolume.
+ * @param request GetVolumeRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Volume
+ */
+ public getVolume(request: google.cloud.netapp.v1.IGetVolumeRequest, callback: google.cloud.netapp.v1.NetApp.GetVolumeCallback): void;
+
+ /**
+ * Calls GetVolume.
+ * @param request GetVolumeRequest message or plain object
+ * @returns Promise
+ */
+ public getVolume(request: google.cloud.netapp.v1.IGetVolumeRequest): Promise;
+
+ /**
+ * Calls CreateVolume.
+ * @param request CreateVolumeRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createVolume(request: google.cloud.netapp.v1.ICreateVolumeRequest, callback: google.cloud.netapp.v1.NetApp.CreateVolumeCallback): void;
+
+ /**
+ * Calls CreateVolume.
+ * @param request CreateVolumeRequest message or plain object
+ * @returns Promise
+ */
+ public createVolume(request: google.cloud.netapp.v1.ICreateVolumeRequest): Promise;
+
+ /**
+ * Calls UpdateVolume.
+ * @param request UpdateVolumeRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateVolume(request: google.cloud.netapp.v1.IUpdateVolumeRequest, callback: google.cloud.netapp.v1.NetApp.UpdateVolumeCallback): void;
+
+ /**
+ * Calls UpdateVolume.
+ * @param request UpdateVolumeRequest message or plain object
+ * @returns Promise
+ */
+ public updateVolume(request: google.cloud.netapp.v1.IUpdateVolumeRequest): Promise;
+
+ /**
+ * Calls DeleteVolume.
+ * @param request DeleteVolumeRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteVolume(request: google.cloud.netapp.v1.IDeleteVolumeRequest, callback: google.cloud.netapp.v1.NetApp.DeleteVolumeCallback): void;
+
+ /**
+ * Calls DeleteVolume.
+ * @param request DeleteVolumeRequest message or plain object
+ * @returns Promise
+ */
+ public deleteVolume(request: google.cloud.netapp.v1.IDeleteVolumeRequest): Promise;
+
+ /**
+ * Calls RevertVolume.
+ * @param request RevertVolumeRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public revertVolume(request: google.cloud.netapp.v1.IRevertVolumeRequest, callback: google.cloud.netapp.v1.NetApp.RevertVolumeCallback): void;
+
+ /**
+ * Calls RevertVolume.
+ * @param request RevertVolumeRequest message or plain object
+ * @returns Promise
+ */
+ public revertVolume(request: google.cloud.netapp.v1.IRevertVolumeRequest): 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.netapp.v1.IListSnapshotsRequest, callback: google.cloud.netapp.v1.NetApp.ListSnapshotsCallback): void;
+
+ /**
+ * Calls ListSnapshots.
+ * @param request ListSnapshotsRequest message or plain object
+ * @returns Promise
+ */
+ public listSnapshots(request: google.cloud.netapp.v1.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.netapp.v1.IGetSnapshotRequest, callback: google.cloud.netapp.v1.NetApp.GetSnapshotCallback): void;
+
+ /**
+ * Calls GetSnapshot.
+ * @param request GetSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public getSnapshot(request: google.cloud.netapp.v1.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.netapp.v1.ICreateSnapshotRequest, callback: google.cloud.netapp.v1.NetApp.CreateSnapshotCallback): void;
+
+ /**
+ * Calls CreateSnapshot.
+ * @param request CreateSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public createSnapshot(request: google.cloud.netapp.v1.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.netapp.v1.IDeleteSnapshotRequest, callback: google.cloud.netapp.v1.NetApp.DeleteSnapshotCallback): void;
+
+ /**
+ * Calls DeleteSnapshot.
+ * @param request DeleteSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public deleteSnapshot(request: google.cloud.netapp.v1.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.netapp.v1.IUpdateSnapshotRequest, callback: google.cloud.netapp.v1.NetApp.UpdateSnapshotCallback): void;
+
+ /**
+ * Calls UpdateSnapshot.
+ * @param request UpdateSnapshotRequest message or plain object
+ * @returns Promise
+ */
+ public updateSnapshot(request: google.cloud.netapp.v1.IUpdateSnapshotRequest): Promise;
+
+ /**
+ * Calls ListActiveDirectories.
+ * @param request ListActiveDirectoriesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListActiveDirectoriesResponse
+ */
+ public listActiveDirectories(request: google.cloud.netapp.v1.IListActiveDirectoriesRequest, callback: google.cloud.netapp.v1.NetApp.ListActiveDirectoriesCallback): void;
+
+ /**
+ * Calls ListActiveDirectories.
+ * @param request ListActiveDirectoriesRequest message or plain object
+ * @returns Promise
+ */
+ public listActiveDirectories(request: google.cloud.netapp.v1.IListActiveDirectoriesRequest): Promise;
+
+ /**
+ * Calls GetActiveDirectory.
+ * @param request GetActiveDirectoryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ActiveDirectory
+ */
+ public getActiveDirectory(request: google.cloud.netapp.v1.IGetActiveDirectoryRequest, callback: google.cloud.netapp.v1.NetApp.GetActiveDirectoryCallback): void;
+
+ /**
+ * Calls GetActiveDirectory.
+ * @param request GetActiveDirectoryRequest message or plain object
+ * @returns Promise
+ */
+ public getActiveDirectory(request: google.cloud.netapp.v1.IGetActiveDirectoryRequest): Promise;
+
+ /**
+ * Calls CreateActiveDirectory.
+ * @param request CreateActiveDirectoryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createActiveDirectory(request: google.cloud.netapp.v1.ICreateActiveDirectoryRequest, callback: google.cloud.netapp.v1.NetApp.CreateActiveDirectoryCallback): void;
+
+ /**
+ * Calls CreateActiveDirectory.
+ * @param request CreateActiveDirectoryRequest message or plain object
+ * @returns Promise
+ */
+ public createActiveDirectory(request: google.cloud.netapp.v1.ICreateActiveDirectoryRequest): Promise;
+
+ /**
+ * Calls UpdateActiveDirectory.
+ * @param request UpdateActiveDirectoryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateActiveDirectory(request: google.cloud.netapp.v1.IUpdateActiveDirectoryRequest, callback: google.cloud.netapp.v1.NetApp.UpdateActiveDirectoryCallback): void;
+
+ /**
+ * Calls UpdateActiveDirectory.
+ * @param request UpdateActiveDirectoryRequest message or plain object
+ * @returns Promise
+ */
+ public updateActiveDirectory(request: google.cloud.netapp.v1.IUpdateActiveDirectoryRequest): Promise;
+
+ /**
+ * Calls DeleteActiveDirectory.
+ * @param request DeleteActiveDirectoryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteActiveDirectory(request: google.cloud.netapp.v1.IDeleteActiveDirectoryRequest, callback: google.cloud.netapp.v1.NetApp.DeleteActiveDirectoryCallback): void;
+
+ /**
+ * Calls DeleteActiveDirectory.
+ * @param request DeleteActiveDirectoryRequest message or plain object
+ * @returns Promise
+ */
+ public deleteActiveDirectory(request: google.cloud.netapp.v1.IDeleteActiveDirectoryRequest): Promise;
+
+ /**
+ * Calls ListKmsConfigs.
+ * @param request ListKmsConfigsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListKmsConfigsResponse
+ */
+ public listKmsConfigs(request: google.cloud.netapp.v1.IListKmsConfigsRequest, callback: google.cloud.netapp.v1.NetApp.ListKmsConfigsCallback): void;
+
+ /**
+ * Calls ListKmsConfigs.
+ * @param request ListKmsConfigsRequest message or plain object
+ * @returns Promise
+ */
+ public listKmsConfigs(request: google.cloud.netapp.v1.IListKmsConfigsRequest): Promise;
+
+ /**
+ * Calls CreateKmsConfig.
+ * @param request CreateKmsConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createKmsConfig(request: google.cloud.netapp.v1.ICreateKmsConfigRequest, callback: google.cloud.netapp.v1.NetApp.CreateKmsConfigCallback): void;
+
+ /**
+ * Calls CreateKmsConfig.
+ * @param request CreateKmsConfigRequest message or plain object
+ * @returns Promise
+ */
+ public createKmsConfig(request: google.cloud.netapp.v1.ICreateKmsConfigRequest): Promise;
+
+ /**
+ * Calls GetKmsConfig.
+ * @param request GetKmsConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and KmsConfig
+ */
+ public getKmsConfig(request: google.cloud.netapp.v1.IGetKmsConfigRequest, callback: google.cloud.netapp.v1.NetApp.GetKmsConfigCallback): void;
+
+ /**
+ * Calls GetKmsConfig.
+ * @param request GetKmsConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getKmsConfig(request: google.cloud.netapp.v1.IGetKmsConfigRequest): Promise;
+
+ /**
+ * Calls UpdateKmsConfig.
+ * @param request UpdateKmsConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateKmsConfig(request: google.cloud.netapp.v1.IUpdateKmsConfigRequest, callback: google.cloud.netapp.v1.NetApp.UpdateKmsConfigCallback): void;
+
+ /**
+ * Calls UpdateKmsConfig.
+ * @param request UpdateKmsConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateKmsConfig(request: google.cloud.netapp.v1.IUpdateKmsConfigRequest): Promise;
+
+ /**
+ * Calls EncryptVolumes.
+ * @param request EncryptVolumesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public encryptVolumes(request: google.cloud.netapp.v1.IEncryptVolumesRequest, callback: google.cloud.netapp.v1.NetApp.EncryptVolumesCallback): void;
+
+ /**
+ * Calls EncryptVolumes.
+ * @param request EncryptVolumesRequest message or plain object
+ * @returns Promise
+ */
+ public encryptVolumes(request: google.cloud.netapp.v1.IEncryptVolumesRequest): Promise;
+
+ /**
+ * Calls VerifyKmsConfig.
+ * @param request VerifyKmsConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and VerifyKmsConfigResponse
+ */
+ public verifyKmsConfig(request: google.cloud.netapp.v1.IVerifyKmsConfigRequest, callback: google.cloud.netapp.v1.NetApp.VerifyKmsConfigCallback): void;
+
+ /**
+ * Calls VerifyKmsConfig.
+ * @param request VerifyKmsConfigRequest message or plain object
+ * @returns Promise
+ */
+ public verifyKmsConfig(request: google.cloud.netapp.v1.IVerifyKmsConfigRequest): Promise;
+
+ /**
+ * Calls DeleteKmsConfig.
+ * @param request DeleteKmsConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteKmsConfig(request: google.cloud.netapp.v1.IDeleteKmsConfigRequest, callback: google.cloud.netapp.v1.NetApp.DeleteKmsConfigCallback): void;
+
+ /**
+ * Calls DeleteKmsConfig.
+ * @param request DeleteKmsConfigRequest message or plain object
+ * @returns Promise
+ */
+ public deleteKmsConfig(request: google.cloud.netapp.v1.IDeleteKmsConfigRequest): Promise;
+
+ /**
+ * Calls ListReplications.
+ * @param request ListReplicationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListReplicationsResponse
+ */
+ public listReplications(request: google.cloud.netapp.v1.IListReplicationsRequest, callback: google.cloud.netapp.v1.NetApp.ListReplicationsCallback): void;
+
+ /**
+ * Calls ListReplications.
+ * @param request ListReplicationsRequest message or plain object
+ * @returns Promise
+ */
+ public listReplications(request: google.cloud.netapp.v1.IListReplicationsRequest): Promise;
+
+ /**
+ * Calls GetReplication.
+ * @param request GetReplicationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Replication
+ */
+ public getReplication(request: google.cloud.netapp.v1.IGetReplicationRequest, callback: google.cloud.netapp.v1.NetApp.GetReplicationCallback): void;
+
+ /**
+ * Calls GetReplication.
+ * @param request GetReplicationRequest message or plain object
+ * @returns Promise
+ */
+ public getReplication(request: google.cloud.netapp.v1.IGetReplicationRequest): Promise;
+
+ /**
+ * Calls CreateReplication.
+ * @param request CreateReplicationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createReplication(request: google.cloud.netapp.v1.ICreateReplicationRequest, callback: google.cloud.netapp.v1.NetApp.CreateReplicationCallback): void;
+
+ /**
+ * Calls CreateReplication.
+ * @param request CreateReplicationRequest message or plain object
+ * @returns Promise
+ */
+ public createReplication(request: google.cloud.netapp.v1.ICreateReplicationRequest): Promise;
+
+ /**
+ * Calls DeleteReplication.
+ * @param request DeleteReplicationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteReplication(request: google.cloud.netapp.v1.IDeleteReplicationRequest, callback: google.cloud.netapp.v1.NetApp.DeleteReplicationCallback): void;
+
+ /**
+ * Calls DeleteReplication.
+ * @param request DeleteReplicationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteReplication(request: google.cloud.netapp.v1.IDeleteReplicationRequest): Promise;
+
+ /**
+ * Calls UpdateReplication.
+ * @param request UpdateReplicationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateReplication(request: google.cloud.netapp.v1.IUpdateReplicationRequest, callback: google.cloud.netapp.v1.NetApp.UpdateReplicationCallback): void;
+
+ /**
+ * Calls UpdateReplication.
+ * @param request UpdateReplicationRequest message or plain object
+ * @returns Promise
+ */
+ public updateReplication(request: google.cloud.netapp.v1.IUpdateReplicationRequest): Promise;
+
+ /**
+ * Calls StopReplication.
+ * @param request StopReplicationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public stopReplication(request: google.cloud.netapp.v1.IStopReplicationRequest, callback: google.cloud.netapp.v1.NetApp.StopReplicationCallback): void;
+
+ /**
+ * Calls StopReplication.
+ * @param request StopReplicationRequest message or plain object
+ * @returns Promise
+ */
+ public stopReplication(request: google.cloud.netapp.v1.IStopReplicationRequest): Promise;
+
+ /**
+ * Calls ResumeReplication.
+ * @param request ResumeReplicationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public resumeReplication(request: google.cloud.netapp.v1.IResumeReplicationRequest, callback: google.cloud.netapp.v1.NetApp.ResumeReplicationCallback): void;
+
+ /**
+ * Calls ResumeReplication.
+ * @param request ResumeReplicationRequest message or plain object
+ * @returns Promise
+ */
+ public resumeReplication(request: google.cloud.netapp.v1.IResumeReplicationRequest): Promise;
+
+ /**
+ * Calls ReverseReplicationDirection.
+ * @param request ReverseReplicationDirectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public reverseReplicationDirection(request: google.cloud.netapp.v1.IReverseReplicationDirectionRequest, callback: google.cloud.netapp.v1.NetApp.ReverseReplicationDirectionCallback): void;
+
+ /**
+ * Calls ReverseReplicationDirection.
+ * @param request ReverseReplicationDirectionRequest message or plain object
+ * @returns Promise
+ */
+ public reverseReplicationDirection(request: google.cloud.netapp.v1.IReverseReplicationDirectionRequest): Promise;
+ }
+
+ namespace NetApp {
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listStoragePools}.
+ * @param error Error, if any
+ * @param [response] ListStoragePoolsResponse
+ */
+ type ListStoragePoolsCallback = (error: (Error|null), response?: google.cloud.netapp.v1.ListStoragePoolsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createStoragePool}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateStoragePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getStoragePool}.
+ * @param error Error, if any
+ * @param [response] StoragePool
+ */
+ type GetStoragePoolCallback = (error: (Error|null), response?: google.cloud.netapp.v1.StoragePool) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateStoragePool}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateStoragePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteStoragePool}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteStoragePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listVolumes}.
+ * @param error Error, if any
+ * @param [response] ListVolumesResponse
+ */
+ type ListVolumesCallback = (error: (Error|null), response?: google.cloud.netapp.v1.ListVolumesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getVolume}.
+ * @param error Error, if any
+ * @param [response] Volume
+ */
+ type GetVolumeCallback = (error: (Error|null), response?: google.cloud.netapp.v1.Volume) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createVolume}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateVolumeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateVolume}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateVolumeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteVolume}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteVolumeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|revertVolume}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RevertVolumeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listSnapshots}.
+ * @param error Error, if any
+ * @param [response] ListSnapshotsResponse
+ */
+ type ListSnapshotsCallback = (error: (Error|null), response?: google.cloud.netapp.v1.ListSnapshotsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getSnapshot}.
+ * @param error Error, if any
+ * @param [response] Snapshot
+ */
+ type GetSnapshotCallback = (error: (Error|null), response?: google.cloud.netapp.v1.Snapshot) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|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.netapp.v1.NetApp|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.netapp.v1.NetApp|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.netapp.v1.NetApp|listActiveDirectories}.
+ * @param error Error, if any
+ * @param [response] ListActiveDirectoriesResponse
+ */
+ type ListActiveDirectoriesCallback = (error: (Error|null), response?: google.cloud.netapp.v1.ListActiveDirectoriesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getActiveDirectory}.
+ * @param error Error, if any
+ * @param [response] ActiveDirectory
+ */
+ type GetActiveDirectoryCallback = (error: (Error|null), response?: google.cloud.netapp.v1.ActiveDirectory) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createActiveDirectory}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateActiveDirectoryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateActiveDirectory}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateActiveDirectoryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteActiveDirectory}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteActiveDirectoryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listKmsConfigs}.
+ * @param error Error, if any
+ * @param [response] ListKmsConfigsResponse
+ */
+ type ListKmsConfigsCallback = (error: (Error|null), response?: google.cloud.netapp.v1.ListKmsConfigsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createKmsConfig}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateKmsConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getKmsConfig}.
+ * @param error Error, if any
+ * @param [response] KmsConfig
+ */
+ type GetKmsConfigCallback = (error: (Error|null), response?: google.cloud.netapp.v1.KmsConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateKmsConfig}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateKmsConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|encryptVolumes}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type EncryptVolumesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|verifyKmsConfig}.
+ * @param error Error, if any
+ * @param [response] VerifyKmsConfigResponse
+ */
+ type VerifyKmsConfigCallback = (error: (Error|null), response?: google.cloud.netapp.v1.VerifyKmsConfigResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteKmsConfig}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteKmsConfigCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listReplications}.
+ * @param error Error, if any
+ * @param [response] ListReplicationsResponse
+ */
+ type ListReplicationsCallback = (error: (Error|null), response?: google.cloud.netapp.v1.ListReplicationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getReplication}.
+ * @param error Error, if any
+ * @param [response] Replication
+ */
+ type GetReplicationCallback = (error: (Error|null), response?: google.cloud.netapp.v1.Replication) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createReplication}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateReplicationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteReplication}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteReplicationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateReplication}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateReplicationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|stopReplication}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type StopReplicationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|resumeReplication}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ResumeReplicationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|reverseReplicationDirection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ReverseReplicationDirectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** 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 statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (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.netapp.v1.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 statusMessage. */
+ public statusMessage: string;
+
+ /** OperationMetadata requestedCancellation. */
+ public requestedCancellation: 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.netapp.v1.IOperationMetadata): google.cloud.netapp.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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;
+ }
+
+ /** Properties of a GetKmsConfigRequest. */
+ interface IGetKmsConfigRequest {
+
+ /** GetKmsConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetKmsConfigRequest. */
+ class GetKmsConfigRequest implements IGetKmsConfigRequest {
+
+ /**
+ * Constructs a new GetKmsConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IGetKmsConfigRequest);
+
+ /** GetKmsConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetKmsConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetKmsConfigRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IGetKmsConfigRequest): google.cloud.netapp.v1.GetKmsConfigRequest;
+
+ /**
+ * Encodes the specified GetKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetKmsConfigRequest.verify|verify} messages.
+ * @param message GetKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IGetKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetKmsConfigRequest.verify|verify} messages.
+ * @param message GetKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IGetKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetKmsConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetKmsConfigRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.GetKmsConfigRequest;
+
+ /**
+ * Decodes a GetKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetKmsConfigRequest
+ * @throws {Error} If the payload 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.netapp.v1.GetKmsConfigRequest;
+
+ /**
+ * Verifies a GetKmsConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetKmsConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetKmsConfigRequest;
+
+ /**
+ * Creates a plain object from a GetKmsConfigRequest message. Also converts values to other types if specified.
+ * @param message GetKmsConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.GetKmsConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetKmsConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetKmsConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListKmsConfigsRequest. */
+ interface IListKmsConfigsRequest {
+
+ /** ListKmsConfigsRequest parent */
+ parent?: (string|null);
+
+ /** ListKmsConfigsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListKmsConfigsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListKmsConfigsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListKmsConfigsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListKmsConfigsRequest. */
+ class ListKmsConfigsRequest implements IListKmsConfigsRequest {
+
+ /**
+ * Constructs a new ListKmsConfigsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListKmsConfigsRequest);
+
+ /** ListKmsConfigsRequest parent. */
+ public parent: string;
+
+ /** ListKmsConfigsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListKmsConfigsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListKmsConfigsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListKmsConfigsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListKmsConfigsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListKmsConfigsRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListKmsConfigsRequest): google.cloud.netapp.v1.ListKmsConfigsRequest;
+
+ /**
+ * Encodes the specified ListKmsConfigsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsRequest.verify|verify} messages.
+ * @param message ListKmsConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListKmsConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListKmsConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsRequest.verify|verify} messages.
+ * @param message ListKmsConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListKmsConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListKmsConfigsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListKmsConfigsRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.ListKmsConfigsRequest;
+
+ /**
+ * Decodes a ListKmsConfigsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListKmsConfigsRequest
+ * @throws {Error} If the payload 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.netapp.v1.ListKmsConfigsRequest;
+
+ /**
+ * Verifies a ListKmsConfigsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListKmsConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListKmsConfigsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListKmsConfigsRequest;
+
+ /**
+ * Creates a plain object from a ListKmsConfigsRequest message. Also converts values to other types if specified.
+ * @param message ListKmsConfigsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListKmsConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListKmsConfigsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListKmsConfigsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListKmsConfigsResponse. */
+ interface IListKmsConfigsResponse {
+
+ /** ListKmsConfigsResponse kmsConfigs */
+ kmsConfigs?: (google.cloud.netapp.v1.IKmsConfig[]|null);
+
+ /** ListKmsConfigsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListKmsConfigsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListKmsConfigsResponse. */
+ class ListKmsConfigsResponse implements IListKmsConfigsResponse {
+
+ /**
+ * Constructs a new ListKmsConfigsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListKmsConfigsResponse);
+
+ /** ListKmsConfigsResponse kmsConfigs. */
+ public kmsConfigs: google.cloud.netapp.v1.IKmsConfig[];
+
+ /** ListKmsConfigsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListKmsConfigsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListKmsConfigsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListKmsConfigsResponse instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListKmsConfigsResponse): google.cloud.netapp.v1.ListKmsConfigsResponse;
+
+ /**
+ * Encodes the specified ListKmsConfigsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsResponse.verify|verify} messages.
+ * @param message ListKmsConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListKmsConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListKmsConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsResponse.verify|verify} messages.
+ * @param message ListKmsConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListKmsConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListKmsConfigsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListKmsConfigsResponse
+ * @throws {Error} If the payload is not 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.netapp.v1.ListKmsConfigsResponse;
+
+ /**
+ * Decodes a ListKmsConfigsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListKmsConfigsResponse
+ * @throws {Error} If the payload 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.netapp.v1.ListKmsConfigsResponse;
+
+ /**
+ * Verifies a ListKmsConfigsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListKmsConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListKmsConfigsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListKmsConfigsResponse;
+
+ /**
+ * Creates a plain object from a ListKmsConfigsResponse message. Also converts values to other types if specified.
+ * @param message ListKmsConfigsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListKmsConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListKmsConfigsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListKmsConfigsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateKmsConfigRequest. */
+ interface ICreateKmsConfigRequest {
+
+ /** CreateKmsConfigRequest parent */
+ parent?: (string|null);
+
+ /** CreateKmsConfigRequest kmsConfigId */
+ kmsConfigId?: (string|null);
+
+ /** CreateKmsConfigRequest kmsConfig */
+ kmsConfig?: (google.cloud.netapp.v1.IKmsConfig|null);
+ }
+
+ /** Represents a CreateKmsConfigRequest. */
+ class CreateKmsConfigRequest implements ICreateKmsConfigRequest {
+
+ /**
+ * Constructs a new CreateKmsConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ICreateKmsConfigRequest);
+
+ /** CreateKmsConfigRequest parent. */
+ public parent: string;
+
+ /** CreateKmsConfigRequest kmsConfigId. */
+ public kmsConfigId: string;
+
+ /** CreateKmsConfigRequest kmsConfig. */
+ public kmsConfig?: (google.cloud.netapp.v1.IKmsConfig|null);
+
+ /**
+ * Creates a new CreateKmsConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateKmsConfigRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ICreateKmsConfigRequest): google.cloud.netapp.v1.CreateKmsConfigRequest;
+
+ /**
+ * Encodes the specified CreateKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateKmsConfigRequest.verify|verify} messages.
+ * @param message CreateKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ICreateKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateKmsConfigRequest.verify|verify} messages.
+ * @param message CreateKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ICreateKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateKmsConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateKmsConfigRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.CreateKmsConfigRequest;
+
+ /**
+ * Decodes a CreateKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateKmsConfigRequest
+ * @throws {Error} If the payload 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.netapp.v1.CreateKmsConfigRequest;
+
+ /**
+ * Verifies a CreateKmsConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateKmsConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateKmsConfigRequest;
+
+ /**
+ * Creates a plain object from a CreateKmsConfigRequest message. Also converts values to other types if specified.
+ * @param message CreateKmsConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.CreateKmsConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateKmsConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateKmsConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateKmsConfigRequest. */
+ interface IUpdateKmsConfigRequest {
+
+ /** UpdateKmsConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateKmsConfigRequest kmsConfig */
+ kmsConfig?: (google.cloud.netapp.v1.IKmsConfig|null);
+ }
+
+ /** Represents an UpdateKmsConfigRequest. */
+ class UpdateKmsConfigRequest implements IUpdateKmsConfigRequest {
+
+ /**
+ * Constructs a new UpdateKmsConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IUpdateKmsConfigRequest);
+
+ /** UpdateKmsConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateKmsConfigRequest kmsConfig. */
+ public kmsConfig?: (google.cloud.netapp.v1.IKmsConfig|null);
+
+ /**
+ * Creates a new UpdateKmsConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateKmsConfigRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IUpdateKmsConfigRequest): google.cloud.netapp.v1.UpdateKmsConfigRequest;
+
+ /**
+ * Encodes the specified UpdateKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateKmsConfigRequest.verify|verify} messages.
+ * @param message UpdateKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IUpdateKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateKmsConfigRequest.verify|verify} messages.
+ * @param message UpdateKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateKmsConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateKmsConfigRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.UpdateKmsConfigRequest;
+
+ /**
+ * Decodes an UpdateKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateKmsConfigRequest
+ * @throws {Error} If the payload 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.netapp.v1.UpdateKmsConfigRequest;
+
+ /**
+ * Verifies an UpdateKmsConfigRequest message.
+ * @param message Plain 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 UpdateKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateKmsConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateKmsConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateKmsConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateKmsConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.UpdateKmsConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateKmsConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateKmsConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteKmsConfigRequest. */
+ interface IDeleteKmsConfigRequest {
+
+ /** DeleteKmsConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteKmsConfigRequest. */
+ class DeleteKmsConfigRequest implements IDeleteKmsConfigRequest {
+
+ /**
+ * Constructs a new DeleteKmsConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IDeleteKmsConfigRequest);
+
+ /** DeleteKmsConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteKmsConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteKmsConfigRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IDeleteKmsConfigRequest): google.cloud.netapp.v1.DeleteKmsConfigRequest;
+
+ /**
+ * Encodes the specified DeleteKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteKmsConfigRequest.verify|verify} messages.
+ * @param message DeleteKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IDeleteKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteKmsConfigRequest.verify|verify} messages.
+ * @param message DeleteKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteKmsConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteKmsConfigRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.DeleteKmsConfigRequest;
+
+ /**
+ * Decodes a DeleteKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteKmsConfigRequest
+ * @throws {Error} If the payload 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.netapp.v1.DeleteKmsConfigRequest;
+
+ /**
+ * Verifies a DeleteKmsConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteKmsConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteKmsConfigRequest;
+
+ /**
+ * Creates a plain object from a DeleteKmsConfigRequest message. Also converts values to other types if specified.
+ * @param message DeleteKmsConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.DeleteKmsConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteKmsConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteKmsConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EncryptVolumesRequest. */
+ interface IEncryptVolumesRequest {
+
+ /** EncryptVolumesRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents an EncryptVolumesRequest. */
+ class EncryptVolumesRequest implements IEncryptVolumesRequest {
+
+ /**
+ * Constructs a new EncryptVolumesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IEncryptVolumesRequest);
+
+ /** EncryptVolumesRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new EncryptVolumesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EncryptVolumesRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IEncryptVolumesRequest): google.cloud.netapp.v1.EncryptVolumesRequest;
+
+ /**
+ * Encodes the specified EncryptVolumesRequest message. Does not implicitly {@link google.cloud.netapp.v1.EncryptVolumesRequest.verify|verify} messages.
+ * @param message EncryptVolumesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IEncryptVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EncryptVolumesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.EncryptVolumesRequest.verify|verify} messages.
+ * @param message EncryptVolumesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IEncryptVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EncryptVolumesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EncryptVolumesRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.EncryptVolumesRequest;
+
+ /**
+ * Decodes an EncryptVolumesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EncryptVolumesRequest
+ * @throws {Error} If the payload 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.netapp.v1.EncryptVolumesRequest;
+
+ /**
+ * Verifies an EncryptVolumesRequest message.
+ * @param message Plain 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 EncryptVolumesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EncryptVolumesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.EncryptVolumesRequest;
+
+ /**
+ * Creates a plain object from an EncryptVolumesRequest message. Also converts values to other types if specified.
+ * @param message EncryptVolumesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.EncryptVolumesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EncryptVolumesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EncryptVolumesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VerifyKmsConfigRequest. */
+ interface IVerifyKmsConfigRequest {
+
+ /** VerifyKmsConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a VerifyKmsConfigRequest. */
+ class VerifyKmsConfigRequest implements IVerifyKmsConfigRequest {
+
+ /**
+ * Constructs a new VerifyKmsConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IVerifyKmsConfigRequest);
+
+ /** VerifyKmsConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new VerifyKmsConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VerifyKmsConfigRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IVerifyKmsConfigRequest): google.cloud.netapp.v1.VerifyKmsConfigRequest;
+
+ /**
+ * Encodes the specified VerifyKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigRequest.verify|verify} messages.
+ * @param message VerifyKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IVerifyKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VerifyKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigRequest.verify|verify} messages.
+ * @param message VerifyKmsConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IVerifyKmsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VerifyKmsConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VerifyKmsConfigRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.VerifyKmsConfigRequest;
+
+ /**
+ * Decodes a VerifyKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VerifyKmsConfigRequest
+ * @throws {Error} If the payload 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.netapp.v1.VerifyKmsConfigRequest;
+
+ /**
+ * Verifies a VerifyKmsConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VerifyKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VerifyKmsConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.VerifyKmsConfigRequest;
+
+ /**
+ * Creates a plain object from a VerifyKmsConfigRequest message. Also converts values to other types if specified.
+ * @param message VerifyKmsConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.VerifyKmsConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VerifyKmsConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VerifyKmsConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VerifyKmsConfigResponse. */
+ interface IVerifyKmsConfigResponse {
+
+ /** VerifyKmsConfigResponse healthy */
+ healthy?: (boolean|null);
+
+ /** VerifyKmsConfigResponse healthError */
+ healthError?: (string|null);
+
+ /** VerifyKmsConfigResponse instructions */
+ instructions?: (string|null);
+ }
+
+ /** Represents a VerifyKmsConfigResponse. */
+ class VerifyKmsConfigResponse implements IVerifyKmsConfigResponse {
+
+ /**
+ * Constructs a new VerifyKmsConfigResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IVerifyKmsConfigResponse);
+
+ /** VerifyKmsConfigResponse healthy. */
+ public healthy: boolean;
+
+ /** VerifyKmsConfigResponse healthError. */
+ public healthError: string;
+
+ /** VerifyKmsConfigResponse instructions. */
+ public instructions: string;
+
+ /**
+ * Creates a new VerifyKmsConfigResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VerifyKmsConfigResponse instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IVerifyKmsConfigResponse): google.cloud.netapp.v1.VerifyKmsConfigResponse;
+
+ /**
+ * Encodes the specified VerifyKmsConfigResponse message. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigResponse.verify|verify} messages.
+ * @param message VerifyKmsConfigResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IVerifyKmsConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VerifyKmsConfigResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigResponse.verify|verify} messages.
+ * @param message VerifyKmsConfigResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IVerifyKmsConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VerifyKmsConfigResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VerifyKmsConfigResponse
+ * @throws {Error} If the payload is not 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.netapp.v1.VerifyKmsConfigResponse;
+
+ /**
+ * Decodes a VerifyKmsConfigResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VerifyKmsConfigResponse
+ * @throws {Error} If the payload 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.netapp.v1.VerifyKmsConfigResponse;
+
+ /**
+ * Verifies a VerifyKmsConfigResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VerifyKmsConfigResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VerifyKmsConfigResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.VerifyKmsConfigResponse;
+
+ /**
+ * Creates a plain object from a VerifyKmsConfigResponse message. Also converts values to other types if specified.
+ * @param message VerifyKmsConfigResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.VerifyKmsConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VerifyKmsConfigResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VerifyKmsConfigResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a KmsConfig. */
+ interface IKmsConfig {
+
+ /** KmsConfig name */
+ name?: (string|null);
+
+ /** KmsConfig cryptoKeyName */
+ cryptoKeyName?: (string|null);
+
+ /** KmsConfig state */
+ state?: (google.cloud.netapp.v1.KmsConfig.State|keyof typeof google.cloud.netapp.v1.KmsConfig.State|null);
+
+ /** KmsConfig stateDetails */
+ stateDetails?: (string|null);
+
+ /** KmsConfig createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** KmsConfig description */
+ description?: (string|null);
+
+ /** KmsConfig labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** KmsConfig instructions */
+ instructions?: (string|null);
+
+ /** KmsConfig serviceAccount */
+ serviceAccount?: (string|null);
+ }
+
+ /** Represents a KmsConfig. */
+ class KmsConfig implements IKmsConfig {
+
+ /**
+ * Constructs a new KmsConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IKmsConfig);
+
+ /** KmsConfig name. */
+ public name: string;
+
+ /** KmsConfig cryptoKeyName. */
+ public cryptoKeyName: string;
+
+ /** KmsConfig state. */
+ public state: (google.cloud.netapp.v1.KmsConfig.State|keyof typeof google.cloud.netapp.v1.KmsConfig.State);
+
+ /** KmsConfig stateDetails. */
+ public stateDetails: string;
+
+ /** KmsConfig createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** KmsConfig description. */
+ public description: string;
+
+ /** KmsConfig labels. */
+ public labels: { [k: string]: string };
+
+ /** KmsConfig instructions. */
+ public instructions: string;
+
+ /** KmsConfig serviceAccount. */
+ public serviceAccount: string;
+
+ /**
+ * Creates a new KmsConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns KmsConfig instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IKmsConfig): google.cloud.netapp.v1.KmsConfig;
+
+ /**
+ * Encodes the specified KmsConfig message. Does not implicitly {@link google.cloud.netapp.v1.KmsConfig.verify|verify} messages.
+ * @param message KmsConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IKmsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified KmsConfig message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.KmsConfig.verify|verify} messages.
+ * @param message KmsConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IKmsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a KmsConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns KmsConfig
+ * @throws {Error} If the payload is not 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.netapp.v1.KmsConfig;
+
+ /**
+ * Decodes a KmsConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns KmsConfig
+ * @throws {Error} If the payload 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.netapp.v1.KmsConfig;
+
+ /**
+ * Verifies a KmsConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a KmsConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns KmsConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.KmsConfig;
+
+ /**
+ * Creates a plain object from a KmsConfig message. Also converts values to other types if specified.
+ * @param message KmsConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.KmsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this KmsConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for KmsConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace KmsConfig {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ READY = 1,
+ CREATING = 2,
+ DELETING = 3,
+ UPDATING = 4,
+ IN_USE = 5,
+ ERROR = 6,
+ KEY_CHECK_PENDING = 7,
+ KEY_NOT_REACHABLE = 8,
+ DISABLING = 9,
+ DISABLED = 10,
+ MIGRATING = 11
+ }
+ }
+
+ /** Properties of a TransferStats. */
+ interface ITransferStats {
+
+ /** TransferStats transferBytes */
+ transferBytes?: (number|Long|string|null);
+
+ /** TransferStats totalTransferDuration */
+ totalTransferDuration?: (google.protobuf.IDuration|null);
+
+ /** TransferStats lastTransferBytes */
+ lastTransferBytes?: (number|Long|string|null);
+
+ /** TransferStats lastTransferDuration */
+ lastTransferDuration?: (google.protobuf.IDuration|null);
+
+ /** TransferStats lagDuration */
+ lagDuration?: (google.protobuf.IDuration|null);
+
+ /** TransferStats updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** TransferStats lastTransferEndTime */
+ lastTransferEndTime?: (google.protobuf.ITimestamp|null);
+
+ /** TransferStats lastTransferError */
+ lastTransferError?: (string|null);
+ }
+
+ /** Represents a TransferStats. */
+ class TransferStats implements ITransferStats {
+
+ /**
+ * Constructs a new TransferStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ITransferStats);
+
+ /** TransferStats transferBytes. */
+ public transferBytes?: (number|Long|string|null);
+
+ /** TransferStats totalTransferDuration. */
+ public totalTransferDuration?: (google.protobuf.IDuration|null);
+
+ /** TransferStats lastTransferBytes. */
+ public lastTransferBytes?: (number|Long|string|null);
+
+ /** TransferStats lastTransferDuration. */
+ public lastTransferDuration?: (google.protobuf.IDuration|null);
+
+ /** TransferStats lagDuration. */
+ public lagDuration?: (google.protobuf.IDuration|null);
+
+ /** TransferStats updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** TransferStats lastTransferEndTime. */
+ public lastTransferEndTime?: (google.protobuf.ITimestamp|null);
+
+ /** TransferStats lastTransferError. */
+ public lastTransferError?: (string|null);
+
+ /** TransferStats _transferBytes. */
+ public _transferBytes?: "transferBytes";
+
+ /** TransferStats _totalTransferDuration. */
+ public _totalTransferDuration?: "totalTransferDuration";
+
+ /** TransferStats _lastTransferBytes. */
+ public _lastTransferBytes?: "lastTransferBytes";
+
+ /** TransferStats _lastTransferDuration. */
+ public _lastTransferDuration?: "lastTransferDuration";
+
+ /** TransferStats _lagDuration. */
+ public _lagDuration?: "lagDuration";
+
+ /** TransferStats _updateTime. */
+ public _updateTime?: "updateTime";
+
+ /** TransferStats _lastTransferEndTime. */
+ public _lastTransferEndTime?: "lastTransferEndTime";
+
+ /** TransferStats _lastTransferError. */
+ public _lastTransferError?: "lastTransferError";
+
+ /**
+ * Creates a new TransferStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransferStats instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ITransferStats): google.cloud.netapp.v1.TransferStats;
+
+ /**
+ * Encodes the specified TransferStats message. Does not implicitly {@link google.cloud.netapp.v1.TransferStats.verify|verify} messages.
+ * @param message TransferStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ITransferStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransferStats message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.TransferStats.verify|verify} messages.
+ * @param message TransferStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ITransferStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransferStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransferStats
+ * @throws {Error} If the payload is not 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.netapp.v1.TransferStats;
+
+ /**
+ * Decodes a TransferStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransferStats
+ * @throws {Error} If the payload 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.netapp.v1.TransferStats;
+
+ /**
+ * Verifies a TransferStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TransferStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransferStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.TransferStats;
+
+ /**
+ * Creates a plain object from a TransferStats message. Also converts values to other types if specified.
+ * @param message TransferStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.TransferStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransferStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransferStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Replication. */
+ interface IReplication {
+
+ /** Replication name */
+ name?: (string|null);
+
+ /** Replication state */
+ state?: (google.cloud.netapp.v1.Replication.State|keyof typeof google.cloud.netapp.v1.Replication.State|null);
+
+ /** Replication stateDetails */
+ stateDetails?: (string|null);
+
+ /** Replication role */
+ role?: (google.cloud.netapp.v1.Replication.ReplicationRole|keyof typeof google.cloud.netapp.v1.Replication.ReplicationRole|null);
+
+ /** Replication replicationSchedule */
+ replicationSchedule?: (google.cloud.netapp.v1.Replication.ReplicationSchedule|keyof typeof google.cloud.netapp.v1.Replication.ReplicationSchedule|null);
+
+ /** Replication mirrorState */
+ mirrorState?: (google.cloud.netapp.v1.Replication.MirrorState|keyof typeof google.cloud.netapp.v1.Replication.MirrorState|null);
+
+ /** Replication healthy */
+ healthy?: (boolean|null);
+
+ /** Replication createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Replication destinationVolume */
+ destinationVolume?: (string|null);
+
+ /** Replication transferStats */
+ transferStats?: (google.cloud.netapp.v1.ITransferStats|null);
+
+ /** Replication labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Replication description */
+ description?: (string|null);
+
+ /** Replication destinationVolumeParameters */
+ destinationVolumeParameters?: (google.cloud.netapp.v1.IDestinationVolumeParameters|null);
+
+ /** Replication sourceVolume */
+ sourceVolume?: (string|null);
+ }
+
+ /** Represents a Replication. */
+ class Replication implements IReplication {
+
+ /**
+ * Constructs a new Replication.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IReplication);
+
+ /** Replication name. */
+ public name: string;
+
+ /** Replication state. */
+ public state: (google.cloud.netapp.v1.Replication.State|keyof typeof google.cloud.netapp.v1.Replication.State);
+
+ /** Replication stateDetails. */
+ public stateDetails: string;
+
+ /** Replication role. */
+ public role: (google.cloud.netapp.v1.Replication.ReplicationRole|keyof typeof google.cloud.netapp.v1.Replication.ReplicationRole);
+
+ /** Replication replicationSchedule. */
+ public replicationSchedule: (google.cloud.netapp.v1.Replication.ReplicationSchedule|keyof typeof google.cloud.netapp.v1.Replication.ReplicationSchedule);
+
+ /** Replication mirrorState. */
+ public mirrorState: (google.cloud.netapp.v1.Replication.MirrorState|keyof typeof google.cloud.netapp.v1.Replication.MirrorState);
+
+ /** Replication healthy. */
+ public healthy?: (boolean|null);
+
+ /** Replication createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Replication destinationVolume. */
+ public destinationVolume: string;
+
+ /** Replication transferStats. */
+ public transferStats?: (google.cloud.netapp.v1.ITransferStats|null);
+
+ /** Replication labels. */
+ public labels: { [k: string]: string };
+
+ /** Replication description. */
+ public description?: (string|null);
+
+ /** Replication destinationVolumeParameters. */
+ public destinationVolumeParameters?: (google.cloud.netapp.v1.IDestinationVolumeParameters|null);
+
+ /** Replication sourceVolume. */
+ public sourceVolume: string;
+
+ /** Replication _healthy. */
+ public _healthy?: "healthy";
+
+ /** Replication _description. */
+ public _description?: "description";
+
+ /**
+ * Creates a new Replication instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Replication instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IReplication): google.cloud.netapp.v1.Replication;
+
+ /**
+ * Encodes the specified Replication message. Does not implicitly {@link google.cloud.netapp.v1.Replication.verify|verify} messages.
+ * @param message Replication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IReplication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Replication message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Replication.verify|verify} messages.
+ * @param message Replication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IReplication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Replication message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Replication
+ * @throws {Error} If the payload is not 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.netapp.v1.Replication;
+
+ /**
+ * Decodes a Replication message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Replication
+ * @throws {Error} If the payload 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.netapp.v1.Replication;
+
+ /**
+ * Verifies a Replication message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Replication message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Replication
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.Replication;
+
+ /**
+ * Creates a plain object from a Replication message. Also converts values to other types if specified.
+ * @param message Replication
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.Replication, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Replication to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Replication
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Replication {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ READY = 2,
+ UPDATING = 3,
+ DELETING = 5,
+ ERROR = 6
+ }
+
+ /** ReplicationRole enum. */
+ enum ReplicationRole {
+ REPLICATION_ROLE_UNSPECIFIED = 0,
+ SOURCE = 1,
+ DESTINATION = 2
+ }
+
+ /** ReplicationSchedule enum. */
+ enum ReplicationSchedule {
+ REPLICATION_SCHEDULE_UNSPECIFIED = 0,
+ EVERY_10_MINUTES = 1,
+ HOURLY = 2,
+ DAILY = 3
+ }
+
+ /** MirrorState enum. */
+ enum MirrorState {
+ MIRROR_STATE_UNSPECIFIED = 0,
+ PREPARING = 1,
+ MIRRORED = 2,
+ STOPPED = 3,
+ TRANSFERRING = 4
+ }
+ }
+
+ /** Properties of a ListReplicationsRequest. */
+ interface IListReplicationsRequest {
+
+ /** ListReplicationsRequest parent */
+ parent?: (string|null);
+
+ /** ListReplicationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListReplicationsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListReplicationsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListReplicationsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListReplicationsRequest. */
+ class ListReplicationsRequest implements IListReplicationsRequest {
+
+ /**
+ * Constructs a new ListReplicationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListReplicationsRequest);
+
+ /** ListReplicationsRequest parent. */
+ public parent: string;
+
+ /** ListReplicationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListReplicationsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListReplicationsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListReplicationsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListReplicationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListReplicationsRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListReplicationsRequest): google.cloud.netapp.v1.ListReplicationsRequest;
+
+ /**
+ * Encodes the specified ListReplicationsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsRequest.verify|verify} messages.
+ * @param message ListReplicationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListReplicationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListReplicationsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsRequest.verify|verify} messages.
+ * @param message ListReplicationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListReplicationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListReplicationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListReplicationsRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.ListReplicationsRequest;
+
+ /**
+ * Decodes a ListReplicationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListReplicationsRequest
+ * @throws {Error} If the payload 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.netapp.v1.ListReplicationsRequest;
+
+ /**
+ * Verifies a ListReplicationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListReplicationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListReplicationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListReplicationsRequest;
+
+ /**
+ * Creates a plain object from a ListReplicationsRequest message. Also converts values to other types if specified.
+ * @param message ListReplicationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListReplicationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListReplicationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListReplicationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListReplicationsResponse. */
+ interface IListReplicationsResponse {
+
+ /** ListReplicationsResponse replications */
+ replications?: (google.cloud.netapp.v1.IReplication[]|null);
+
+ /** ListReplicationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListReplicationsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListReplicationsResponse. */
+ class ListReplicationsResponse implements IListReplicationsResponse {
+
+ /**
+ * Constructs a new ListReplicationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListReplicationsResponse);
+
+ /** ListReplicationsResponse replications. */
+ public replications: google.cloud.netapp.v1.IReplication[];
+
+ /** ListReplicationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListReplicationsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListReplicationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListReplicationsResponse instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListReplicationsResponse): google.cloud.netapp.v1.ListReplicationsResponse;
+
+ /**
+ * Encodes the specified ListReplicationsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsResponse.verify|verify} messages.
+ * @param message ListReplicationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListReplicationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListReplicationsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsResponse.verify|verify} messages.
+ * @param message ListReplicationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListReplicationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListReplicationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListReplicationsResponse
+ * @throws {Error} If the payload is not 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.netapp.v1.ListReplicationsResponse;
+
+ /**
+ * Decodes a ListReplicationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListReplicationsResponse
+ * @throws {Error} If the payload 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.netapp.v1.ListReplicationsResponse;
+
+ /**
+ * Verifies a ListReplicationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListReplicationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListReplicationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListReplicationsResponse;
+
+ /**
+ * Creates a plain object from a ListReplicationsResponse message. Also converts values to other types if specified.
+ * @param message ListReplicationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListReplicationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListReplicationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListReplicationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetReplicationRequest. */
+ interface IGetReplicationRequest {
+
+ /** GetReplicationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetReplicationRequest. */
+ class GetReplicationRequest implements IGetReplicationRequest {
+
+ /**
+ * Constructs a new GetReplicationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IGetReplicationRequest);
+
+ /** GetReplicationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetReplicationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetReplicationRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IGetReplicationRequest): google.cloud.netapp.v1.GetReplicationRequest;
+
+ /**
+ * Encodes the specified GetReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetReplicationRequest.verify|verify} messages.
+ * @param message GetReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IGetReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetReplicationRequest.verify|verify} messages.
+ * @param message GetReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IGetReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetReplicationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetReplicationRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.GetReplicationRequest;
+
+ /**
+ * Decodes a GetReplicationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetReplicationRequest
+ * @throws {Error} If the payload 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.netapp.v1.GetReplicationRequest;
+
+ /**
+ * Verifies a GetReplicationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetReplicationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetReplicationRequest;
+
+ /**
+ * Creates a plain object from a GetReplicationRequest message. Also converts values to other types if specified.
+ * @param message GetReplicationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.GetReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetReplicationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetReplicationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DestinationVolumeParameters. */
+ interface IDestinationVolumeParameters {
+
+ /** DestinationVolumeParameters storagePool */
+ storagePool?: (string|null);
+
+ /** DestinationVolumeParameters volumeId */
+ volumeId?: (string|null);
+
+ /** DestinationVolumeParameters shareName */
+ shareName?: (string|null);
+
+ /** DestinationVolumeParameters description */
+ description?: (string|null);
+ }
+
+ /** Represents a DestinationVolumeParameters. */
+ class DestinationVolumeParameters implements IDestinationVolumeParameters {
+
+ /**
+ * Constructs a new DestinationVolumeParameters.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IDestinationVolumeParameters);
+
+ /** DestinationVolumeParameters storagePool. */
+ public storagePool: string;
+
+ /** DestinationVolumeParameters volumeId. */
+ public volumeId: string;
+
+ /** DestinationVolumeParameters shareName. */
+ public shareName: string;
+
+ /** DestinationVolumeParameters description. */
+ public description?: (string|null);
+
+ /** DestinationVolumeParameters _description. */
+ public _description?: "description";
+
+ /**
+ * Creates a new DestinationVolumeParameters instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DestinationVolumeParameters instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IDestinationVolumeParameters): google.cloud.netapp.v1.DestinationVolumeParameters;
+
+ /**
+ * Encodes the specified DestinationVolumeParameters message. Does not implicitly {@link google.cloud.netapp.v1.DestinationVolumeParameters.verify|verify} messages.
+ * @param message DestinationVolumeParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IDestinationVolumeParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DestinationVolumeParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DestinationVolumeParameters.verify|verify} messages.
+ * @param message DestinationVolumeParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IDestinationVolumeParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DestinationVolumeParameters message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DestinationVolumeParameters
+ * @throws {Error} If the payload is not 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.netapp.v1.DestinationVolumeParameters;
+
+ /**
+ * Decodes a DestinationVolumeParameters message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DestinationVolumeParameters
+ * @throws {Error} If the payload 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.netapp.v1.DestinationVolumeParameters;
+
+ /**
+ * Verifies a DestinationVolumeParameters message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DestinationVolumeParameters message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DestinationVolumeParameters
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DestinationVolumeParameters;
+
+ /**
+ * Creates a plain object from a DestinationVolumeParameters message. Also converts values to other types if specified.
+ * @param message DestinationVolumeParameters
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.DestinationVolumeParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DestinationVolumeParameters to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DestinationVolumeParameters
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateReplicationRequest. */
+ interface ICreateReplicationRequest {
+
+ /** CreateReplicationRequest parent */
+ parent?: (string|null);
+
+ /** CreateReplicationRequest replication */
+ replication?: (google.cloud.netapp.v1.IReplication|null);
+
+ /** CreateReplicationRequest replicationId */
+ replicationId?: (string|null);
+ }
+
+ /** Represents a CreateReplicationRequest. */
+ class CreateReplicationRequest implements ICreateReplicationRequest {
+
+ /**
+ * Constructs a new CreateReplicationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ICreateReplicationRequest);
+
+ /** CreateReplicationRequest parent. */
+ public parent: string;
+
+ /** CreateReplicationRequest replication. */
+ public replication?: (google.cloud.netapp.v1.IReplication|null);
+
+ /** CreateReplicationRequest replicationId. */
+ public replicationId: string;
+
+ /**
+ * Creates a new CreateReplicationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateReplicationRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ICreateReplicationRequest): google.cloud.netapp.v1.CreateReplicationRequest;
+
+ /**
+ * Encodes the specified CreateReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateReplicationRequest.verify|verify} messages.
+ * @param message CreateReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ICreateReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateReplicationRequest.verify|verify} messages.
+ * @param message CreateReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ICreateReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateReplicationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateReplicationRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.CreateReplicationRequest;
+
+ /**
+ * Decodes a CreateReplicationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateReplicationRequest
+ * @throws {Error} If the payload 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.netapp.v1.CreateReplicationRequest;
+
+ /**
+ * Verifies a CreateReplicationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateReplicationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateReplicationRequest;
+
+ /**
+ * Creates a plain object from a CreateReplicationRequest message. Also converts values to other types if specified.
+ * @param message CreateReplicationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.CreateReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateReplicationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateReplicationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteReplicationRequest. */
+ interface IDeleteReplicationRequest {
+
+ /** DeleteReplicationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteReplicationRequest. */
+ class DeleteReplicationRequest implements IDeleteReplicationRequest {
+
+ /**
+ * Constructs a new DeleteReplicationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IDeleteReplicationRequest);
+
+ /** DeleteReplicationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteReplicationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteReplicationRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IDeleteReplicationRequest): google.cloud.netapp.v1.DeleteReplicationRequest;
+
+ /**
+ * Encodes the specified DeleteReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteReplicationRequest.verify|verify} messages.
+ * @param message DeleteReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IDeleteReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteReplicationRequest.verify|verify} messages.
+ * @param message DeleteReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteReplicationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteReplicationRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.DeleteReplicationRequest;
+
+ /**
+ * Decodes a DeleteReplicationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteReplicationRequest
+ * @throws {Error} If the payload 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.netapp.v1.DeleteReplicationRequest;
+
+ /**
+ * Verifies a DeleteReplicationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteReplicationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteReplicationRequest;
+
+ /**
+ * Creates a plain object from a DeleteReplicationRequest message. Also converts values to other types if specified.
+ * @param message DeleteReplicationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.DeleteReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteReplicationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteReplicationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateReplicationRequest. */
+ interface IUpdateReplicationRequest {
+
+ /** UpdateReplicationRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateReplicationRequest replication */
+ replication?: (google.cloud.netapp.v1.IReplication|null);
+ }
+
+ /** Represents an UpdateReplicationRequest. */
+ class UpdateReplicationRequest implements IUpdateReplicationRequest {
+
+ /**
+ * Constructs a new UpdateReplicationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IUpdateReplicationRequest);
+
+ /** UpdateReplicationRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateReplicationRequest replication. */
+ public replication?: (google.cloud.netapp.v1.IReplication|null);
+
+ /**
+ * Creates a new UpdateReplicationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateReplicationRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IUpdateReplicationRequest): google.cloud.netapp.v1.UpdateReplicationRequest;
+
+ /**
+ * Encodes the specified UpdateReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateReplicationRequest.verify|verify} messages.
+ * @param message UpdateReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IUpdateReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateReplicationRequest.verify|verify} messages.
+ * @param message UpdateReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateReplicationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateReplicationRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.UpdateReplicationRequest;
+
+ /**
+ * Decodes an UpdateReplicationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateReplicationRequest
+ * @throws {Error} If the payload 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.netapp.v1.UpdateReplicationRequest;
+
+ /**
+ * Verifies an UpdateReplicationRequest message.
+ * @param message Plain 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 UpdateReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateReplicationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateReplicationRequest;
+
+ /**
+ * Creates a plain object from an UpdateReplicationRequest message. Also converts values to other types if specified.
+ * @param message UpdateReplicationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.UpdateReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateReplicationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateReplicationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StopReplicationRequest. */
+ interface IStopReplicationRequest {
+
+ /** StopReplicationRequest name */
+ name?: (string|null);
+
+ /** StopReplicationRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a StopReplicationRequest. */
+ class StopReplicationRequest implements IStopReplicationRequest {
+
+ /**
+ * Constructs a new StopReplicationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IStopReplicationRequest);
+
+ /** StopReplicationRequest name. */
+ public name: string;
+
+ /** StopReplicationRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new StopReplicationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StopReplicationRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IStopReplicationRequest): google.cloud.netapp.v1.StopReplicationRequest;
+
+ /**
+ * Encodes the specified StopReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.StopReplicationRequest.verify|verify} messages.
+ * @param message StopReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.StopReplicationRequest.verify|verify} messages.
+ * @param message StopReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StopReplicationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StopReplicationRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.StopReplicationRequest;
+
+ /**
+ * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StopReplicationRequest
+ * @throws {Error} If the payload 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.netapp.v1.StopReplicationRequest;
+
+ /**
+ * Verifies a StopReplicationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StopReplicationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.StopReplicationRequest;
+
+ /**
+ * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified.
+ * @param message StopReplicationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StopReplicationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StopReplicationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResumeReplicationRequest. */
+ interface IResumeReplicationRequest {
+
+ /** ResumeReplicationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a ResumeReplicationRequest. */
+ class ResumeReplicationRequest implements IResumeReplicationRequest {
+
+ /**
+ * Constructs a new ResumeReplicationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IResumeReplicationRequest);
+
+ /** ResumeReplicationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new ResumeReplicationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResumeReplicationRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IResumeReplicationRequest): google.cloud.netapp.v1.ResumeReplicationRequest;
+
+ /**
+ * Encodes the specified ResumeReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.ResumeReplicationRequest.verify|verify} messages.
+ * @param message ResumeReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IResumeReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResumeReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ResumeReplicationRequest.verify|verify} messages.
+ * @param message ResumeReplicationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IResumeReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResumeReplicationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResumeReplicationRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.ResumeReplicationRequest;
+
+ /**
+ * Decodes a ResumeReplicationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResumeReplicationRequest
+ * @throws {Error} If the payload 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.netapp.v1.ResumeReplicationRequest;
+
+ /**
+ * Verifies a ResumeReplicationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResumeReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResumeReplicationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ResumeReplicationRequest;
+
+ /**
+ * Creates a plain object from a ResumeReplicationRequest message. Also converts values to other types if specified.
+ * @param message ResumeReplicationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ResumeReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResumeReplicationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResumeReplicationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReverseReplicationDirectionRequest. */
+ interface IReverseReplicationDirectionRequest {
+
+ /** ReverseReplicationDirectionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a ReverseReplicationDirectionRequest. */
+ class ReverseReplicationDirectionRequest implements IReverseReplicationDirectionRequest {
+
+ /**
+ * Constructs a new ReverseReplicationDirectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IReverseReplicationDirectionRequest);
+
+ /** ReverseReplicationDirectionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new ReverseReplicationDirectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReverseReplicationDirectionRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IReverseReplicationDirectionRequest): google.cloud.netapp.v1.ReverseReplicationDirectionRequest;
+
+ /**
+ * Encodes the specified ReverseReplicationDirectionRequest message. Does not implicitly {@link google.cloud.netapp.v1.ReverseReplicationDirectionRequest.verify|verify} messages.
+ * @param message ReverseReplicationDirectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IReverseReplicationDirectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReverseReplicationDirectionRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ReverseReplicationDirectionRequest.verify|verify} messages.
+ * @param message ReverseReplicationDirectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IReverseReplicationDirectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReverseReplicationDirectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReverseReplicationDirectionRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.ReverseReplicationDirectionRequest;
+
+ /**
+ * Decodes a ReverseReplicationDirectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReverseReplicationDirectionRequest
+ * @throws {Error} If the payload 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.netapp.v1.ReverseReplicationDirectionRequest;
+
+ /**
+ * Verifies a ReverseReplicationDirectionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReverseReplicationDirectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReverseReplicationDirectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ReverseReplicationDirectionRequest;
+
+ /**
+ * Creates a plain object from a ReverseReplicationDirectionRequest message. Also converts values to other types if specified.
+ * @param message ReverseReplicationDirectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ReverseReplicationDirectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReverseReplicationDirectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReverseReplicationDirectionRequest
+ * @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.netapp.v1.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.netapp.v1.IListSnapshotsRequest): google.cloud.netapp.v1.ListSnapshotsRequest;
+
+ /**
+ * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.ISnapshot[]|null);
+
+ /** ListSnapshotsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListSnapshotsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListSnapshotsResponse. */
+ class ListSnapshotsResponse implements IListSnapshotsResponse {
+
+ /**
+ * Constructs a new ListSnapshotsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListSnapshotsResponse);
+
+ /** ListSnapshotsResponse snapshots. */
+ public snapshots: google.cloud.netapp.v1.ISnapshot[];
+
+ /** ListSnapshotsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListSnapshotsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListSnapshotsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSnapshotsResponse instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListSnapshotsResponse): google.cloud.netapp.v1.ListSnapshotsResponse;
+
+ /**
+ * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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 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.netapp.v1.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.netapp.v1.IGetSnapshotRequest): google.cloud.netapp.v1.GetSnapshotRequest;
+
+ /**
+ * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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 CreateSnapshotRequest. */
+ interface ICreateSnapshotRequest {
+
+ /** CreateSnapshotRequest parent */
+ parent?: (string|null);
+
+ /** CreateSnapshotRequest snapshot */
+ snapshot?: (google.cloud.netapp.v1.ISnapshot|null);
+
+ /** CreateSnapshotRequest snapshotId */
+ snapshotId?: (string|null);
+ }
+
+ /** Represents a CreateSnapshotRequest. */
+ class CreateSnapshotRequest implements ICreateSnapshotRequest {
+
+ /**
+ * Constructs a new CreateSnapshotRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ICreateSnapshotRequest);
+
+ /** CreateSnapshotRequest parent. */
+ public parent: string;
+
+ /** CreateSnapshotRequest snapshot. */
+ public snapshot?: (google.cloud.netapp.v1.ISnapshot|null);
+
+ /** CreateSnapshotRequest snapshotId. */
+ public snapshotId: string;
+
+ /**
+ * Creates a new CreateSnapshotRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateSnapshotRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ICreateSnapshotRequest): google.cloud.netapp.v1.CreateSnapshotRequest;
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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 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.netapp.v1.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.netapp.v1.IDeleteSnapshotRequest): google.cloud.netapp.v1.DeleteSnapshotRequest;
+
+ /**
+ * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.ISnapshot|null);
+ }
+
+ /** Represents an UpdateSnapshotRequest. */
+ class UpdateSnapshotRequest implements IUpdateSnapshotRequest {
+
+ /**
+ * Constructs a new UpdateSnapshotRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IUpdateSnapshotRequest);
+
+ /** UpdateSnapshotRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateSnapshotRequest snapshot. */
+ public snapshot?: (google.cloud.netapp.v1.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.netapp.v1.IUpdateSnapshotRequest): google.cloud.netapp.v1.UpdateSnapshotRequest;
+
+ /**
+ * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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 Snapshot. */
+ interface ISnapshot {
+
+ /** Snapshot name */
+ name?: (string|null);
+
+ /** Snapshot state */
+ state?: (google.cloud.netapp.v1.Snapshot.State|keyof typeof google.cloud.netapp.v1.Snapshot.State|null);
+
+ /** Snapshot stateDetails */
+ stateDetails?: (string|null);
+
+ /** Snapshot description */
+ description?: (string|null);
+
+ /** Snapshot usedBytes */
+ usedBytes?: (number|null);
+
+ /** Snapshot createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Snapshot labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a Snapshot. */
+ class Snapshot implements ISnapshot {
+
+ /**
+ * Constructs a new Snapshot.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ISnapshot);
+
+ /** Snapshot name. */
+ public name: string;
+
+ /** Snapshot state. */
+ public state: (google.cloud.netapp.v1.Snapshot.State|keyof typeof google.cloud.netapp.v1.Snapshot.State);
+
+ /** Snapshot stateDetails. */
+ public stateDetails: string;
+
+ /** Snapshot description. */
+ public description: string;
+
+ /** Snapshot usedBytes. */
+ public usedBytes: number;
+
+ /** Snapshot createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Snapshot labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new Snapshot instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Snapshot instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ISnapshot): google.cloud.netapp.v1.Snapshot;
+
+ /**
+ * Encodes the specified Snapshot message. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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.netapp.v1.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,
+ READY = 1,
+ CREATING = 2,
+ DELETING = 3,
+ UPDATING = 4,
+ DISABLED = 5,
+ ERROR = 6
+ }
+ }
+
+ /** Properties of a GetStoragePoolRequest. */
+ interface IGetStoragePoolRequest {
+
+ /** GetStoragePoolRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetStoragePoolRequest. */
+ class GetStoragePoolRequest implements IGetStoragePoolRequest {
+
+ /**
+ * Constructs a new GetStoragePoolRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IGetStoragePoolRequest);
+
+ /** GetStoragePoolRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetStoragePoolRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetStoragePoolRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IGetStoragePoolRequest): google.cloud.netapp.v1.GetStoragePoolRequest;
+
+ /**
+ * Encodes the specified GetStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages.
+ * @param message GetStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IGetStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages.
+ * @param message GetStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IGetStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetStoragePoolRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetStoragePoolRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.GetStoragePoolRequest;
+
+ /**
+ * Decodes a GetStoragePoolRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetStoragePoolRequest
+ * @throws {Error} If the payload 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.netapp.v1.GetStoragePoolRequest;
+
+ /**
+ * Verifies a GetStoragePoolRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetStoragePoolRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetStoragePoolRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetStoragePoolRequest;
+
+ /**
+ * Creates a plain object from a GetStoragePoolRequest message. Also converts values to other types if specified.
+ * @param message GetStoragePoolRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.GetStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetStoragePoolRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetStoragePoolRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListStoragePoolsRequest. */
+ interface IListStoragePoolsRequest {
+
+ /** ListStoragePoolsRequest parent */
+ parent?: (string|null);
+
+ /** ListStoragePoolsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListStoragePoolsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListStoragePoolsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListStoragePoolsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListStoragePoolsRequest. */
+ class ListStoragePoolsRequest implements IListStoragePoolsRequest {
+
+ /**
+ * Constructs a new ListStoragePoolsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListStoragePoolsRequest);
+
+ /** ListStoragePoolsRequest parent. */
+ public parent: string;
+
+ /** ListStoragePoolsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListStoragePoolsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListStoragePoolsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListStoragePoolsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListStoragePoolsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListStoragePoolsRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListStoragePoolsRequest): google.cloud.netapp.v1.ListStoragePoolsRequest;
+
+ /**
+ * Encodes the specified ListStoragePoolsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages.
+ * @param message ListStoragePoolsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListStoragePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages.
+ * @param message ListStoragePoolsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListStoragePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListStoragePoolsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListStoragePoolsRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.ListStoragePoolsRequest;
+
+ /**
+ * Decodes a ListStoragePoolsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListStoragePoolsRequest
+ * @throws {Error} If the payload 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.netapp.v1.ListStoragePoolsRequest;
+
+ /**
+ * Verifies a ListStoragePoolsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListStoragePoolsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListStoragePoolsRequest;
+
+ /**
+ * Creates a plain object from a ListStoragePoolsRequest message. Also converts values to other types if specified.
+ * @param message ListStoragePoolsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListStoragePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListStoragePoolsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListStoragePoolsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListStoragePoolsResponse. */
+ interface IListStoragePoolsResponse {
+
+ /** ListStoragePoolsResponse storagePools */
+ storagePools?: (google.cloud.netapp.v1.IStoragePool[]|null);
+
+ /** ListStoragePoolsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListStoragePoolsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListStoragePoolsResponse. */
+ class ListStoragePoolsResponse implements IListStoragePoolsResponse {
+
+ /**
+ * Constructs a new ListStoragePoolsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListStoragePoolsResponse);
+
+ /** ListStoragePoolsResponse storagePools. */
+ public storagePools: google.cloud.netapp.v1.IStoragePool[];
+
+ /** ListStoragePoolsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListStoragePoolsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListStoragePoolsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListStoragePoolsResponse instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListStoragePoolsResponse): google.cloud.netapp.v1.ListStoragePoolsResponse;
+
+ /**
+ * Encodes the specified ListStoragePoolsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages.
+ * @param message ListStoragePoolsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListStoragePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListStoragePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages.
+ * @param message ListStoragePoolsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListStoragePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListStoragePoolsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListStoragePoolsResponse
+ * @throws {Error} If the payload is not 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.netapp.v1.ListStoragePoolsResponse;
+
+ /**
+ * Decodes a ListStoragePoolsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListStoragePoolsResponse
+ * @throws {Error} If the payload 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.netapp.v1.ListStoragePoolsResponse;
+
+ /**
+ * Verifies a ListStoragePoolsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListStoragePoolsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListStoragePoolsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListStoragePoolsResponse;
+
+ /**
+ * Creates a plain object from a ListStoragePoolsResponse message. Also converts values to other types if specified.
+ * @param message ListStoragePoolsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListStoragePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListStoragePoolsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListStoragePoolsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateStoragePoolRequest. */
+ interface ICreateStoragePoolRequest {
+
+ /** CreateStoragePoolRequest parent */
+ parent?: (string|null);
+
+ /** CreateStoragePoolRequest storagePoolId */
+ storagePoolId?: (string|null);
+
+ /** CreateStoragePoolRequest storagePool */
+ storagePool?: (google.cloud.netapp.v1.IStoragePool|null);
+ }
+
+ /** Represents a CreateStoragePoolRequest. */
+ class CreateStoragePoolRequest implements ICreateStoragePoolRequest {
+
+ /**
+ * Constructs a new CreateStoragePoolRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ICreateStoragePoolRequest);
+
+ /** CreateStoragePoolRequest parent. */
+ public parent: string;
+
+ /** CreateStoragePoolRequest storagePoolId. */
+ public storagePoolId: string;
+
+ /** CreateStoragePoolRequest storagePool. */
+ public storagePool?: (google.cloud.netapp.v1.IStoragePool|null);
+
+ /**
+ * Creates a new CreateStoragePoolRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateStoragePoolRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ICreateStoragePoolRequest): google.cloud.netapp.v1.CreateStoragePoolRequest;
+
+ /**
+ * Encodes the specified CreateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages.
+ * @param message CreateStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ICreateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages.
+ * @param message CreateStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ICreateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateStoragePoolRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateStoragePoolRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.CreateStoragePoolRequest;
+
+ /**
+ * Decodes a CreateStoragePoolRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateStoragePoolRequest
+ * @throws {Error} If the payload 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.netapp.v1.CreateStoragePoolRequest;
+
+ /**
+ * Verifies a CreateStoragePoolRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateStoragePoolRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateStoragePoolRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateStoragePoolRequest;
+
+ /**
+ * Creates a plain object from a CreateStoragePoolRequest message. Also converts values to other types if specified.
+ * @param message CreateStoragePoolRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.CreateStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateStoragePoolRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateStoragePoolRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateStoragePoolRequest. */
+ interface IUpdateStoragePoolRequest {
+
+ /** UpdateStoragePoolRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateStoragePoolRequest storagePool */
+ storagePool?: (google.cloud.netapp.v1.IStoragePool|null);
+ }
+
+ /** Represents an UpdateStoragePoolRequest. */
+ class UpdateStoragePoolRequest implements IUpdateStoragePoolRequest {
+
+ /**
+ * Constructs a new UpdateStoragePoolRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IUpdateStoragePoolRequest);
+
+ /** UpdateStoragePoolRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateStoragePoolRequest storagePool. */
+ public storagePool?: (google.cloud.netapp.v1.IStoragePool|null);
+
+ /**
+ * Creates a new UpdateStoragePoolRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateStoragePoolRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IUpdateStoragePoolRequest): google.cloud.netapp.v1.UpdateStoragePoolRequest;
+
+ /**
+ * Encodes the specified UpdateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages.
+ * @param message UpdateStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IUpdateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages.
+ * @param message UpdateStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateStoragePoolRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.UpdateStoragePoolRequest;
+
+ /**
+ * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateStoragePoolRequest
+ * @throws {Error} If the payload 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.netapp.v1.UpdateStoragePoolRequest;
+
+ /**
+ * Verifies an UpdateStoragePoolRequest message.
+ * @param message Plain 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 UpdateStoragePoolRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateStoragePoolRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateStoragePoolRequest;
+
+ /**
+ * Creates a plain object from an UpdateStoragePoolRequest message. Also converts values to other types if specified.
+ * @param message UpdateStoragePoolRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.UpdateStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateStoragePoolRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateStoragePoolRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteStoragePoolRequest. */
+ interface IDeleteStoragePoolRequest {
+
+ /** DeleteStoragePoolRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteStoragePoolRequest. */
+ class DeleteStoragePoolRequest implements IDeleteStoragePoolRequest {
+
+ /**
+ * Constructs a new DeleteStoragePoolRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IDeleteStoragePoolRequest);
+
+ /** DeleteStoragePoolRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteStoragePoolRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteStoragePoolRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IDeleteStoragePoolRequest): google.cloud.netapp.v1.DeleteStoragePoolRequest;
+
+ /**
+ * Encodes the specified DeleteStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages.
+ * @param message DeleteStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IDeleteStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages.
+ * @param message DeleteStoragePoolRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteStoragePoolRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.DeleteStoragePoolRequest;
+
+ /**
+ * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteStoragePoolRequest
+ * @throws {Error} If the payload 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.netapp.v1.DeleteStoragePoolRequest;
+
+ /**
+ * Verifies a DeleteStoragePoolRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteStoragePoolRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteStoragePoolRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteStoragePoolRequest;
+
+ /**
+ * Creates a plain object from a DeleteStoragePoolRequest message. Also converts values to other types if specified.
+ * @param message DeleteStoragePoolRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.DeleteStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteStoragePoolRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteStoragePoolRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StoragePool. */
+ interface IStoragePool {
+
+ /** StoragePool name */
+ name?: (string|null);
+
+ /** StoragePool serviceLevel */
+ serviceLevel?: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel|null);
+
+ /** StoragePool capacityGib */
+ capacityGib?: (number|Long|string|null);
+
+ /** StoragePool volumeCapacityGib */
+ volumeCapacityGib?: (number|Long|string|null);
+
+ /** StoragePool volumeCount */
+ volumeCount?: (number|null);
+
+ /** StoragePool state */
+ state?: (google.cloud.netapp.v1.StoragePool.State|keyof typeof google.cloud.netapp.v1.StoragePool.State|null);
+
+ /** StoragePool stateDetails */
+ stateDetails?: (string|null);
+
+ /** StoragePool createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** StoragePool description */
+ description?: (string|null);
+
+ /** StoragePool labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** StoragePool network */
+ network?: (string|null);
+
+ /** StoragePool activeDirectory */
+ activeDirectory?: (string|null);
+
+ /** StoragePool kmsConfig */
+ kmsConfig?: (string|null);
+
+ /** StoragePool ldapEnabled */
+ ldapEnabled?: (boolean|null);
+
+ /** StoragePool psaRange */
+ psaRange?: (string|null);
+
+ /** StoragePool encryptionType */
+ encryptionType?: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType|null);
+
+ /** StoragePool globalAccessAllowed */
+ globalAccessAllowed?: (boolean|null);
+ }
+
+ /** Represents a StoragePool. */
+ class StoragePool implements IStoragePool {
+
+ /**
+ * Constructs a new StoragePool.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IStoragePool);
+
+ /** StoragePool name. */
+ public name: string;
+
+ /** StoragePool serviceLevel. */
+ public serviceLevel: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel);
+
+ /** StoragePool capacityGib. */
+ public capacityGib: (number|Long|string);
+
+ /** StoragePool volumeCapacityGib. */
+ public volumeCapacityGib: (number|Long|string);
+
+ /** StoragePool volumeCount. */
+ public volumeCount: number;
+
+ /** StoragePool state. */
+ public state: (google.cloud.netapp.v1.StoragePool.State|keyof typeof google.cloud.netapp.v1.StoragePool.State);
+
+ /** StoragePool stateDetails. */
+ public stateDetails: string;
+
+ /** StoragePool createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** StoragePool description. */
+ public description: string;
+
+ /** StoragePool labels. */
+ public labels: { [k: string]: string };
+
+ /** StoragePool network. */
+ public network: string;
+
+ /** StoragePool activeDirectory. */
+ public activeDirectory: string;
+
+ /** StoragePool kmsConfig. */
+ public kmsConfig: string;
+
+ /** StoragePool ldapEnabled. */
+ public ldapEnabled: boolean;
+
+ /** StoragePool psaRange. */
+ public psaRange: string;
+
+ /** StoragePool encryptionType. */
+ public encryptionType: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType);
+
+ /** StoragePool globalAccessAllowed. */
+ public globalAccessAllowed?: (boolean|null);
+
+ /** StoragePool _globalAccessAllowed. */
+ public _globalAccessAllowed?: "globalAccessAllowed";
+
+ /**
+ * Creates a new StoragePool instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StoragePool instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IStoragePool): google.cloud.netapp.v1.StoragePool;
+
+ /**
+ * Encodes the specified StoragePool message. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages.
+ * @param message StoragePool message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IStoragePool, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StoragePool message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages.
+ * @param message StoragePool message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IStoragePool, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StoragePool message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StoragePool
+ * @throws {Error} If the payload is not 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.netapp.v1.StoragePool;
+
+ /**
+ * Decodes a StoragePool message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StoragePool
+ * @throws {Error} If the payload 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.netapp.v1.StoragePool;
+
+ /**
+ * Verifies a StoragePool message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StoragePool message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StoragePool
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.StoragePool;
+
+ /**
+ * Creates a plain object from a StoragePool message. Also converts values to other types if specified.
+ * @param message StoragePool
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.StoragePool, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StoragePool to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StoragePool
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StoragePool {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ READY = 1,
+ CREATING = 2,
+ DELETING = 3,
+ UPDATING = 4,
+ RESTORING = 5,
+ DISABLED = 6,
+ ERROR = 7
+ }
+ }
+
+ /** ServiceLevel enum. */
+ enum ServiceLevel {
+ SERVICE_LEVEL_UNSPECIFIED = 0,
+ PREMIUM = 1,
+ EXTREME = 2,
+ STANDARD = 3
+ }
+
+ /** EncryptionType enum. */
+ enum EncryptionType {
+ ENCRYPTION_TYPE_UNSPECIFIED = 0,
+ SERVICE_MANAGED = 1,
+ CLOUD_KMS = 2
+ }
+
+ /** Protocols enum. */
+ enum Protocols {
+ PROTOCOLS_UNSPECIFIED = 0,
+ NFSV3 = 1,
+ NFSV4 = 2,
+ SMB = 3
+ }
+
+ /** AccessType enum. */
+ enum AccessType {
+ ACCESS_TYPE_UNSPECIFIED = 0,
+ READ_ONLY = 1,
+ READ_WRITE = 2,
+ READ_NONE = 3
+ }
+
+ /** SMBSettings enum. */
+ enum SMBSettings {
+ SMB_SETTINGS_UNSPECIFIED = 0,
+ ENCRYPT_DATA = 1,
+ BROWSABLE = 2,
+ CHANGE_NOTIFY = 3,
+ NON_BROWSABLE = 4,
+ OPLOCKS = 5,
+ SHOW_SNAPSHOT = 6,
+ SHOW_PREVIOUS_VERSIONS = 7,
+ ACCESS_BASED_ENUMERATION = 8,
+ CONTINUOUSLY_AVAILABLE = 9
+ }
+
+ /** SecurityStyle enum. */
+ enum SecurityStyle {
+ SECURITY_STYLE_UNSPECIFIED = 0,
+ NTFS = 1,
+ UNIX = 2
+ }
+
+ /** RestrictedAction enum. */
+ enum RestrictedAction {
+ RESTRICTED_ACTION_UNSPECIFIED = 0,
+ DELETE = 1
+ }
+
+ /** Properties of a ListVolumesRequest. */
+ interface IListVolumesRequest {
+
+ /** ListVolumesRequest parent */
+ parent?: (string|null);
+
+ /** ListVolumesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListVolumesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListVolumesRequest filter */
+ filter?: (string|null);
+
+ /** ListVolumesRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListVolumesRequest. */
+ class ListVolumesRequest implements IListVolumesRequest {
+
+ /**
+ * Constructs a new ListVolumesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListVolumesRequest);
+
+ /** ListVolumesRequest parent. */
+ public parent: string;
+
+ /** ListVolumesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListVolumesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListVolumesRequest filter. */
+ public filter: string;
+
+ /** ListVolumesRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListVolumesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVolumesRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListVolumesRequest): google.cloud.netapp.v1.ListVolumesRequest;
+
+ /**
+ * Encodes the specified ListVolumesRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages.
+ * @param message ListVolumesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVolumesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages.
+ * @param message ListVolumesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVolumesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVolumesRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.ListVolumesRequest;
+
+ /**
+ * Decodes a ListVolumesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVolumesRequest
+ * @throws {Error} If the payload 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.netapp.v1.ListVolumesRequest;
+
+ /**
+ * Verifies a ListVolumesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVolumesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVolumesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListVolumesRequest;
+
+ /**
+ * Creates a plain object from a ListVolumesRequest message. Also converts values to other types if specified.
+ * @param message ListVolumesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListVolumesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVolumesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVolumesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListVolumesResponse. */
+ interface IListVolumesResponse {
+
+ /** ListVolumesResponse volumes */
+ volumes?: (google.cloud.netapp.v1.IVolume[]|null);
+
+ /** ListVolumesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListVolumesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListVolumesResponse. */
+ class ListVolumesResponse implements IListVolumesResponse {
+
+ /**
+ * Constructs a new ListVolumesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IListVolumesResponse);
+
+ /** ListVolumesResponse volumes. */
+ public volumes: google.cloud.netapp.v1.IVolume[];
+
+ /** ListVolumesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListVolumesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListVolumesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVolumesResponse instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IListVolumesResponse): google.cloud.netapp.v1.ListVolumesResponse;
+
+ /**
+ * Encodes the specified ListVolumesResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages.
+ * @param message ListVolumesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IListVolumesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVolumesResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages.
+ * @param message ListVolumesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IListVolumesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVolumesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVolumesResponse
+ * @throws {Error} If the payload is not 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.netapp.v1.ListVolumesResponse;
+
+ /**
+ * Decodes a ListVolumesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVolumesResponse
+ * @throws {Error} If the payload 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.netapp.v1.ListVolumesResponse;
+
+ /**
+ * Verifies a ListVolumesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVolumesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVolumesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListVolumesResponse;
+
+ /**
+ * Creates a plain object from a ListVolumesResponse message. Also converts values to other types if specified.
+ * @param message ListVolumesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ListVolumesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVolumesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVolumesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetVolumeRequest. */
+ interface IGetVolumeRequest {
+
+ /** GetVolumeRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetVolumeRequest. */
+ class GetVolumeRequest implements IGetVolumeRequest {
+
+ /**
+ * Constructs a new GetVolumeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IGetVolumeRequest);
+
+ /** GetVolumeRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetVolumeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetVolumeRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IGetVolumeRequest): google.cloud.netapp.v1.GetVolumeRequest;
+
+ /**
+ * Encodes the specified GetVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages.
+ * @param message GetVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IGetVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages.
+ * @param message GetVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IGetVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetVolumeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetVolumeRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.GetVolumeRequest;
+
+ /**
+ * Decodes a GetVolumeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetVolumeRequest
+ * @throws {Error} If the payload 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.netapp.v1.GetVolumeRequest;
+
+ /**
+ * Verifies a GetVolumeRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetVolumeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetVolumeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetVolumeRequest;
+
+ /**
+ * Creates a plain object from a GetVolumeRequest message. Also converts values to other types if specified.
+ * @param message GetVolumeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.GetVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetVolumeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetVolumeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateVolumeRequest. */
+ interface ICreateVolumeRequest {
+
+ /** CreateVolumeRequest parent */
+ parent?: (string|null);
+
+ /** CreateVolumeRequest volumeId */
+ volumeId?: (string|null);
+
+ /** CreateVolumeRequest volume */
+ volume?: (google.cloud.netapp.v1.IVolume|null);
+ }
+
+ /** Represents a CreateVolumeRequest. */
+ class CreateVolumeRequest implements ICreateVolumeRequest {
+
+ /**
+ * Constructs a new CreateVolumeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ICreateVolumeRequest);
+
+ /** CreateVolumeRequest parent. */
+ public parent: string;
+
+ /** CreateVolumeRequest volumeId. */
+ public volumeId: string;
+
+ /** CreateVolumeRequest volume. */
+ public volume?: (google.cloud.netapp.v1.IVolume|null);
+
+ /**
+ * Creates a new CreateVolumeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateVolumeRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ICreateVolumeRequest): google.cloud.netapp.v1.CreateVolumeRequest;
+
+ /**
+ * Encodes the specified CreateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages.
+ * @param message CreateVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ICreateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages.
+ * @param message CreateVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ICreateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateVolumeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateVolumeRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.CreateVolumeRequest;
+
+ /**
+ * Decodes a CreateVolumeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateVolumeRequest
+ * @throws {Error} If the payload 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.netapp.v1.CreateVolumeRequest;
+
+ /**
+ * Verifies a CreateVolumeRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateVolumeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateVolumeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateVolumeRequest;
+
+ /**
+ * Creates a plain object from a CreateVolumeRequest message. Also converts values to other types if specified.
+ * @param message CreateVolumeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.CreateVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateVolumeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateVolumeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateVolumeRequest. */
+ interface IUpdateVolumeRequest {
+
+ /** UpdateVolumeRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateVolumeRequest volume */
+ volume?: (google.cloud.netapp.v1.IVolume|null);
+ }
+
+ /** Represents an UpdateVolumeRequest. */
+ class UpdateVolumeRequest implements IUpdateVolumeRequest {
+
+ /**
+ * Constructs a new UpdateVolumeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IUpdateVolumeRequest);
+
+ /** UpdateVolumeRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateVolumeRequest volume. */
+ public volume?: (google.cloud.netapp.v1.IVolume|null);
+
+ /**
+ * Creates a new UpdateVolumeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateVolumeRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IUpdateVolumeRequest): google.cloud.netapp.v1.UpdateVolumeRequest;
+
+ /**
+ * Encodes the specified UpdateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages.
+ * @param message UpdateVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IUpdateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages.
+ * @param message UpdateVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateVolumeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateVolumeRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.UpdateVolumeRequest;
+
+ /**
+ * Decodes an UpdateVolumeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateVolumeRequest
+ * @throws {Error} If the payload 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.netapp.v1.UpdateVolumeRequest;
+
+ /**
+ * Verifies an UpdateVolumeRequest message.
+ * @param message Plain 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 UpdateVolumeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateVolumeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateVolumeRequest;
+
+ /**
+ * Creates a plain object from an UpdateVolumeRequest message. Also converts values to other types if specified.
+ * @param message UpdateVolumeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.UpdateVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateVolumeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateVolumeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteVolumeRequest. */
+ interface IDeleteVolumeRequest {
+
+ /** DeleteVolumeRequest name */
+ name?: (string|null);
+
+ /** DeleteVolumeRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteVolumeRequest. */
+ class DeleteVolumeRequest implements IDeleteVolumeRequest {
+
+ /**
+ * Constructs a new DeleteVolumeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IDeleteVolumeRequest);
+
+ /** DeleteVolumeRequest name. */
+ public name: string;
+
+ /** DeleteVolumeRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new DeleteVolumeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteVolumeRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IDeleteVolumeRequest): google.cloud.netapp.v1.DeleteVolumeRequest;
+
+ /**
+ * Encodes the specified DeleteVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages.
+ * @param message DeleteVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IDeleteVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages.
+ * @param message DeleteVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteVolumeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteVolumeRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.DeleteVolumeRequest;
+
+ /**
+ * Decodes a DeleteVolumeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteVolumeRequest
+ * @throws {Error} If the payload 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.netapp.v1.DeleteVolumeRequest;
+
+ /**
+ * Verifies a DeleteVolumeRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteVolumeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteVolumeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteVolumeRequest;
+
+ /**
+ * Creates a plain object from a DeleteVolumeRequest message. Also converts values to other types if specified.
+ * @param message DeleteVolumeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.DeleteVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteVolumeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteVolumeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RevertVolumeRequest. */
+ interface IRevertVolumeRequest {
+
+ /** RevertVolumeRequest name */
+ name?: (string|null);
+
+ /** RevertVolumeRequest snapshotId */
+ snapshotId?: (string|null);
+ }
+
+ /** Represents a RevertVolumeRequest. */
+ class RevertVolumeRequest implements IRevertVolumeRequest {
+
+ /**
+ * Constructs a new RevertVolumeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IRevertVolumeRequest);
+
+ /** RevertVolumeRequest name. */
+ public name: string;
+
+ /** RevertVolumeRequest snapshotId. */
+ public snapshotId: string;
+
+ /**
+ * Creates a new RevertVolumeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RevertVolumeRequest instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IRevertVolumeRequest): google.cloud.netapp.v1.RevertVolumeRequest;
+
+ /**
+ * Encodes the specified RevertVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages.
+ * @param message RevertVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IRevertVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RevertVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages.
+ * @param message RevertVolumeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IRevertVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RevertVolumeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RevertVolumeRequest
+ * @throws {Error} If the payload is not 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.netapp.v1.RevertVolumeRequest;
+
+ /**
+ * Decodes a RevertVolumeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RevertVolumeRequest
+ * @throws {Error} If the payload 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.netapp.v1.RevertVolumeRequest;
+
+ /**
+ * Verifies a RevertVolumeRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RevertVolumeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RevertVolumeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.RevertVolumeRequest;
+
+ /**
+ * Creates a plain object from a RevertVolumeRequest message. Also converts values to other types if specified.
+ * @param message RevertVolumeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.RevertVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RevertVolumeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RevertVolumeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Volume. */
+ interface IVolume {
+
+ /** Volume name */
+ name?: (string|null);
+
+ /** Volume state */
+ state?: (google.cloud.netapp.v1.Volume.State|keyof typeof google.cloud.netapp.v1.Volume.State|null);
+
+ /** Volume stateDetails */
+ stateDetails?: (string|null);
+
+ /** Volume createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Volume shareName */
+ shareName?: (string|null);
+
+ /** Volume psaRange */
+ psaRange?: (string|null);
+
+ /** Volume storagePool */
+ storagePool?: (string|null);
+
+ /** Volume network */
+ network?: (string|null);
+
+ /** Volume serviceLevel */
+ serviceLevel?: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel|null);
+
+ /** Volume capacityGib */
+ capacityGib?: (number|Long|string|null);
+
+ /** Volume exportPolicy */
+ exportPolicy?: (google.cloud.netapp.v1.IExportPolicy|null);
+
+ /** Volume protocols */
+ protocols?: (google.cloud.netapp.v1.Protocols[]|null);
+
+ /** Volume smbSettings */
+ smbSettings?: (google.cloud.netapp.v1.SMBSettings[]|null);
+
+ /** Volume mountOptions */
+ mountOptions?: (google.cloud.netapp.v1.IMountOption[]|null);
+
+ /** Volume unixPermissions */
+ unixPermissions?: (string|null);
+
+ /** Volume labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Volume description */
+ description?: (string|null);
+
+ /** Volume snapshotPolicy */
+ snapshotPolicy?: (google.cloud.netapp.v1.ISnapshotPolicy|null);
+
+ /** Volume snapReserve */
+ snapReserve?: (number|null);
+
+ /** Volume snapshotDirectory */
+ snapshotDirectory?: (boolean|null);
+
+ /** Volume usedGib */
+ usedGib?: (number|Long|string|null);
+
+ /** Volume securityStyle */
+ securityStyle?: (google.cloud.netapp.v1.SecurityStyle|keyof typeof google.cloud.netapp.v1.SecurityStyle|null);
+
+ /** Volume kerberosEnabled */
+ kerberosEnabled?: (boolean|null);
+
+ /** Volume ldapEnabled */
+ ldapEnabled?: (boolean|null);
+
+ /** Volume activeDirectory */
+ activeDirectory?: (string|null);
+
+ /** Volume restoreParameters */
+ restoreParameters?: (google.cloud.netapp.v1.IRestoreParameters|null);
+
+ /** Volume kmsConfig */
+ kmsConfig?: (string|null);
+
+ /** Volume encryptionType */
+ encryptionType?: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType|null);
+
+ /** Volume hasReplication */
+ hasReplication?: (boolean|null);
+
+ /** Volume restrictedActions */
+ restrictedActions?: (google.cloud.netapp.v1.RestrictedAction[]|null);
+ }
+
+ /** Represents a Volume. */
+ class Volume implements IVolume {
+
+ /**
+ * Constructs a new Volume.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IVolume);
+
+ /** Volume name. */
+ public name: string;
+
+ /** Volume state. */
+ public state: (google.cloud.netapp.v1.Volume.State|keyof typeof google.cloud.netapp.v1.Volume.State);
+
+ /** Volume stateDetails. */
+ public stateDetails: string;
+
+ /** Volume createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Volume shareName. */
+ public shareName: string;
+
+ /** Volume psaRange. */
+ public psaRange: string;
+
+ /** Volume storagePool. */
+ public storagePool: string;
+
+ /** Volume network. */
+ public network: string;
+
+ /** Volume serviceLevel. */
+ public serviceLevel: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel);
+
+ /** Volume capacityGib. */
+ public capacityGib: (number|Long|string);
+
+ /** Volume exportPolicy. */
+ public exportPolicy?: (google.cloud.netapp.v1.IExportPolicy|null);
+
+ /** Volume protocols. */
+ public protocols: google.cloud.netapp.v1.Protocols[];
+
+ /** Volume smbSettings. */
+ public smbSettings: google.cloud.netapp.v1.SMBSettings[];
+
+ /** Volume mountOptions. */
+ public mountOptions: google.cloud.netapp.v1.IMountOption[];
+
+ /** Volume unixPermissions. */
+ public unixPermissions: string;
+
+ /** Volume labels. */
+ public labels: { [k: string]: string };
+
+ /** Volume description. */
+ public description: string;
+
+ /** Volume snapshotPolicy. */
+ public snapshotPolicy?: (google.cloud.netapp.v1.ISnapshotPolicy|null);
+
+ /** Volume snapReserve. */
+ public snapReserve: number;
+
+ /** Volume snapshotDirectory. */
+ public snapshotDirectory: boolean;
+
+ /** Volume usedGib. */
+ public usedGib: (number|Long|string);
+
+ /** Volume securityStyle. */
+ public securityStyle: (google.cloud.netapp.v1.SecurityStyle|keyof typeof google.cloud.netapp.v1.SecurityStyle);
+
+ /** Volume kerberosEnabled. */
+ public kerberosEnabled: boolean;
+
+ /** Volume ldapEnabled. */
+ public ldapEnabled: boolean;
+
+ /** Volume activeDirectory. */
+ public activeDirectory: string;
+
+ /** Volume restoreParameters. */
+ public restoreParameters?: (google.cloud.netapp.v1.IRestoreParameters|null);
+
+ /** Volume kmsConfig. */
+ public kmsConfig: string;
+
+ /** Volume encryptionType. */
+ public encryptionType: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType);
+
+ /** Volume hasReplication. */
+ public hasReplication: boolean;
+
+ /** Volume restrictedActions. */
+ public restrictedActions: google.cloud.netapp.v1.RestrictedAction[];
+
+ /**
+ * Creates a new Volume instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Volume instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IVolume): google.cloud.netapp.v1.Volume;
+
+ /**
+ * Encodes the specified Volume message. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages.
+ * @param message Volume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages.
+ * @param message Volume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Volume message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Volume
+ * @throws {Error} If the payload is not 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.netapp.v1.Volume;
+
+ /**
+ * Decodes a Volume message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Volume
+ * @throws {Error} If the payload 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.netapp.v1.Volume;
+
+ /**
+ * Verifies a Volume message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Volume message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Volume
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.Volume;
+
+ /**
+ * Creates a plain object from a Volume message. Also converts values to other types if specified.
+ * @param message Volume
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.Volume, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Volume to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Volume
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Volume {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ READY = 1,
+ CREATING = 2,
+ DELETING = 3,
+ UPDATING = 4,
+ RESTORING = 5,
+ DISABLED = 6,
+ ERROR = 7
+ }
+ }
+
+ /** Properties of an ExportPolicy. */
+ interface IExportPolicy {
+
+ /** ExportPolicy rules */
+ rules?: (google.cloud.netapp.v1.ISimpleExportPolicyRule[]|null);
+ }
+
+ /** Represents an ExportPolicy. */
+ class ExportPolicy implements IExportPolicy {
+
+ /**
+ * Constructs a new ExportPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IExportPolicy);
+
+ /** ExportPolicy rules. */
+ public rules: google.cloud.netapp.v1.ISimpleExportPolicyRule[];
+
+ /**
+ * Creates a new ExportPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportPolicy instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IExportPolicy): google.cloud.netapp.v1.ExportPolicy;
+
+ /**
+ * Encodes the specified ExportPolicy message. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages.
+ * @param message ExportPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IExportPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages.
+ * @param message ExportPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IExportPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportPolicy
+ * @throws {Error} If the payload is not 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.netapp.v1.ExportPolicy;
+
+ /**
+ * Decodes an ExportPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportPolicy
+ * @throws {Error} If the payload 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.netapp.v1.ExportPolicy;
+
+ /**
+ * Verifies an ExportPolicy message.
+ * @param message Plain 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 ExportPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ExportPolicy;
+
+ /**
+ * Creates a plain object from an ExportPolicy message. Also converts values to other types if specified.
+ * @param message ExportPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.ExportPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SimpleExportPolicyRule. */
+ interface ISimpleExportPolicyRule {
+
+ /** SimpleExportPolicyRule allowedClients */
+ allowedClients?: (string|null);
+
+ /** SimpleExportPolicyRule hasRootAccess */
+ hasRootAccess?: (string|null);
+
+ /** SimpleExportPolicyRule accessType */
+ accessType?: (google.cloud.netapp.v1.AccessType|keyof typeof google.cloud.netapp.v1.AccessType|null);
+
+ /** SimpleExportPolicyRule nfsv3 */
+ nfsv3?: (boolean|null);
+
+ /** SimpleExportPolicyRule nfsv4 */
+ nfsv4?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5ReadOnly */
+ kerberos_5ReadOnly?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5ReadWrite */
+ kerberos_5ReadWrite?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5iReadOnly */
+ kerberos_5iReadOnly?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5iReadWrite */
+ kerberos_5iReadWrite?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5pReadOnly */
+ kerberos_5pReadOnly?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5pReadWrite */
+ kerberos_5pReadWrite?: (boolean|null);
+ }
+
+ /** Represents a SimpleExportPolicyRule. */
+ class SimpleExportPolicyRule implements ISimpleExportPolicyRule {
+
+ /**
+ * Constructs a new SimpleExportPolicyRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ISimpleExportPolicyRule);
+
+ /** SimpleExportPolicyRule allowedClients. */
+ public allowedClients?: (string|null);
+
+ /** SimpleExportPolicyRule hasRootAccess. */
+ public hasRootAccess?: (string|null);
+
+ /** SimpleExportPolicyRule accessType. */
+ public accessType?: (google.cloud.netapp.v1.AccessType|keyof typeof google.cloud.netapp.v1.AccessType|null);
+
+ /** SimpleExportPolicyRule nfsv3. */
+ public nfsv3?: (boolean|null);
+
+ /** SimpleExportPolicyRule nfsv4. */
+ public nfsv4?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5ReadOnly. */
+ public kerberos_5ReadOnly?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5ReadWrite. */
+ public kerberos_5ReadWrite?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5iReadOnly. */
+ public kerberos_5iReadOnly?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5iReadWrite. */
+ public kerberos_5iReadWrite?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5pReadOnly. */
+ public kerberos_5pReadOnly?: (boolean|null);
+
+ /** SimpleExportPolicyRule kerberos_5pReadWrite. */
+ public kerberos_5pReadWrite?: (boolean|null);
+
+ /** SimpleExportPolicyRule _allowedClients. */
+ public _allowedClients?: "allowedClients";
+
+ /** SimpleExportPolicyRule _hasRootAccess. */
+ public _hasRootAccess?: "hasRootAccess";
+
+ /** SimpleExportPolicyRule _accessType. */
+ public _accessType?: "accessType";
+
+ /** SimpleExportPolicyRule _nfsv3. */
+ public _nfsv3?: "nfsv3";
+
+ /** SimpleExportPolicyRule _nfsv4. */
+ public _nfsv4?: "nfsv4";
+
+ /** SimpleExportPolicyRule _kerberos_5ReadOnly. */
+ public _kerberos_5ReadOnly?: "kerberos_5ReadOnly";
+
+ /** SimpleExportPolicyRule _kerberos_5ReadWrite. */
+ public _kerberos_5ReadWrite?: "kerberos_5ReadWrite";
+
+ /** SimpleExportPolicyRule _kerberos_5iReadOnly. */
+ public _kerberos_5iReadOnly?: "kerberos_5iReadOnly";
+
+ /** SimpleExportPolicyRule _kerberos_5iReadWrite. */
+ public _kerberos_5iReadWrite?: "kerberos_5iReadWrite";
+
+ /** SimpleExportPolicyRule _kerberos_5pReadOnly. */
+ public _kerberos_5pReadOnly?: "kerberos_5pReadOnly";
+
+ /** SimpleExportPolicyRule _kerberos_5pReadWrite. */
+ public _kerberos_5pReadWrite?: "kerberos_5pReadWrite";
+
+ /**
+ * Creates a new SimpleExportPolicyRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SimpleExportPolicyRule instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ISimpleExportPolicyRule): google.cloud.netapp.v1.SimpleExportPolicyRule;
+
+ /**
+ * Encodes the specified SimpleExportPolicyRule message. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages.
+ * @param message SimpleExportPolicyRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ISimpleExportPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SimpleExportPolicyRule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages.
+ * @param message SimpleExportPolicyRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ISimpleExportPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SimpleExportPolicyRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SimpleExportPolicyRule
+ * @throws {Error} If the payload is not 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.netapp.v1.SimpleExportPolicyRule;
+
+ /**
+ * Decodes a SimpleExportPolicyRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SimpleExportPolicyRule
+ * @throws {Error} If the payload 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.netapp.v1.SimpleExportPolicyRule;
+
+ /**
+ * Verifies a SimpleExportPolicyRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SimpleExportPolicyRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SimpleExportPolicyRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SimpleExportPolicyRule;
+
+ /**
+ * Creates a plain object from a SimpleExportPolicyRule message. Also converts values to other types if specified.
+ * @param message SimpleExportPolicyRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.SimpleExportPolicyRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SimpleExportPolicyRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SimpleExportPolicyRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SnapshotPolicy. */
+ interface ISnapshotPolicy {
+
+ /** SnapshotPolicy enabled */
+ enabled?: (boolean|null);
+
+ /** SnapshotPolicy hourlySchedule */
+ hourlySchedule?: (google.cloud.netapp.v1.IHourlySchedule|null);
+
+ /** SnapshotPolicy dailySchedule */
+ dailySchedule?: (google.cloud.netapp.v1.IDailySchedule|null);
+
+ /** SnapshotPolicy weeklySchedule */
+ weeklySchedule?: (google.cloud.netapp.v1.IWeeklySchedule|null);
+
+ /** SnapshotPolicy monthlySchedule */
+ monthlySchedule?: (google.cloud.netapp.v1.IMonthlySchedule|null);
+ }
+
+ /** Represents a SnapshotPolicy. */
+ class SnapshotPolicy implements ISnapshotPolicy {
+
+ /**
+ * Constructs a new SnapshotPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.ISnapshotPolicy);
+
+ /** SnapshotPolicy enabled. */
+ public enabled?: (boolean|null);
+
+ /** SnapshotPolicy hourlySchedule. */
+ public hourlySchedule?: (google.cloud.netapp.v1.IHourlySchedule|null);
+
+ /** SnapshotPolicy dailySchedule. */
+ public dailySchedule?: (google.cloud.netapp.v1.IDailySchedule|null);
+
+ /** SnapshotPolicy weeklySchedule. */
+ public weeklySchedule?: (google.cloud.netapp.v1.IWeeklySchedule|null);
+
+ /** SnapshotPolicy monthlySchedule. */
+ public monthlySchedule?: (google.cloud.netapp.v1.IMonthlySchedule|null);
+
+ /** SnapshotPolicy _enabled. */
+ public _enabled?: "enabled";
+
+ /** SnapshotPolicy _hourlySchedule. */
+ public _hourlySchedule?: "hourlySchedule";
+
+ /** SnapshotPolicy _dailySchedule. */
+ public _dailySchedule?: "dailySchedule";
+
+ /** SnapshotPolicy _weeklySchedule. */
+ public _weeklySchedule?: "weeklySchedule";
+
+ /** SnapshotPolicy _monthlySchedule. */
+ public _monthlySchedule?: "monthlySchedule";
+
+ /**
+ * Creates a new SnapshotPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SnapshotPolicy instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.ISnapshotPolicy): google.cloud.netapp.v1.SnapshotPolicy;
+
+ /**
+ * Encodes the specified SnapshotPolicy message. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages.
+ * @param message SnapshotPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.ISnapshotPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SnapshotPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages.
+ * @param message SnapshotPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.ISnapshotPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SnapshotPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SnapshotPolicy
+ * @throws {Error} If the payload is not 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.netapp.v1.SnapshotPolicy;
+
+ /**
+ * Decodes a SnapshotPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SnapshotPolicy
+ * @throws {Error} If the payload 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.netapp.v1.SnapshotPolicy;
+
+ /**
+ * Verifies a SnapshotPolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SnapshotPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SnapshotPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SnapshotPolicy;
+
+ /**
+ * Creates a plain object from a SnapshotPolicy message. Also converts values to other types if specified.
+ * @param message SnapshotPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.SnapshotPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SnapshotPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SnapshotPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an HourlySchedule. */
+ interface IHourlySchedule {
+
+ /** HourlySchedule snapshotsToKeep */
+ snapshotsToKeep?: (number|null);
+
+ /** HourlySchedule minute */
+ minute?: (number|null);
+ }
+
+ /** Represents an HourlySchedule. */
+ class HourlySchedule implements IHourlySchedule {
+
+ /**
+ * Constructs a new HourlySchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IHourlySchedule);
+
+ /** HourlySchedule snapshotsToKeep. */
+ public snapshotsToKeep?: (number|null);
+
+ /** HourlySchedule minute. */
+ public minute?: (number|null);
+
+ /** HourlySchedule _snapshotsToKeep. */
+ public _snapshotsToKeep?: "snapshotsToKeep";
+
+ /** HourlySchedule _minute. */
+ public _minute?: "minute";
+
+ /**
+ * Creates a new HourlySchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HourlySchedule instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IHourlySchedule): google.cloud.netapp.v1.HourlySchedule;
+
+ /**
+ * Encodes the specified HourlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages.
+ * @param message HourlySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IHourlySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HourlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages.
+ * @param message HourlySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IHourlySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an HourlySchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HourlySchedule
+ * @throws {Error} If the payload is not 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.netapp.v1.HourlySchedule;
+
+ /**
+ * Decodes an HourlySchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HourlySchedule
+ * @throws {Error} If the payload 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.netapp.v1.HourlySchedule;
+
+ /**
+ * Verifies an HourlySchedule message.
+ * @param message Plain 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 HourlySchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HourlySchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.HourlySchedule;
+
+ /**
+ * Creates a plain object from an HourlySchedule message. Also converts values to other types if specified.
+ * @param message HourlySchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.HourlySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HourlySchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HourlySchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DailySchedule. */
+ interface IDailySchedule {
+
+ /** DailySchedule snapshotsToKeep */
+ snapshotsToKeep?: (number|null);
+
+ /** DailySchedule minute */
+ minute?: (number|null);
+
+ /** DailySchedule hour */
+ hour?: (number|null);
+ }
+
+ /** Represents a DailySchedule. */
+ class DailySchedule implements IDailySchedule {
+
+ /**
+ * Constructs a new DailySchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IDailySchedule);
+
+ /** DailySchedule snapshotsToKeep. */
+ public snapshotsToKeep?: (number|null);
+
+ /** DailySchedule minute. */
+ public minute?: (number|null);
+
+ /** DailySchedule hour. */
+ public hour?: (number|null);
+
+ /** DailySchedule _snapshotsToKeep. */
+ public _snapshotsToKeep?: "snapshotsToKeep";
+
+ /** DailySchedule _minute. */
+ public _minute?: "minute";
+
+ /** DailySchedule _hour. */
+ public _hour?: "hour";
+
+ /**
+ * Creates a new DailySchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DailySchedule instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IDailySchedule): google.cloud.netapp.v1.DailySchedule;
+
+ /**
+ * Encodes the specified DailySchedule message. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages.
+ * @param message DailySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IDailySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DailySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages.
+ * @param message DailySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IDailySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DailySchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DailySchedule
+ * @throws {Error} If the payload is not 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.netapp.v1.DailySchedule;
+
+ /**
+ * Decodes a DailySchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DailySchedule
+ * @throws {Error} If the payload 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.netapp.v1.DailySchedule;
+
+ /**
+ * Verifies a DailySchedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DailySchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DailySchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DailySchedule;
+
+ /**
+ * Creates a plain object from a DailySchedule message. Also converts values to other types if specified.
+ * @param message DailySchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.DailySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DailySchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DailySchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WeeklySchedule. */
+ interface IWeeklySchedule {
+
+ /** WeeklySchedule snapshotsToKeep */
+ snapshotsToKeep?: (number|null);
+
+ /** WeeklySchedule minute */
+ minute?: (number|null);
+
+ /** WeeklySchedule hour */
+ hour?: (number|null);
+
+ /** WeeklySchedule day */
+ day?: (string|null);
+ }
+
+ /** Represents a WeeklySchedule. */
+ class WeeklySchedule implements IWeeklySchedule {
+
+ /**
+ * Constructs a new WeeklySchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IWeeklySchedule);
+
+ /** WeeklySchedule snapshotsToKeep. */
+ public snapshotsToKeep?: (number|null);
+
+ /** WeeklySchedule minute. */
+ public minute?: (number|null);
+
+ /** WeeklySchedule hour. */
+ public hour?: (number|null);
+
+ /** WeeklySchedule day. */
+ public day?: (string|null);
+
+ /** WeeklySchedule _snapshotsToKeep. */
+ public _snapshotsToKeep?: "snapshotsToKeep";
+
+ /** WeeklySchedule _minute. */
+ public _minute?: "minute";
+
+ /** WeeklySchedule _hour. */
+ public _hour?: "hour";
+
+ /** WeeklySchedule _day. */
+ public _day?: "day";
+
+ /**
+ * Creates a new WeeklySchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WeeklySchedule instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IWeeklySchedule): google.cloud.netapp.v1.WeeklySchedule;
+
+ /**
+ * Encodes the specified WeeklySchedule message. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages.
+ * @param message WeeklySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WeeklySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages.
+ * @param message WeeklySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WeeklySchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WeeklySchedule
+ * @throws {Error} If the payload is not 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.netapp.v1.WeeklySchedule;
+
+ /**
+ * Decodes a WeeklySchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WeeklySchedule
+ * @throws {Error} If the payload 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.netapp.v1.WeeklySchedule;
+
+ /**
+ * Verifies a WeeklySchedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WeeklySchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WeeklySchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.WeeklySchedule;
+
+ /**
+ * Creates a plain object from a WeeklySchedule message. Also converts values to other types if specified.
+ * @param message WeeklySchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.WeeklySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WeeklySchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WeeklySchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MonthlySchedule. */
+ interface IMonthlySchedule {
+
+ /** MonthlySchedule snapshotsToKeep */
+ snapshotsToKeep?: (number|null);
+
+ /** MonthlySchedule minute */
+ minute?: (number|null);
+
+ /** MonthlySchedule hour */
+ hour?: (number|null);
+
+ /** MonthlySchedule daysOfMonth */
+ daysOfMonth?: (string|null);
+ }
+
+ /** Represents a MonthlySchedule. */
+ class MonthlySchedule implements IMonthlySchedule {
+
+ /**
+ * Constructs a new MonthlySchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IMonthlySchedule);
+
+ /** MonthlySchedule snapshotsToKeep. */
+ public snapshotsToKeep?: (number|null);
+
+ /** MonthlySchedule minute. */
+ public minute?: (number|null);
+
+ /** MonthlySchedule hour. */
+ public hour?: (number|null);
+
+ /** MonthlySchedule daysOfMonth. */
+ public daysOfMonth?: (string|null);
+
+ /** MonthlySchedule _snapshotsToKeep. */
+ public _snapshotsToKeep?: "snapshotsToKeep";
+
+ /** MonthlySchedule _minute. */
+ public _minute?: "minute";
+
+ /** MonthlySchedule _hour. */
+ public _hour?: "hour";
+
+ /** MonthlySchedule _daysOfMonth. */
+ public _daysOfMonth?: "daysOfMonth";
+
+ /**
+ * Creates a new MonthlySchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MonthlySchedule instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IMonthlySchedule): google.cloud.netapp.v1.MonthlySchedule;
+
+ /**
+ * Encodes the specified MonthlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages.
+ * @param message MonthlySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MonthlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages.
+ * @param message MonthlySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MonthlySchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MonthlySchedule
+ * @throws {Error} If the payload is not 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.netapp.v1.MonthlySchedule;
+
+ /**
+ * Decodes a MonthlySchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MonthlySchedule
+ * @throws {Error} If the payload 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.netapp.v1.MonthlySchedule;
+
+ /**
+ * Verifies a MonthlySchedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MonthlySchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MonthlySchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.MonthlySchedule;
+
+ /**
+ * Creates a plain object from a MonthlySchedule message. Also converts values to other types if specified.
+ * @param message MonthlySchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.MonthlySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MonthlySchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MonthlySchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MountOption. */
+ interface IMountOption {
+
+ /** MountOption export */
+ "export"?: (string|null);
+
+ /** MountOption exportFull */
+ exportFull?: (string|null);
+
+ /** MountOption protocol */
+ protocol?: (google.cloud.netapp.v1.Protocols|keyof typeof google.cloud.netapp.v1.Protocols|null);
+
+ /** MountOption instructions */
+ instructions?: (string|null);
+ }
+
+ /** Represents a MountOption. */
+ class MountOption implements IMountOption {
+
+ /**
+ * Constructs a new MountOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IMountOption);
+
+ /** MountOption export. */
+ public export: string;
+
+ /** MountOption exportFull. */
+ public exportFull: string;
+
+ /** MountOption protocol. */
+ public protocol: (google.cloud.netapp.v1.Protocols|keyof typeof google.cloud.netapp.v1.Protocols);
+
+ /** MountOption instructions. */
+ public instructions: string;
+
+ /**
+ * Creates a new MountOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MountOption instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IMountOption): google.cloud.netapp.v1.MountOption;
+
+ /**
+ * Encodes the specified MountOption message. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages.
+ * @param message MountOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IMountOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MountOption message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages.
+ * @param message MountOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IMountOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MountOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MountOption
+ * @throws {Error} If the payload is not 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.netapp.v1.MountOption;
+
+ /**
+ * Decodes a MountOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MountOption
+ * @throws {Error} If the payload 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.netapp.v1.MountOption;
+
+ /**
+ * Verifies a MountOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MountOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MountOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.MountOption;
+
+ /**
+ * Creates a plain object from a MountOption message. Also converts values to other types if specified.
+ * @param message MountOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.MountOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MountOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MountOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreParameters. */
+ interface IRestoreParameters {
+
+ /** RestoreParameters sourceSnapshot */
+ sourceSnapshot?: (string|null);
+ }
+
+ /** Represents a RestoreParameters. */
+ class RestoreParameters implements IRestoreParameters {
+
+ /**
+ * Constructs a new RestoreParameters.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.netapp.v1.IRestoreParameters);
+
+ /** RestoreParameters sourceSnapshot. */
+ public sourceSnapshot?: (string|null);
+
+ /** RestoreParameters source. */
+ public source?: "sourceSnapshot";
+
+ /**
+ * Creates a new RestoreParameters instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreParameters instance
+ */
+ public static create(properties?: google.cloud.netapp.v1.IRestoreParameters): google.cloud.netapp.v1.RestoreParameters;
+
+ /**
+ * Encodes the specified RestoreParameters message. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages.
+ * @param message RestoreParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.netapp.v1.IRestoreParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages.
+ * @param message RestoreParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.netapp.v1.IRestoreParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreParameters message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreParameters
+ * @throws {Error} If the payload is not 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.netapp.v1.RestoreParameters;
+
+ /**
+ * Decodes a RestoreParameters message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreParameters
+ * @throws {Error} If the payload 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.netapp.v1.RestoreParameters;
+
+ /**
+ * Verifies a RestoreParameters message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestoreParameters message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreParameters
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.RestoreParameters;
+
+ /**
+ * Creates a plain object from a RestoreParameters message. Also converts values to other types if specified.
+ * @param message RestoreParameters
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.netapp.v1.RestoreParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreParameters to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreParameters
+ * @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 ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+ }
+
+ /** 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 deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (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 deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: 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 debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions target */
+ target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions target. */
+ public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+ }
+
+ /** Properties of an 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 deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (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 deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: 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 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 Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|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 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;
+ }
+ }
+
+ /** 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-netapp/protos/protos.js b/packages/google-cloud-netapp/protos/protos.js
new file mode 100644
index 000000000000..f3dc5d8f9822
--- /dev/null
+++ b/packages/google-cloud-netapp/protos/protos.js
@@ -0,0 +1,39210 @@
+// Copyright 2023 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_netapp_protos || ($protobuf.roots._google_cloud_netapp_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.netapp = (function() {
+
+ /**
+ * Namespace netapp.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var netapp = {};
+
+ netapp.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.netapp
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.ListActiveDirectoriesRequest = (function() {
+
+ /**
+ * Properties of a ListActiveDirectoriesRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListActiveDirectoriesRequest
+ * @property {string|null} [parent] ListActiveDirectoriesRequest parent
+ * @property {number|null} [pageSize] ListActiveDirectoriesRequest pageSize
+ * @property {string|null} [pageToken] ListActiveDirectoriesRequest pageToken
+ * @property {string|null} [filter] ListActiveDirectoriesRequest filter
+ * @property {string|null} [orderBy] ListActiveDirectoriesRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListActiveDirectoriesRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListActiveDirectoriesRequest.
+ * @implements IListActiveDirectoriesRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesRequest=} [properties] Properties to set
+ */
+ function ListActiveDirectoriesRequest(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]];
+ }
+
+ /**
+ * ListActiveDirectoriesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @instance
+ */
+ ListActiveDirectoriesRequest.prototype.parent = "";
+
+ /**
+ * ListActiveDirectoriesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @instance
+ */
+ ListActiveDirectoriesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListActiveDirectoriesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @instance
+ */
+ ListActiveDirectoriesRequest.prototype.pageToken = "";
+
+ /**
+ * ListActiveDirectoriesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @instance
+ */
+ ListActiveDirectoriesRequest.prototype.filter = "";
+
+ /**
+ * ListActiveDirectoriesRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @instance
+ */
+ ListActiveDirectoriesRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListActiveDirectoriesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesRequest} ListActiveDirectoriesRequest instance
+ */
+ ListActiveDirectoriesRequest.create = function create(properties) {
+ return new ListActiveDirectoriesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListActiveDirectoriesRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesRequest} message ListActiveDirectoriesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListActiveDirectoriesRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListActiveDirectoriesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesRequest} message ListActiveDirectoriesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListActiveDirectoriesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListActiveDirectoriesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesRequest} ListActiveDirectoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListActiveDirectoriesRequest.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.netapp.v1.ListActiveDirectoriesRequest();
+ 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.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListActiveDirectoriesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesRequest} ListActiveDirectoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListActiveDirectoriesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListActiveDirectoriesRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListActiveDirectoriesRequest.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.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListActiveDirectoriesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesRequest} ListActiveDirectoriesRequest
+ */
+ ListActiveDirectoriesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListActiveDirectoriesRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListActiveDirectoriesRequest();
+ 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.filter != null)
+ message.filter = String(object.filter);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListActiveDirectoriesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ListActiveDirectoriesRequest} message ListActiveDirectoriesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListActiveDirectoriesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ 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.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListActiveDirectoriesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListActiveDirectoriesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListActiveDirectoriesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListActiveDirectoriesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListActiveDirectoriesRequest";
+ };
+
+ return ListActiveDirectoriesRequest;
+ })();
+
+ v1.ListActiveDirectoriesResponse = (function() {
+
+ /**
+ * Properties of a ListActiveDirectoriesResponse.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListActiveDirectoriesResponse
+ * @property {Array.|null} [activeDirectories] ListActiveDirectoriesResponse activeDirectories
+ * @property {string|null} [nextPageToken] ListActiveDirectoriesResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListActiveDirectoriesResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListActiveDirectoriesResponse.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListActiveDirectoriesResponse.
+ * @implements IListActiveDirectoriesResponse
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesResponse=} [properties] Properties to set
+ */
+ function ListActiveDirectoriesResponse(properties) {
+ this.activeDirectories = [];
+ 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]];
+ }
+
+ /**
+ * ListActiveDirectoriesResponse activeDirectories.
+ * @member {Array.} activeDirectories
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @instance
+ */
+ ListActiveDirectoriesResponse.prototype.activeDirectories = $util.emptyArray;
+
+ /**
+ * ListActiveDirectoriesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @instance
+ */
+ ListActiveDirectoriesResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListActiveDirectoriesResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @instance
+ */
+ ListActiveDirectoriesResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListActiveDirectoriesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesResponse=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesResponse} ListActiveDirectoriesResponse instance
+ */
+ ListActiveDirectoriesResponse.create = function create(properties) {
+ return new ListActiveDirectoriesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListActiveDirectoriesResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesResponse} message ListActiveDirectoriesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListActiveDirectoriesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.activeDirectories != null && message.activeDirectories.length)
+ for (var i = 0; i < message.activeDirectories.length; ++i)
+ $root.google.cloud.netapp.v1.ActiveDirectory.encode(message.activeDirectories[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 ListActiveDirectoriesResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListActiveDirectoriesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesResponse} message ListActiveDirectoriesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListActiveDirectoriesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListActiveDirectoriesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesResponse} ListActiveDirectoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListActiveDirectoriesResponse.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.netapp.v1.ListActiveDirectoriesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.activeDirectories && message.activeDirectories.length))
+ message.activeDirectories = [];
+ message.activeDirectories.push($root.google.cloud.netapp.v1.ActiveDirectory.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 ListActiveDirectoriesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesResponse} ListActiveDirectoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListActiveDirectoriesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListActiveDirectoriesResponse message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListActiveDirectoriesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.activeDirectories != null && message.hasOwnProperty("activeDirectories")) {
+ if (!Array.isArray(message.activeDirectories))
+ return "activeDirectories: array expected";
+ for (var i = 0; i < message.activeDirectories.length; ++i) {
+ var error = $root.google.cloud.netapp.v1.ActiveDirectory.verify(message.activeDirectories[i]);
+ if (error)
+ return "activeDirectories." + 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 ListActiveDirectoriesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListActiveDirectoriesResponse} ListActiveDirectoriesResponse
+ */
+ ListActiveDirectoriesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListActiveDirectoriesResponse)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListActiveDirectoriesResponse();
+ if (object.activeDirectories) {
+ if (!Array.isArray(object.activeDirectories))
+ throw TypeError(".google.cloud.netapp.v1.ListActiveDirectoriesResponse.activeDirectories: array expected");
+ message.activeDirectories = [];
+ for (var i = 0; i < object.activeDirectories.length; ++i) {
+ if (typeof object.activeDirectories[i] !== "object")
+ throw TypeError(".google.cloud.netapp.v1.ListActiveDirectoriesResponse.activeDirectories: object expected");
+ message.activeDirectories[i] = $root.google.cloud.netapp.v1.ActiveDirectory.fromObject(object.activeDirectories[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.netapp.v1.ListActiveDirectoriesResponse.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 ListActiveDirectoriesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {google.cloud.netapp.v1.ListActiveDirectoriesResponse} message ListActiveDirectoriesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListActiveDirectoriesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.activeDirectories = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.activeDirectories && message.activeDirectories.length) {
+ object.activeDirectories = [];
+ for (var j = 0; j < message.activeDirectories.length; ++j)
+ object.activeDirectories[j] = $root.google.cloud.netapp.v1.ActiveDirectory.toObject(message.activeDirectories[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 ListActiveDirectoriesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListActiveDirectoriesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListActiveDirectoriesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListActiveDirectoriesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListActiveDirectoriesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListActiveDirectoriesResponse";
+ };
+
+ return ListActiveDirectoriesResponse;
+ })();
+
+ v1.GetActiveDirectoryRequest = (function() {
+
+ /**
+ * Properties of a GetActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IGetActiveDirectoryRequest
+ * @property {string|null} [name] GetActiveDirectoryRequest name
+ */
+
+ /**
+ * Constructs a new GetActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a GetActiveDirectoryRequest.
+ * @implements IGetActiveDirectoryRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IGetActiveDirectoryRequest=} [properties] Properties to set
+ */
+ function GetActiveDirectoryRequest(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]];
+ }
+
+ /**
+ * GetActiveDirectoryRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @instance
+ */
+ GetActiveDirectoryRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetActiveDirectoryRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetActiveDirectoryRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.GetActiveDirectoryRequest} GetActiveDirectoryRequest instance
+ */
+ GetActiveDirectoryRequest.create = function create(properties) {
+ return new GetActiveDirectoryRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetActiveDirectoryRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetActiveDirectoryRequest} message GetActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetActiveDirectoryRequest.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 GetActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetActiveDirectoryRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetActiveDirectoryRequest} message GetActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetActiveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetActiveDirectoryRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.GetActiveDirectoryRequest} GetActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetActiveDirectoryRequest.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.netapp.v1.GetActiveDirectoryRequest();
+ 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 GetActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.GetActiveDirectoryRequest} GetActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetActiveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetActiveDirectoryRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetActiveDirectoryRequest.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 GetActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.GetActiveDirectoryRequest} GetActiveDirectoryRequest
+ */
+ GetActiveDirectoryRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.GetActiveDirectoryRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.GetActiveDirectoryRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.GetActiveDirectoryRequest} message GetActiveDirectoryRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetActiveDirectoryRequest.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 GetActiveDirectoryRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetActiveDirectoryRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetActiveDirectoryRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.GetActiveDirectoryRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetActiveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.GetActiveDirectoryRequest";
+ };
+
+ return GetActiveDirectoryRequest;
+ })();
+
+ v1.CreateActiveDirectoryRequest = (function() {
+
+ /**
+ * Properties of a CreateActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface ICreateActiveDirectoryRequest
+ * @property {string|null} [parent] CreateActiveDirectoryRequest parent
+ * @property {google.cloud.netapp.v1.IActiveDirectory|null} [activeDirectory] CreateActiveDirectoryRequest activeDirectory
+ * @property {string|null} [activeDirectoryId] CreateActiveDirectoryRequest activeDirectoryId
+ */
+
+ /**
+ * Constructs a new CreateActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a CreateActiveDirectoryRequest.
+ * @implements ICreateActiveDirectoryRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.ICreateActiveDirectoryRequest=} [properties] Properties to set
+ */
+ function CreateActiveDirectoryRequest(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]];
+ }
+
+ /**
+ * CreateActiveDirectoryRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @instance
+ */
+ CreateActiveDirectoryRequest.prototype.parent = "";
+
+ /**
+ * CreateActiveDirectoryRequest activeDirectory.
+ * @member {google.cloud.netapp.v1.IActiveDirectory|null|undefined} activeDirectory
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @instance
+ */
+ CreateActiveDirectoryRequest.prototype.activeDirectory = null;
+
+ /**
+ * CreateActiveDirectoryRequest activeDirectoryId.
+ * @member {string} activeDirectoryId
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @instance
+ */
+ CreateActiveDirectoryRequest.prototype.activeDirectoryId = "";
+
+ /**
+ * Creates a new CreateActiveDirectoryRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateActiveDirectoryRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.CreateActiveDirectoryRequest} CreateActiveDirectoryRequest instance
+ */
+ CreateActiveDirectoryRequest.create = function create(properties) {
+ return new CreateActiveDirectoryRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateActiveDirectoryRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateActiveDirectoryRequest} message CreateActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateActiveDirectoryRequest.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.activeDirectory != null && Object.hasOwnProperty.call(message, "activeDirectory"))
+ $root.google.cloud.netapp.v1.ActiveDirectory.encode(message.activeDirectory, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.activeDirectoryId != null && Object.hasOwnProperty.call(message, "activeDirectoryId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.activeDirectoryId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateActiveDirectoryRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateActiveDirectoryRequest} message CreateActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateActiveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateActiveDirectoryRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.CreateActiveDirectoryRequest} CreateActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateActiveDirectoryRequest.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.netapp.v1.CreateActiveDirectoryRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.activeDirectory = $root.google.cloud.netapp.v1.ActiveDirectory.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.activeDirectoryId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.CreateActiveDirectoryRequest} CreateActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateActiveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateActiveDirectoryRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateActiveDirectoryRequest.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.activeDirectory != null && message.hasOwnProperty("activeDirectory")) {
+ var error = $root.google.cloud.netapp.v1.ActiveDirectory.verify(message.activeDirectory);
+ if (error)
+ return "activeDirectory." + error;
+ }
+ if (message.activeDirectoryId != null && message.hasOwnProperty("activeDirectoryId"))
+ if (!$util.isString(message.activeDirectoryId))
+ return "activeDirectoryId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.CreateActiveDirectoryRequest} CreateActiveDirectoryRequest
+ */
+ CreateActiveDirectoryRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.CreateActiveDirectoryRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.CreateActiveDirectoryRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.activeDirectory != null) {
+ if (typeof object.activeDirectory !== "object")
+ throw TypeError(".google.cloud.netapp.v1.CreateActiveDirectoryRequest.activeDirectory: object expected");
+ message.activeDirectory = $root.google.cloud.netapp.v1.ActiveDirectory.fromObject(object.activeDirectory);
+ }
+ if (object.activeDirectoryId != null)
+ message.activeDirectoryId = String(object.activeDirectoryId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.CreateActiveDirectoryRequest} message CreateActiveDirectoryRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateActiveDirectoryRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.activeDirectory = null;
+ object.activeDirectoryId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory"))
+ object.activeDirectory = $root.google.cloud.netapp.v1.ActiveDirectory.toObject(message.activeDirectory, options);
+ if (message.activeDirectoryId != null && message.hasOwnProperty("activeDirectoryId"))
+ object.activeDirectoryId = message.activeDirectoryId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateActiveDirectoryRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateActiveDirectoryRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateActiveDirectoryRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.CreateActiveDirectoryRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateActiveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.CreateActiveDirectoryRequest";
+ };
+
+ return CreateActiveDirectoryRequest;
+ })();
+
+ v1.UpdateActiveDirectoryRequest = (function() {
+
+ /**
+ * Properties of an UpdateActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IUpdateActiveDirectoryRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateActiveDirectoryRequest updateMask
+ * @property {google.cloud.netapp.v1.IActiveDirectory|null} [activeDirectory] UpdateActiveDirectoryRequest activeDirectory
+ */
+
+ /**
+ * Constructs a new UpdateActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents an UpdateActiveDirectoryRequest.
+ * @implements IUpdateActiveDirectoryRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IUpdateActiveDirectoryRequest=} [properties] Properties to set
+ */
+ function UpdateActiveDirectoryRequest(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]];
+ }
+
+ /**
+ * UpdateActiveDirectoryRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @instance
+ */
+ UpdateActiveDirectoryRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateActiveDirectoryRequest activeDirectory.
+ * @member {google.cloud.netapp.v1.IActiveDirectory|null|undefined} activeDirectory
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @instance
+ */
+ UpdateActiveDirectoryRequest.prototype.activeDirectory = null;
+
+ /**
+ * Creates a new UpdateActiveDirectoryRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateActiveDirectoryRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.UpdateActiveDirectoryRequest} UpdateActiveDirectoryRequest instance
+ */
+ UpdateActiveDirectoryRequest.create = function create(properties) {
+ return new UpdateActiveDirectoryRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateActiveDirectoryRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateActiveDirectoryRequest} message UpdateActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateActiveDirectoryRequest.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.activeDirectory != null && Object.hasOwnProperty.call(message, "activeDirectory"))
+ $root.google.cloud.netapp.v1.ActiveDirectory.encode(message.activeDirectory, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateActiveDirectoryRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateActiveDirectoryRequest} message UpdateActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateActiveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateActiveDirectoryRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.UpdateActiveDirectoryRequest} UpdateActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateActiveDirectoryRequest.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.netapp.v1.UpdateActiveDirectoryRequest();
+ 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.activeDirectory = $root.google.cloud.netapp.v1.ActiveDirectory.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.UpdateActiveDirectoryRequest} UpdateActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateActiveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateActiveDirectoryRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateActiveDirectoryRequest.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.activeDirectory != null && message.hasOwnProperty("activeDirectory")) {
+ var error = $root.google.cloud.netapp.v1.ActiveDirectory.verify(message.activeDirectory);
+ if (error)
+ return "activeDirectory." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.UpdateActiveDirectoryRequest} UpdateActiveDirectoryRequest
+ */
+ UpdateActiveDirectoryRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.UpdateActiveDirectoryRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.UpdateActiveDirectoryRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateActiveDirectoryRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.activeDirectory != null) {
+ if (typeof object.activeDirectory !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateActiveDirectoryRequest.activeDirectory: object expected");
+ message.activeDirectory = $root.google.cloud.netapp.v1.ActiveDirectory.fromObject(object.activeDirectory);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.UpdateActiveDirectoryRequest} message UpdateActiveDirectoryRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateActiveDirectoryRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.activeDirectory = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory"))
+ object.activeDirectory = $root.google.cloud.netapp.v1.ActiveDirectory.toObject(message.activeDirectory, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateActiveDirectoryRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateActiveDirectoryRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateActiveDirectoryRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.UpdateActiveDirectoryRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateActiveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateActiveDirectoryRequest";
+ };
+
+ return UpdateActiveDirectoryRequest;
+ })();
+
+ v1.DeleteActiveDirectoryRequest = (function() {
+
+ /**
+ * Properties of a DeleteActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IDeleteActiveDirectoryRequest
+ * @property {string|null} [name] DeleteActiveDirectoryRequest name
+ */
+
+ /**
+ * Constructs a new DeleteActiveDirectoryRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a DeleteActiveDirectoryRequest.
+ * @implements IDeleteActiveDirectoryRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IDeleteActiveDirectoryRequest=} [properties] Properties to set
+ */
+ function DeleteActiveDirectoryRequest(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]];
+ }
+
+ /**
+ * DeleteActiveDirectoryRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @instance
+ */
+ DeleteActiveDirectoryRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteActiveDirectoryRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteActiveDirectoryRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.DeleteActiveDirectoryRequest} DeleteActiveDirectoryRequest instance
+ */
+ DeleteActiveDirectoryRequest.create = function create(properties) {
+ return new DeleteActiveDirectoryRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteActiveDirectoryRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteActiveDirectoryRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteActiveDirectoryRequest} message DeleteActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteActiveDirectoryRequest.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 DeleteActiveDirectoryRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteActiveDirectoryRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteActiveDirectoryRequest} message DeleteActiveDirectoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteActiveDirectoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteActiveDirectoryRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.DeleteActiveDirectoryRequest} DeleteActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteActiveDirectoryRequest.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.netapp.v1.DeleteActiveDirectoryRequest();
+ 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 DeleteActiveDirectoryRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.DeleteActiveDirectoryRequest} DeleteActiveDirectoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteActiveDirectoryRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteActiveDirectoryRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteActiveDirectoryRequest.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 DeleteActiveDirectoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.DeleteActiveDirectoryRequest} DeleteActiveDirectoryRequest
+ */
+ DeleteActiveDirectoryRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.DeleteActiveDirectoryRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.DeleteActiveDirectoryRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteActiveDirectoryRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {google.cloud.netapp.v1.DeleteActiveDirectoryRequest} message DeleteActiveDirectoryRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteActiveDirectoryRequest.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 DeleteActiveDirectoryRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteActiveDirectoryRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteActiveDirectoryRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.DeleteActiveDirectoryRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteActiveDirectoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteActiveDirectoryRequest";
+ };
+
+ return DeleteActiveDirectoryRequest;
+ })();
+
+ v1.ActiveDirectory = (function() {
+
+ /**
+ * Properties of an ActiveDirectory.
+ * @memberof google.cloud.netapp.v1
+ * @interface IActiveDirectory
+ * @property {string|null} [name] ActiveDirectory name
+ * @property {google.protobuf.ITimestamp|null} [createTime] ActiveDirectory createTime
+ * @property {google.cloud.netapp.v1.ActiveDirectory.State|null} [state] ActiveDirectory state
+ * @property {string|null} [domain] ActiveDirectory domain
+ * @property {string|null} [site] ActiveDirectory site
+ * @property {string|null} [dns] ActiveDirectory dns
+ * @property {string|null} [netBiosPrefix] ActiveDirectory netBiosPrefix
+ * @property {string|null} [organizationalUnit] ActiveDirectory organizationalUnit
+ * @property {boolean|null} [aesEncryption] ActiveDirectory aesEncryption
+ * @property {string|null} [username] ActiveDirectory username
+ * @property {string|null} [password] ActiveDirectory password
+ * @property {Array.|null} [backupOperators] ActiveDirectory backupOperators
+ * @property {Array.|null} [securityOperators] ActiveDirectory securityOperators
+ * @property {string|null} [kdcHostname] ActiveDirectory kdcHostname
+ * @property {string|null} [kdcIp] ActiveDirectory kdcIp
+ * @property {boolean|null} [nfsUsersWithLdap] ActiveDirectory nfsUsersWithLdap
+ * @property {string|null} [description] ActiveDirectory description
+ * @property {boolean|null} [ldapSigning] ActiveDirectory ldapSigning
+ * @property {boolean|null} [encryptDcConnections] ActiveDirectory encryptDcConnections
+ * @property {Object.|null} [labels] ActiveDirectory labels
+ * @property {string|null} [stateDetails] ActiveDirectory stateDetails
+ */
+
+ /**
+ * Constructs a new ActiveDirectory.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents an ActiveDirectory.
+ * @implements IActiveDirectory
+ * @constructor
+ * @param {google.cloud.netapp.v1.IActiveDirectory=} [properties] Properties to set
+ */
+ function ActiveDirectory(properties) {
+ this.backupOperators = [];
+ this.securityOperators = [];
+ 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]];
+ }
+
+ /**
+ * ActiveDirectory name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.name = "";
+
+ /**
+ * ActiveDirectory createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.createTime = null;
+
+ /**
+ * ActiveDirectory state.
+ * @member {google.cloud.netapp.v1.ActiveDirectory.State} state
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.state = 0;
+
+ /**
+ * ActiveDirectory domain.
+ * @member {string} domain
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.domain = "";
+
+ /**
+ * ActiveDirectory site.
+ * @member {string} site
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.site = "";
+
+ /**
+ * ActiveDirectory dns.
+ * @member {string} dns
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.dns = "";
+
+ /**
+ * ActiveDirectory netBiosPrefix.
+ * @member {string} netBiosPrefix
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.netBiosPrefix = "";
+
+ /**
+ * ActiveDirectory organizationalUnit.
+ * @member {string} organizationalUnit
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.organizationalUnit = "";
+
+ /**
+ * ActiveDirectory aesEncryption.
+ * @member {boolean} aesEncryption
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.aesEncryption = false;
+
+ /**
+ * ActiveDirectory username.
+ * @member {string} username
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.username = "";
+
+ /**
+ * ActiveDirectory password.
+ * @member {string} password
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.password = "";
+
+ /**
+ * ActiveDirectory backupOperators.
+ * @member {Array.} backupOperators
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.backupOperators = $util.emptyArray;
+
+ /**
+ * ActiveDirectory securityOperators.
+ * @member {Array.} securityOperators
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.securityOperators = $util.emptyArray;
+
+ /**
+ * ActiveDirectory kdcHostname.
+ * @member {string} kdcHostname
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.kdcHostname = "";
+
+ /**
+ * ActiveDirectory kdcIp.
+ * @member {string} kdcIp
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.kdcIp = "";
+
+ /**
+ * ActiveDirectory nfsUsersWithLdap.
+ * @member {boolean} nfsUsersWithLdap
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.nfsUsersWithLdap = false;
+
+ /**
+ * ActiveDirectory description.
+ * @member {string} description
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.description = "";
+
+ /**
+ * ActiveDirectory ldapSigning.
+ * @member {boolean} ldapSigning
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.ldapSigning = false;
+
+ /**
+ * ActiveDirectory encryptDcConnections.
+ * @member {boolean} encryptDcConnections
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.encryptDcConnections = false;
+
+ /**
+ * ActiveDirectory labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.labels = $util.emptyObject;
+
+ /**
+ * ActiveDirectory stateDetails.
+ * @member {string} stateDetails
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ */
+ ActiveDirectory.prototype.stateDetails = "";
+
+ /**
+ * Creates a new ActiveDirectory instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {google.cloud.netapp.v1.IActiveDirectory=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ActiveDirectory} ActiveDirectory instance
+ */
+ ActiveDirectory.create = function create(properties) {
+ return new ActiveDirectory(properties);
+ };
+
+ /**
+ * Encodes the specified ActiveDirectory message. Does not implicitly {@link google.cloud.netapp.v1.ActiveDirectory.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {google.cloud.netapp.v1.IActiveDirectory} message ActiveDirectory message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ActiveDirectory.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.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.domain);
+ if (message.site != null && Object.hasOwnProperty.call(message, "site"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.site);
+ if (message.dns != null && Object.hasOwnProperty.call(message, "dns"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.dns);
+ if (message.netBiosPrefix != null && Object.hasOwnProperty.call(message, "netBiosPrefix"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.netBiosPrefix);
+ if (message.organizationalUnit != null && Object.hasOwnProperty.call(message, "organizationalUnit"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.organizationalUnit);
+ if (message.aesEncryption != null && Object.hasOwnProperty.call(message, "aesEncryption"))
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.aesEncryption);
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.username);
+ if (message.password != null && Object.hasOwnProperty.call(message, "password"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.password);
+ if (message.backupOperators != null && message.backupOperators.length)
+ for (var i = 0; i < message.backupOperators.length; ++i)
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.backupOperators[i]);
+ if (message.securityOperators != null && message.securityOperators.length)
+ for (var i = 0; i < message.securityOperators.length; ++i)
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.securityOperators[i]);
+ if (message.kdcHostname != null && Object.hasOwnProperty.call(message, "kdcHostname"))
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.kdcHostname);
+ if (message.kdcIp != null && Object.hasOwnProperty.call(message, "kdcIp"))
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.kdcIp);
+ if (message.nfsUsersWithLdap != null && Object.hasOwnProperty.call(message, "nfsUsersWithLdap"))
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.nfsUsersWithLdap);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 17, wireType 2 =*/138).string(message.description);
+ if (message.ldapSigning != null && Object.hasOwnProperty.call(message, "ldapSigning"))
+ writer.uint32(/* id 18, wireType 0 =*/144).bool(message.ldapSigning);
+ if (message.encryptDcConnections != null && Object.hasOwnProperty.call(message, "encryptDcConnections"))
+ writer.uint32(/* id 19, wireType 0 =*/152).bool(message.encryptDcConnections);
+ 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 20, wireType 2 =*/162).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails"))
+ writer.uint32(/* id 21, wireType 2 =*/170).string(message.stateDetails);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ActiveDirectory message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ActiveDirectory.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {google.cloud.netapp.v1.IActiveDirectory} message ActiveDirectory message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ActiveDirectory.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ActiveDirectory message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ActiveDirectory} ActiveDirectory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ActiveDirectory.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.netapp.v1.ActiveDirectory(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.state = reader.int32();
+ break;
+ }
+ case 4: {
+ message.domain = reader.string();
+ break;
+ }
+ case 5: {
+ message.site = reader.string();
+ break;
+ }
+ case 6: {
+ message.dns = reader.string();
+ break;
+ }
+ case 7: {
+ message.netBiosPrefix = reader.string();
+ break;
+ }
+ case 8: {
+ message.organizationalUnit = reader.string();
+ break;
+ }
+ case 9: {
+ message.aesEncryption = reader.bool();
+ break;
+ }
+ case 10: {
+ message.username = reader.string();
+ break;
+ }
+ case 11: {
+ message.password = reader.string();
+ break;
+ }
+ case 12: {
+ if (!(message.backupOperators && message.backupOperators.length))
+ message.backupOperators = [];
+ message.backupOperators.push(reader.string());
+ break;
+ }
+ case 13: {
+ if (!(message.securityOperators && message.securityOperators.length))
+ message.securityOperators = [];
+ message.securityOperators.push(reader.string());
+ break;
+ }
+ case 14: {
+ message.kdcHostname = reader.string();
+ break;
+ }
+ case 15: {
+ message.kdcIp = reader.string();
+ break;
+ }
+ case 16: {
+ message.nfsUsersWithLdap = reader.bool();
+ break;
+ }
+ case 17: {
+ message.description = reader.string();
+ break;
+ }
+ case 18: {
+ message.ldapSigning = reader.bool();
+ break;
+ }
+ case 19: {
+ message.encryptDcConnections = reader.bool();
+ break;
+ }
+ case 20: {
+ 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 21: {
+ message.stateDetails = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ActiveDirectory message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ActiveDirectory} ActiveDirectory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ActiveDirectory.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ActiveDirectory message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ActiveDirectory.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.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ 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 5:
+ case 6:
+ break;
+ }
+ if (message.domain != null && message.hasOwnProperty("domain"))
+ if (!$util.isString(message.domain))
+ return "domain: string expected";
+ if (message.site != null && message.hasOwnProperty("site"))
+ if (!$util.isString(message.site))
+ return "site: string expected";
+ if (message.dns != null && message.hasOwnProperty("dns"))
+ if (!$util.isString(message.dns))
+ return "dns: string expected";
+ if (message.netBiosPrefix != null && message.hasOwnProperty("netBiosPrefix"))
+ if (!$util.isString(message.netBiosPrefix))
+ return "netBiosPrefix: string expected";
+ if (message.organizationalUnit != null && message.hasOwnProperty("organizationalUnit"))
+ if (!$util.isString(message.organizationalUnit))
+ return "organizationalUnit: string expected";
+ if (message.aesEncryption != null && message.hasOwnProperty("aesEncryption"))
+ if (typeof message.aesEncryption !== "boolean")
+ return "aesEncryption: boolean expected";
+ if (message.username != null && message.hasOwnProperty("username"))
+ if (!$util.isString(message.username))
+ return "username: string expected";
+ if (message.password != null && message.hasOwnProperty("password"))
+ if (!$util.isString(message.password))
+ return "password: string expected";
+ if (message.backupOperators != null && message.hasOwnProperty("backupOperators")) {
+ if (!Array.isArray(message.backupOperators))
+ return "backupOperators: array expected";
+ for (var i = 0; i < message.backupOperators.length; ++i)
+ if (!$util.isString(message.backupOperators[i]))
+ return "backupOperators: string[] expected";
+ }
+ if (message.securityOperators != null && message.hasOwnProperty("securityOperators")) {
+ if (!Array.isArray(message.securityOperators))
+ return "securityOperators: array expected";
+ for (var i = 0; i < message.securityOperators.length; ++i)
+ if (!$util.isString(message.securityOperators[i]))
+ return "securityOperators: string[] expected";
+ }
+ if (message.kdcHostname != null && message.hasOwnProperty("kdcHostname"))
+ if (!$util.isString(message.kdcHostname))
+ return "kdcHostname: string expected";
+ if (message.kdcIp != null && message.hasOwnProperty("kdcIp"))
+ if (!$util.isString(message.kdcIp))
+ return "kdcIp: string expected";
+ if (message.nfsUsersWithLdap != null && message.hasOwnProperty("nfsUsersWithLdap"))
+ if (typeof message.nfsUsersWithLdap !== "boolean")
+ return "nfsUsersWithLdap: boolean expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.ldapSigning != null && message.hasOwnProperty("ldapSigning"))
+ if (typeof message.ldapSigning !== "boolean")
+ return "ldapSigning: boolean expected";
+ if (message.encryptDcConnections != null && message.hasOwnProperty("encryptDcConnections"))
+ if (typeof message.encryptDcConnections !== "boolean")
+ return "encryptDcConnections: boolean expected";
+ 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.stateDetails != null && message.hasOwnProperty("stateDetails"))
+ if (!$util.isString(message.stateDetails))
+ return "stateDetails: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an ActiveDirectory message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ActiveDirectory} ActiveDirectory
+ */
+ ActiveDirectory.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ActiveDirectory)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ActiveDirectory();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.netapp.v1.ActiveDirectory.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ 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 "UPDATING":
+ case 3:
+ message.state = 3;
+ break;
+ case "IN_USE":
+ case 4:
+ message.state = 4;
+ break;
+ case "DELETING":
+ case 5:
+ message.state = 5;
+ break;
+ case "ERROR":
+ case 6:
+ message.state = 6;
+ break;
+ }
+ if (object.domain != null)
+ message.domain = String(object.domain);
+ if (object.site != null)
+ message.site = String(object.site);
+ if (object.dns != null)
+ message.dns = String(object.dns);
+ if (object.netBiosPrefix != null)
+ message.netBiosPrefix = String(object.netBiosPrefix);
+ if (object.organizationalUnit != null)
+ message.organizationalUnit = String(object.organizationalUnit);
+ if (object.aesEncryption != null)
+ message.aesEncryption = Boolean(object.aesEncryption);
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.password != null)
+ message.password = String(object.password);
+ if (object.backupOperators) {
+ if (!Array.isArray(object.backupOperators))
+ throw TypeError(".google.cloud.netapp.v1.ActiveDirectory.backupOperators: array expected");
+ message.backupOperators = [];
+ for (var i = 0; i < object.backupOperators.length; ++i)
+ message.backupOperators[i] = String(object.backupOperators[i]);
+ }
+ if (object.securityOperators) {
+ if (!Array.isArray(object.securityOperators))
+ throw TypeError(".google.cloud.netapp.v1.ActiveDirectory.securityOperators: array expected");
+ message.securityOperators = [];
+ for (var i = 0; i < object.securityOperators.length; ++i)
+ message.securityOperators[i] = String(object.securityOperators[i]);
+ }
+ if (object.kdcHostname != null)
+ message.kdcHostname = String(object.kdcHostname);
+ if (object.kdcIp != null)
+ message.kdcIp = String(object.kdcIp);
+ if (object.nfsUsersWithLdap != null)
+ message.nfsUsersWithLdap = Boolean(object.nfsUsersWithLdap);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.ldapSigning != null)
+ message.ldapSigning = Boolean(object.ldapSigning);
+ if (object.encryptDcConnections != null)
+ message.encryptDcConnections = Boolean(object.encryptDcConnections);
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.netapp.v1.ActiveDirectory.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.stateDetails != null)
+ message.stateDetails = String(object.stateDetails);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ActiveDirectory message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {google.cloud.netapp.v1.ActiveDirectory} message ActiveDirectory
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ActiveDirectory.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.backupOperators = [];
+ object.securityOperators = [];
+ }
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.domain = "";
+ object.site = "";
+ object.dns = "";
+ object.netBiosPrefix = "";
+ object.organizationalUnit = "";
+ object.aesEncryption = false;
+ object.username = "";
+ object.password = "";
+ object.kdcHostname = "";
+ object.kdcIp = "";
+ object.nfsUsersWithLdap = false;
+ object.description = "";
+ object.ldapSigning = false;
+ object.encryptDcConnections = false;
+ object.stateDetails = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.netapp.v1.ActiveDirectory.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.ActiveDirectory.State[message.state] : message.state;
+ if (message.domain != null && message.hasOwnProperty("domain"))
+ object.domain = message.domain;
+ if (message.site != null && message.hasOwnProperty("site"))
+ object.site = message.site;
+ if (message.dns != null && message.hasOwnProperty("dns"))
+ object.dns = message.dns;
+ if (message.netBiosPrefix != null && message.hasOwnProperty("netBiosPrefix"))
+ object.netBiosPrefix = message.netBiosPrefix;
+ if (message.organizationalUnit != null && message.hasOwnProperty("organizationalUnit"))
+ object.organizationalUnit = message.organizationalUnit;
+ if (message.aesEncryption != null && message.hasOwnProperty("aesEncryption"))
+ object.aesEncryption = message.aesEncryption;
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.password != null && message.hasOwnProperty("password"))
+ object.password = message.password;
+ if (message.backupOperators && message.backupOperators.length) {
+ object.backupOperators = [];
+ for (var j = 0; j < message.backupOperators.length; ++j)
+ object.backupOperators[j] = message.backupOperators[j];
+ }
+ if (message.securityOperators && message.securityOperators.length) {
+ object.securityOperators = [];
+ for (var j = 0; j < message.securityOperators.length; ++j)
+ object.securityOperators[j] = message.securityOperators[j];
+ }
+ if (message.kdcHostname != null && message.hasOwnProperty("kdcHostname"))
+ object.kdcHostname = message.kdcHostname;
+ if (message.kdcIp != null && message.hasOwnProperty("kdcIp"))
+ object.kdcIp = message.kdcIp;
+ if (message.nfsUsersWithLdap != null && message.hasOwnProperty("nfsUsersWithLdap"))
+ object.nfsUsersWithLdap = message.nfsUsersWithLdap;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.ldapSigning != null && message.hasOwnProperty("ldapSigning"))
+ object.ldapSigning = message.ldapSigning;
+ if (message.encryptDcConnections != null && message.hasOwnProperty("encryptDcConnections"))
+ object.encryptDcConnections = message.encryptDcConnections;
+ 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.stateDetails != null && message.hasOwnProperty("stateDetails"))
+ object.stateDetails = message.stateDetails;
+ return object;
+ };
+
+ /**
+ * Converts this ActiveDirectory to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ActiveDirectory.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ActiveDirectory
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ActiveDirectory
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ActiveDirectory.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ActiveDirectory";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.netapp.v1.ActiveDirectory.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} UPDATING=3 UPDATING value
+ * @property {number} IN_USE=4 IN_USE value
+ * @property {number} DELETING=5 DELETING value
+ * @property {number} ERROR=6 ERROR value
+ */
+ ActiveDirectory.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] = "UPDATING"] = 3;
+ values[valuesById[4] = "IN_USE"] = 4;
+ values[valuesById[5] = "DELETING"] = 5;
+ values[valuesById[6] = "ERROR"] = 6;
+ return values;
+ })();
+
+ return ActiveDirectory;
+ })();
+
+ v1.NetApp = (function() {
+
+ /**
+ * Constructs a new NetApp service.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a NetApp
+ * @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 NetApp(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (NetApp.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = NetApp;
+
+ /**
+ * Creates new NetApp service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @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 {NetApp} RPC service. Useful where requests and/or responses are streamed.
+ */
+ NetApp.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listStoragePools}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ListStoragePoolsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.ListStoragePoolsResponse} [response] ListStoragePoolsResponse
+ */
+
+ /**
+ * Calls ListStoragePools.
+ * @function listStoragePools
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListStoragePoolsRequest} request ListStoragePoolsRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ListStoragePoolsCallback} callback Node-style callback called with the error, if any, and ListStoragePoolsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.listStoragePools = function listStoragePools(request, callback) {
+ return this.rpcCall(listStoragePools, $root.google.cloud.netapp.v1.ListStoragePoolsRequest, $root.google.cloud.netapp.v1.ListStoragePoolsResponse, request, callback);
+ }, "name", { value: "ListStoragePools" });
+
+ /**
+ * Calls ListStoragePools.
+ * @function listStoragePools
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListStoragePoolsRequest} request ListStoragePoolsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createStoragePool}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef CreateStoragePoolCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateStoragePool.
+ * @function createStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest} request CreateStoragePoolRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.CreateStoragePoolCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.createStoragePool = function createStoragePool(request, callback) {
+ return this.rpcCall(createStoragePool, $root.google.cloud.netapp.v1.CreateStoragePoolRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateStoragePool" });
+
+ /**
+ * Calls CreateStoragePool.
+ * @function createStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest} request CreateStoragePoolRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getStoragePool}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef GetStoragePoolCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.StoragePool} [response] StoragePool
+ */
+
+ /**
+ * Calls GetStoragePool.
+ * @function getStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetStoragePoolRequest} request GetStoragePoolRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.GetStoragePoolCallback} callback Node-style callback called with the error, if any, and StoragePool
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.getStoragePool = function getStoragePool(request, callback) {
+ return this.rpcCall(getStoragePool, $root.google.cloud.netapp.v1.GetStoragePoolRequest, $root.google.cloud.netapp.v1.StoragePool, request, callback);
+ }, "name", { value: "GetStoragePool" });
+
+ /**
+ * Calls GetStoragePool.
+ * @function getStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetStoragePoolRequest} request GetStoragePoolRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateStoragePool}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef UpdateStoragePoolCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateStoragePool.
+ * @function updateStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest} request UpdateStoragePoolRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.UpdateStoragePoolCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.updateStoragePool = function updateStoragePool(request, callback) {
+ return this.rpcCall(updateStoragePool, $root.google.cloud.netapp.v1.UpdateStoragePoolRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateStoragePool" });
+
+ /**
+ * Calls UpdateStoragePool.
+ * @function updateStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest} request UpdateStoragePoolRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteStoragePool}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef DeleteStoragePoolCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteStoragePool.
+ * @function deleteStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest} request DeleteStoragePoolRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.DeleteStoragePoolCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.deleteStoragePool = function deleteStoragePool(request, callback) {
+ return this.rpcCall(deleteStoragePool, $root.google.cloud.netapp.v1.DeleteStoragePoolRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteStoragePool" });
+
+ /**
+ * Calls DeleteStoragePool.
+ * @function deleteStoragePool
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest} request DeleteStoragePoolRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listVolumes}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ListVolumesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.ListVolumesResponse} [response] ListVolumesResponse
+ */
+
+ /**
+ * Calls ListVolumes.
+ * @function listVolumes
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListVolumesRequest} request ListVolumesRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ListVolumesCallback} callback Node-style callback called with the error, if any, and ListVolumesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.listVolumes = function listVolumes(request, callback) {
+ return this.rpcCall(listVolumes, $root.google.cloud.netapp.v1.ListVolumesRequest, $root.google.cloud.netapp.v1.ListVolumesResponse, request, callback);
+ }, "name", { value: "ListVolumes" });
+
+ /**
+ * Calls ListVolumes.
+ * @function listVolumes
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListVolumesRequest} request ListVolumesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getVolume}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef GetVolumeCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.Volume} [response] Volume
+ */
+
+ /**
+ * Calls GetVolume.
+ * @function getVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetVolumeRequest} request GetVolumeRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.GetVolumeCallback} callback Node-style callback called with the error, if any, and Volume
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.getVolume = function getVolume(request, callback) {
+ return this.rpcCall(getVolume, $root.google.cloud.netapp.v1.GetVolumeRequest, $root.google.cloud.netapp.v1.Volume, request, callback);
+ }, "name", { value: "GetVolume" });
+
+ /**
+ * Calls GetVolume.
+ * @function getVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetVolumeRequest} request GetVolumeRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createVolume}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef CreateVolumeCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateVolume.
+ * @function createVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateVolumeRequest} request CreateVolumeRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.CreateVolumeCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.createVolume = function createVolume(request, callback) {
+ return this.rpcCall(createVolume, $root.google.cloud.netapp.v1.CreateVolumeRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateVolume" });
+
+ /**
+ * Calls CreateVolume.
+ * @function createVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateVolumeRequest} request CreateVolumeRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateVolume}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef UpdateVolumeCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateVolume.
+ * @function updateVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateVolumeRequest} request UpdateVolumeRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.UpdateVolumeCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.updateVolume = function updateVolume(request, callback) {
+ return this.rpcCall(updateVolume, $root.google.cloud.netapp.v1.UpdateVolumeRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateVolume" });
+
+ /**
+ * Calls UpdateVolume.
+ * @function updateVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateVolumeRequest} request UpdateVolumeRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteVolume}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef DeleteVolumeCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteVolume.
+ * @function deleteVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteVolumeRequest} request DeleteVolumeRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.DeleteVolumeCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.deleteVolume = function deleteVolume(request, callback) {
+ return this.rpcCall(deleteVolume, $root.google.cloud.netapp.v1.DeleteVolumeRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteVolume" });
+
+ /**
+ * Calls DeleteVolume.
+ * @function deleteVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteVolumeRequest} request DeleteVolumeRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|revertVolume}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef RevertVolumeCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RevertVolume.
+ * @function revertVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IRevertVolumeRequest} request RevertVolumeRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.RevertVolumeCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.revertVolume = function revertVolume(request, callback) {
+ return this.rpcCall(revertVolume, $root.google.cloud.netapp.v1.RevertVolumeRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RevertVolume" });
+
+ /**
+ * Calls RevertVolume.
+ * @function revertVolume
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IRevertVolumeRequest} request RevertVolumeRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listSnapshots}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ListSnapshotsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.ListSnapshotsResponse} [response] ListSnapshotsResponse
+ */
+
+ /**
+ * Calls ListSnapshots.
+ * @function listSnapshots
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListSnapshotsRequest} request ListSnapshotsRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ListSnapshotsCallback} callback Node-style callback called with the error, if any, and ListSnapshotsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.listSnapshots = function listSnapshots(request, callback) {
+ return this.rpcCall(listSnapshots, $root.google.cloud.netapp.v1.ListSnapshotsRequest, $root.google.cloud.netapp.v1.ListSnapshotsResponse, request, callback);
+ }, "name", { value: "ListSnapshots" });
+
+ /**
+ * Calls ListSnapshots.
+ * @function listSnapshots
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListSnapshotsRequest} request ListSnapshotsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getSnapshot}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef GetSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.Snapshot} [response] Snapshot
+ */
+
+ /**
+ * Calls GetSnapshot.
+ * @function getSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetSnapshotRequest} request GetSnapshotRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.GetSnapshotCallback} callback Node-style callback called with the error, if any, and Snapshot
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.getSnapshot = function getSnapshot(request, callback) {
+ return this.rpcCall(getSnapshot, $root.google.cloud.netapp.v1.GetSnapshotRequest, $root.google.cloud.netapp.v1.Snapshot, request, callback);
+ }, "name", { value: "GetSnapshot" });
+
+ /**
+ * Calls GetSnapshot.
+ * @function getSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetSnapshotRequest} request GetSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createSnapshot}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef CreateSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateSnapshot.
+ * @function createSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateSnapshotRequest} request CreateSnapshotRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.CreateSnapshotCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.createSnapshot = function createSnapshot(request, callback) {
+ return this.rpcCall(createSnapshot, $root.google.cloud.netapp.v1.CreateSnapshotRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateSnapshot" });
+
+ /**
+ * Calls CreateSnapshot.
+ * @function createSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateSnapshotRequest} request CreateSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteSnapshot}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef DeleteSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteSnapshot.
+ * @function deleteSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} request DeleteSnapshotRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.DeleteSnapshotCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.deleteSnapshot = function deleteSnapshot(request, callback) {
+ return this.rpcCall(deleteSnapshot, $root.google.cloud.netapp.v1.DeleteSnapshotRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteSnapshot" });
+
+ /**
+ * Calls DeleteSnapshot.
+ * @function deleteSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} request DeleteSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateSnapshot}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef UpdateSnapshotCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateSnapshot.
+ * @function updateSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} request UpdateSnapshotRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.UpdateSnapshotCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.updateSnapshot = function updateSnapshot(request, callback) {
+ return this.rpcCall(updateSnapshot, $root.google.cloud.netapp.v1.UpdateSnapshotRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateSnapshot" });
+
+ /**
+ * Calls UpdateSnapshot.
+ * @function updateSnapshot
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} request UpdateSnapshotRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listActiveDirectories}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ListActiveDirectoriesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.ListActiveDirectoriesResponse} [response] ListActiveDirectoriesResponse
+ */
+
+ /**
+ * Calls ListActiveDirectories.
+ * @function listActiveDirectories
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesRequest} request ListActiveDirectoriesRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ListActiveDirectoriesCallback} callback Node-style callback called with the error, if any, and ListActiveDirectoriesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.listActiveDirectories = function listActiveDirectories(request, callback) {
+ return this.rpcCall(listActiveDirectories, $root.google.cloud.netapp.v1.ListActiveDirectoriesRequest, $root.google.cloud.netapp.v1.ListActiveDirectoriesResponse, request, callback);
+ }, "name", { value: "ListActiveDirectories" });
+
+ /**
+ * Calls ListActiveDirectories.
+ * @function listActiveDirectories
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListActiveDirectoriesRequest} request ListActiveDirectoriesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getActiveDirectory}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef GetActiveDirectoryCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.ActiveDirectory} [response] ActiveDirectory
+ */
+
+ /**
+ * Calls GetActiveDirectory.
+ * @function getActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetActiveDirectoryRequest} request GetActiveDirectoryRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.GetActiveDirectoryCallback} callback Node-style callback called with the error, if any, and ActiveDirectory
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.getActiveDirectory = function getActiveDirectory(request, callback) {
+ return this.rpcCall(getActiveDirectory, $root.google.cloud.netapp.v1.GetActiveDirectoryRequest, $root.google.cloud.netapp.v1.ActiveDirectory, request, callback);
+ }, "name", { value: "GetActiveDirectory" });
+
+ /**
+ * Calls GetActiveDirectory.
+ * @function getActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetActiveDirectoryRequest} request GetActiveDirectoryRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createActiveDirectory}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef CreateActiveDirectoryCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateActiveDirectory.
+ * @function createActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateActiveDirectoryRequest} request CreateActiveDirectoryRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.CreateActiveDirectoryCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.createActiveDirectory = function createActiveDirectory(request, callback) {
+ return this.rpcCall(createActiveDirectory, $root.google.cloud.netapp.v1.CreateActiveDirectoryRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateActiveDirectory" });
+
+ /**
+ * Calls CreateActiveDirectory.
+ * @function createActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateActiveDirectoryRequest} request CreateActiveDirectoryRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateActiveDirectory}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef UpdateActiveDirectoryCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateActiveDirectory.
+ * @function updateActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateActiveDirectoryRequest} request UpdateActiveDirectoryRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.UpdateActiveDirectoryCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.updateActiveDirectory = function updateActiveDirectory(request, callback) {
+ return this.rpcCall(updateActiveDirectory, $root.google.cloud.netapp.v1.UpdateActiveDirectoryRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateActiveDirectory" });
+
+ /**
+ * Calls UpdateActiveDirectory.
+ * @function updateActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateActiveDirectoryRequest} request UpdateActiveDirectoryRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteActiveDirectory}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef DeleteActiveDirectoryCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteActiveDirectory.
+ * @function deleteActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteActiveDirectoryRequest} request DeleteActiveDirectoryRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.DeleteActiveDirectoryCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.deleteActiveDirectory = function deleteActiveDirectory(request, callback) {
+ return this.rpcCall(deleteActiveDirectory, $root.google.cloud.netapp.v1.DeleteActiveDirectoryRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteActiveDirectory" });
+
+ /**
+ * Calls DeleteActiveDirectory.
+ * @function deleteActiveDirectory
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteActiveDirectoryRequest} request DeleteActiveDirectoryRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listKmsConfigs}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ListKmsConfigsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.ListKmsConfigsResponse} [response] ListKmsConfigsResponse
+ */
+
+ /**
+ * Calls ListKmsConfigs.
+ * @function listKmsConfigs
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListKmsConfigsRequest} request ListKmsConfigsRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ListKmsConfigsCallback} callback Node-style callback called with the error, if any, and ListKmsConfigsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.listKmsConfigs = function listKmsConfigs(request, callback) {
+ return this.rpcCall(listKmsConfigs, $root.google.cloud.netapp.v1.ListKmsConfigsRequest, $root.google.cloud.netapp.v1.ListKmsConfigsResponse, request, callback);
+ }, "name", { value: "ListKmsConfigs" });
+
+ /**
+ * Calls ListKmsConfigs.
+ * @function listKmsConfigs
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListKmsConfigsRequest} request ListKmsConfigsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createKmsConfig}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef CreateKmsConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateKmsConfig.
+ * @function createKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateKmsConfigRequest} request CreateKmsConfigRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.CreateKmsConfigCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.createKmsConfig = function createKmsConfig(request, callback) {
+ return this.rpcCall(createKmsConfig, $root.google.cloud.netapp.v1.CreateKmsConfigRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateKmsConfig" });
+
+ /**
+ * Calls CreateKmsConfig.
+ * @function createKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateKmsConfigRequest} request CreateKmsConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getKmsConfig}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef GetKmsConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.KmsConfig} [response] KmsConfig
+ */
+
+ /**
+ * Calls GetKmsConfig.
+ * @function getKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetKmsConfigRequest} request GetKmsConfigRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.GetKmsConfigCallback} callback Node-style callback called with the error, if any, and KmsConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.getKmsConfig = function getKmsConfig(request, callback) {
+ return this.rpcCall(getKmsConfig, $root.google.cloud.netapp.v1.GetKmsConfigRequest, $root.google.cloud.netapp.v1.KmsConfig, request, callback);
+ }, "name", { value: "GetKmsConfig" });
+
+ /**
+ * Calls GetKmsConfig.
+ * @function getKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetKmsConfigRequest} request GetKmsConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateKmsConfig}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef UpdateKmsConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateKmsConfig.
+ * @function updateKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateKmsConfigRequest} request UpdateKmsConfigRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.UpdateKmsConfigCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.updateKmsConfig = function updateKmsConfig(request, callback) {
+ return this.rpcCall(updateKmsConfig, $root.google.cloud.netapp.v1.UpdateKmsConfigRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateKmsConfig" });
+
+ /**
+ * Calls UpdateKmsConfig.
+ * @function updateKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateKmsConfigRequest} request UpdateKmsConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|encryptVolumes}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef EncryptVolumesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls EncryptVolumes.
+ * @function encryptVolumes
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IEncryptVolumesRequest} request EncryptVolumesRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.EncryptVolumesCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.encryptVolumes = function encryptVolumes(request, callback) {
+ return this.rpcCall(encryptVolumes, $root.google.cloud.netapp.v1.EncryptVolumesRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "EncryptVolumes" });
+
+ /**
+ * Calls EncryptVolumes.
+ * @function encryptVolumes
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IEncryptVolumesRequest} request EncryptVolumesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|verifyKmsConfig}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef VerifyKmsConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.VerifyKmsConfigResponse} [response] VerifyKmsConfigResponse
+ */
+
+ /**
+ * Calls VerifyKmsConfig.
+ * @function verifyKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigRequest} request VerifyKmsConfigRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.VerifyKmsConfigCallback} callback Node-style callback called with the error, if any, and VerifyKmsConfigResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.verifyKmsConfig = function verifyKmsConfig(request, callback) {
+ return this.rpcCall(verifyKmsConfig, $root.google.cloud.netapp.v1.VerifyKmsConfigRequest, $root.google.cloud.netapp.v1.VerifyKmsConfigResponse, request, callback);
+ }, "name", { value: "VerifyKmsConfig" });
+
+ /**
+ * Calls VerifyKmsConfig.
+ * @function verifyKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigRequest} request VerifyKmsConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteKmsConfig}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef DeleteKmsConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteKmsConfig.
+ * @function deleteKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteKmsConfigRequest} request DeleteKmsConfigRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.DeleteKmsConfigCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.deleteKmsConfig = function deleteKmsConfig(request, callback) {
+ return this.rpcCall(deleteKmsConfig, $root.google.cloud.netapp.v1.DeleteKmsConfigRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteKmsConfig" });
+
+ /**
+ * Calls DeleteKmsConfig.
+ * @function deleteKmsConfig
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteKmsConfigRequest} request DeleteKmsConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|listReplications}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ListReplicationsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.ListReplicationsResponse} [response] ListReplicationsResponse
+ */
+
+ /**
+ * Calls ListReplications.
+ * @function listReplications
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListReplicationsRequest} request ListReplicationsRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ListReplicationsCallback} callback Node-style callback called with the error, if any, and ListReplicationsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.listReplications = function listReplications(request, callback) {
+ return this.rpcCall(listReplications, $root.google.cloud.netapp.v1.ListReplicationsRequest, $root.google.cloud.netapp.v1.ListReplicationsResponse, request, callback);
+ }, "name", { value: "ListReplications" });
+
+ /**
+ * Calls ListReplications.
+ * @function listReplications
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IListReplicationsRequest} request ListReplicationsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|getReplication}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef GetReplicationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.netapp.v1.Replication} [response] Replication
+ */
+
+ /**
+ * Calls GetReplication.
+ * @function getReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetReplicationRequest} request GetReplicationRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.GetReplicationCallback} callback Node-style callback called with the error, if any, and Replication
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.getReplication = function getReplication(request, callback) {
+ return this.rpcCall(getReplication, $root.google.cloud.netapp.v1.GetReplicationRequest, $root.google.cloud.netapp.v1.Replication, request, callback);
+ }, "name", { value: "GetReplication" });
+
+ /**
+ * Calls GetReplication.
+ * @function getReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IGetReplicationRequest} request GetReplicationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|createReplication}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef CreateReplicationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateReplication.
+ * @function createReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateReplicationRequest} request CreateReplicationRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.CreateReplicationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.createReplication = function createReplication(request, callback) {
+ return this.rpcCall(createReplication, $root.google.cloud.netapp.v1.CreateReplicationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateReplication" });
+
+ /**
+ * Calls CreateReplication.
+ * @function createReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.ICreateReplicationRequest} request CreateReplicationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|deleteReplication}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef DeleteReplicationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteReplication.
+ * @function deleteReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteReplicationRequest} request DeleteReplicationRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.DeleteReplicationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.deleteReplication = function deleteReplication(request, callback) {
+ return this.rpcCall(deleteReplication, $root.google.cloud.netapp.v1.DeleteReplicationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteReplication" });
+
+ /**
+ * Calls DeleteReplication.
+ * @function deleteReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IDeleteReplicationRequest} request DeleteReplicationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|updateReplication}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef UpdateReplicationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateReplication.
+ * @function updateReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateReplicationRequest} request UpdateReplicationRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.UpdateReplicationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.updateReplication = function updateReplication(request, callback) {
+ return this.rpcCall(updateReplication, $root.google.cloud.netapp.v1.UpdateReplicationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateReplication" });
+
+ /**
+ * Calls UpdateReplication.
+ * @function updateReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IUpdateReplicationRequest} request UpdateReplicationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|stopReplication}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef StopReplicationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls StopReplication.
+ * @function stopReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IStopReplicationRequest} request StopReplicationRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.StopReplicationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.stopReplication = function stopReplication(request, callback) {
+ return this.rpcCall(stopReplication, $root.google.cloud.netapp.v1.StopReplicationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "StopReplication" });
+
+ /**
+ * Calls StopReplication.
+ * @function stopReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IStopReplicationRequest} request StopReplicationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|resumeReplication}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ResumeReplicationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ResumeReplication.
+ * @function resumeReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IResumeReplicationRequest} request ResumeReplicationRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ResumeReplicationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.resumeReplication = function resumeReplication(request, callback) {
+ return this.rpcCall(resumeReplication, $root.google.cloud.netapp.v1.ResumeReplicationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ResumeReplication" });
+
+ /**
+ * Calls ResumeReplication.
+ * @function resumeReplication
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IResumeReplicationRequest} request ResumeReplicationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.netapp.v1.NetApp|reverseReplicationDirection}.
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @typedef ReverseReplicationDirectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ReverseReplicationDirection.
+ * @function reverseReplicationDirection
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IReverseReplicationDirectionRequest} request ReverseReplicationDirectionRequest message or plain object
+ * @param {google.cloud.netapp.v1.NetApp.ReverseReplicationDirectionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(NetApp.prototype.reverseReplicationDirection = function reverseReplicationDirection(request, callback) {
+ return this.rpcCall(reverseReplicationDirection, $root.google.cloud.netapp.v1.ReverseReplicationDirectionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ReverseReplicationDirection" });
+
+ /**
+ * Calls ReverseReplicationDirection.
+ * @function reverseReplicationDirection
+ * @memberof google.cloud.netapp.v1.NetApp
+ * @instance
+ * @param {google.cloud.netapp.v1.IReverseReplicationDirectionRequest} request ReverseReplicationDirectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return NetApp;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.netapp.v1
+ * @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} [statusMessage] OperationMetadata statusMessage
+ * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation
+ * @property {string|null} [apiVersion] OperationMetadata apiVersion
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.netapp.v1.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.netapp.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.netapp.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.netapp.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.netapp.v1.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.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage);
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation);
+ 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.netapp.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.netapp.v1.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.netapp.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.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.netapp.v1.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.statusMessage = reader.string();
+ break;
+ }
+ case 6: {
+ message.requestedCancellation = 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.netapp.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.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.netapp.v1.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.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ if (typeof message.requestedCancellation !== "boolean")
+ return "requestedCancellation: 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.netapp.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.netapp.v1.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.netapp.v1.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.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.requestedCancellation != null)
+ message.requestedCancellation = Boolean(object.requestedCancellation);
+ 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.netapp.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.netapp.v1.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.statusMessage = "";
+ object.requestedCancellation = 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.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ object.requestedCancellation = message.requestedCancellation;
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = message.apiVersion;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.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.netapp.v1.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.netapp.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.GetKmsConfigRequest = (function() {
+
+ /**
+ * Properties of a GetKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IGetKmsConfigRequest
+ * @property {string|null} [name] GetKmsConfigRequest name
+ */
+
+ /**
+ * Constructs a new GetKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a GetKmsConfigRequest.
+ * @implements IGetKmsConfigRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IGetKmsConfigRequest=} [properties] Properties to set
+ */
+ function GetKmsConfigRequest(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]];
+ }
+
+ /**
+ * GetKmsConfigRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @instance
+ */
+ GetKmsConfigRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetKmsConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetKmsConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.GetKmsConfigRequest} GetKmsConfigRequest instance
+ */
+ GetKmsConfigRequest.create = function create(properties) {
+ return new GetKmsConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetKmsConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetKmsConfigRequest} message GetKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetKmsConfigRequest.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 GetKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetKmsConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetKmsConfigRequest} message GetKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetKmsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetKmsConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.GetKmsConfigRequest} GetKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetKmsConfigRequest.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.netapp.v1.GetKmsConfigRequest();
+ 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 GetKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.GetKmsConfigRequest} GetKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetKmsConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetKmsConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetKmsConfigRequest.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 GetKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.GetKmsConfigRequest} GetKmsConfigRequest
+ */
+ GetKmsConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.GetKmsConfigRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.GetKmsConfigRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetKmsConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.GetKmsConfigRequest} message GetKmsConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetKmsConfigRequest.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 GetKmsConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetKmsConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetKmsConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.GetKmsConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetKmsConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.GetKmsConfigRequest";
+ };
+
+ return GetKmsConfigRequest;
+ })();
+
+ v1.ListKmsConfigsRequest = (function() {
+
+ /**
+ * Properties of a ListKmsConfigsRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListKmsConfigsRequest
+ * @property {string|null} [parent] ListKmsConfigsRequest parent
+ * @property {number|null} [pageSize] ListKmsConfigsRequest pageSize
+ * @property {string|null} [pageToken] ListKmsConfigsRequest pageToken
+ * @property {string|null} [orderBy] ListKmsConfigsRequest orderBy
+ * @property {string|null} [filter] ListKmsConfigsRequest filter
+ */
+
+ /**
+ * Constructs a new ListKmsConfigsRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListKmsConfigsRequest.
+ * @implements IListKmsConfigsRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListKmsConfigsRequest=} [properties] Properties to set
+ */
+ function ListKmsConfigsRequest(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]];
+ }
+
+ /**
+ * ListKmsConfigsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @instance
+ */
+ ListKmsConfigsRequest.prototype.parent = "";
+
+ /**
+ * ListKmsConfigsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @instance
+ */
+ ListKmsConfigsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListKmsConfigsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @instance
+ */
+ ListKmsConfigsRequest.prototype.pageToken = "";
+
+ /**
+ * ListKmsConfigsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @instance
+ */
+ ListKmsConfigsRequest.prototype.orderBy = "";
+
+ /**
+ * ListKmsConfigsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @instance
+ */
+ ListKmsConfigsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListKmsConfigsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListKmsConfigsRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsRequest} ListKmsConfigsRequest instance
+ */
+ ListKmsConfigsRequest.create = function create(properties) {
+ return new ListKmsConfigsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListKmsConfigsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListKmsConfigsRequest} message ListKmsConfigsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListKmsConfigsRequest.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 ListKmsConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListKmsConfigsRequest} message ListKmsConfigsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListKmsConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListKmsConfigsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsRequest} ListKmsConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListKmsConfigsRequest.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.netapp.v1.ListKmsConfigsRequest();
+ 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 ListKmsConfigsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsRequest} ListKmsConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListKmsConfigsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListKmsConfigsRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListKmsConfigsRequest.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 ListKmsConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsRequest} ListKmsConfigsRequest
+ */
+ ListKmsConfigsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListKmsConfigsRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListKmsConfigsRequest();
+ 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 ListKmsConfigsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ListKmsConfigsRequest} message ListKmsConfigsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListKmsConfigsRequest.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 ListKmsConfigsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListKmsConfigsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListKmsConfigsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListKmsConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListKmsConfigsRequest";
+ };
+
+ return ListKmsConfigsRequest;
+ })();
+
+ v1.ListKmsConfigsResponse = (function() {
+
+ /**
+ * Properties of a ListKmsConfigsResponse.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListKmsConfigsResponse
+ * @property {Array.|null} [kmsConfigs] ListKmsConfigsResponse kmsConfigs
+ * @property {string|null} [nextPageToken] ListKmsConfigsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListKmsConfigsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListKmsConfigsResponse.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListKmsConfigsResponse.
+ * @implements IListKmsConfigsResponse
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListKmsConfigsResponse=} [properties] Properties to set
+ */
+ function ListKmsConfigsResponse(properties) {
+ this.kmsConfigs = [];
+ 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]];
+ }
+
+ /**
+ * ListKmsConfigsResponse kmsConfigs.
+ * @member {Array.} kmsConfigs
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @instance
+ */
+ ListKmsConfigsResponse.prototype.kmsConfigs = $util.emptyArray;
+
+ /**
+ * ListKmsConfigsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @instance
+ */
+ ListKmsConfigsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListKmsConfigsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @instance
+ */
+ ListKmsConfigsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListKmsConfigsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListKmsConfigsResponse=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsResponse} ListKmsConfigsResponse instance
+ */
+ ListKmsConfigsResponse.create = function create(properties) {
+ return new ListKmsConfigsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListKmsConfigsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListKmsConfigsResponse} message ListKmsConfigsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListKmsConfigsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kmsConfigs != null && message.kmsConfigs.length)
+ for (var i = 0; i < message.kmsConfigs.length; ++i)
+ $root.google.cloud.netapp.v1.KmsConfig.encode(message.kmsConfigs[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 ListKmsConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListKmsConfigsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListKmsConfigsResponse} message ListKmsConfigsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListKmsConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListKmsConfigsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsResponse} ListKmsConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListKmsConfigsResponse.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.netapp.v1.ListKmsConfigsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.kmsConfigs && message.kmsConfigs.length))
+ message.kmsConfigs = [];
+ message.kmsConfigs.push($root.google.cloud.netapp.v1.KmsConfig.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 ListKmsConfigsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsResponse} ListKmsConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListKmsConfigsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListKmsConfigsResponse message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListKmsConfigsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kmsConfigs != null && message.hasOwnProperty("kmsConfigs")) {
+ if (!Array.isArray(message.kmsConfigs))
+ return "kmsConfigs: array expected";
+ for (var i = 0; i < message.kmsConfigs.length; ++i) {
+ var error = $root.google.cloud.netapp.v1.KmsConfig.verify(message.kmsConfigs[i]);
+ if (error)
+ return "kmsConfigs." + 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 ListKmsConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListKmsConfigsResponse} ListKmsConfigsResponse
+ */
+ ListKmsConfigsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListKmsConfigsResponse)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListKmsConfigsResponse();
+ if (object.kmsConfigs) {
+ if (!Array.isArray(object.kmsConfigs))
+ throw TypeError(".google.cloud.netapp.v1.ListKmsConfigsResponse.kmsConfigs: array expected");
+ message.kmsConfigs = [];
+ for (var i = 0; i < object.kmsConfigs.length; ++i) {
+ if (typeof object.kmsConfigs[i] !== "object")
+ throw TypeError(".google.cloud.netapp.v1.ListKmsConfigsResponse.kmsConfigs: object expected");
+ message.kmsConfigs[i] = $root.google.cloud.netapp.v1.KmsConfig.fromObject(object.kmsConfigs[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.netapp.v1.ListKmsConfigsResponse.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 ListKmsConfigsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.ListKmsConfigsResponse} message ListKmsConfigsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListKmsConfigsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.kmsConfigs = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.kmsConfigs && message.kmsConfigs.length) {
+ object.kmsConfigs = [];
+ for (var j = 0; j < message.kmsConfigs.length; ++j)
+ object.kmsConfigs[j] = $root.google.cloud.netapp.v1.KmsConfig.toObject(message.kmsConfigs[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 ListKmsConfigsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListKmsConfigsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListKmsConfigsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListKmsConfigsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListKmsConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListKmsConfigsResponse";
+ };
+
+ return ListKmsConfigsResponse;
+ })();
+
+ v1.CreateKmsConfigRequest = (function() {
+
+ /**
+ * Properties of a CreateKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface ICreateKmsConfigRequest
+ * @property {string|null} [parent] CreateKmsConfigRequest parent
+ * @property {string|null} [kmsConfigId] CreateKmsConfigRequest kmsConfigId
+ * @property {google.cloud.netapp.v1.IKmsConfig|null} [kmsConfig] CreateKmsConfigRequest kmsConfig
+ */
+
+ /**
+ * Constructs a new CreateKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a CreateKmsConfigRequest.
+ * @implements ICreateKmsConfigRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.ICreateKmsConfigRequest=} [properties] Properties to set
+ */
+ function CreateKmsConfigRequest(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]];
+ }
+
+ /**
+ * CreateKmsConfigRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @instance
+ */
+ CreateKmsConfigRequest.prototype.parent = "";
+
+ /**
+ * CreateKmsConfigRequest kmsConfigId.
+ * @member {string} kmsConfigId
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @instance
+ */
+ CreateKmsConfigRequest.prototype.kmsConfigId = "";
+
+ /**
+ * CreateKmsConfigRequest kmsConfig.
+ * @member {google.cloud.netapp.v1.IKmsConfig|null|undefined} kmsConfig
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @instance
+ */
+ CreateKmsConfigRequest.prototype.kmsConfig = null;
+
+ /**
+ * Creates a new CreateKmsConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateKmsConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.CreateKmsConfigRequest} CreateKmsConfigRequest instance
+ */
+ CreateKmsConfigRequest.create = function create(properties) {
+ return new CreateKmsConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateKmsConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateKmsConfigRequest} message CreateKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateKmsConfigRequest.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.kmsConfigId != null && Object.hasOwnProperty.call(message, "kmsConfigId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsConfigId);
+ if (message.kmsConfig != null && Object.hasOwnProperty.call(message, "kmsConfig"))
+ $root.google.cloud.netapp.v1.KmsConfig.encode(message.kmsConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateKmsConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateKmsConfigRequest} message CreateKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateKmsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateKmsConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.CreateKmsConfigRequest} CreateKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateKmsConfigRequest.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.netapp.v1.CreateKmsConfigRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.kmsConfigId = reader.string();
+ break;
+ }
+ case 3: {
+ message.kmsConfig = $root.google.cloud.netapp.v1.KmsConfig.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.CreateKmsConfigRequest} CreateKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateKmsConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateKmsConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateKmsConfigRequest.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.kmsConfigId != null && message.hasOwnProperty("kmsConfigId"))
+ if (!$util.isString(message.kmsConfigId))
+ return "kmsConfigId: string expected";
+ if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) {
+ var error = $root.google.cloud.netapp.v1.KmsConfig.verify(message.kmsConfig);
+ if (error)
+ return "kmsConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.CreateKmsConfigRequest} CreateKmsConfigRequest
+ */
+ CreateKmsConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.CreateKmsConfigRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.CreateKmsConfigRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.kmsConfigId != null)
+ message.kmsConfigId = String(object.kmsConfigId);
+ if (object.kmsConfig != null) {
+ if (typeof object.kmsConfig !== "object")
+ throw TypeError(".google.cloud.netapp.v1.CreateKmsConfigRequest.kmsConfig: object expected");
+ message.kmsConfig = $root.google.cloud.netapp.v1.KmsConfig.fromObject(object.kmsConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateKmsConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.CreateKmsConfigRequest} message CreateKmsConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateKmsConfigRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.kmsConfigId = "";
+ object.kmsConfig = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.kmsConfigId != null && message.hasOwnProperty("kmsConfigId"))
+ object.kmsConfigId = message.kmsConfigId;
+ if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig"))
+ object.kmsConfig = $root.google.cloud.netapp.v1.KmsConfig.toObject(message.kmsConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateKmsConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateKmsConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateKmsConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.CreateKmsConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateKmsConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.CreateKmsConfigRequest";
+ };
+
+ return CreateKmsConfigRequest;
+ })();
+
+ v1.UpdateKmsConfigRequest = (function() {
+
+ /**
+ * Properties of an UpdateKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IUpdateKmsConfigRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateKmsConfigRequest updateMask
+ * @property {google.cloud.netapp.v1.IKmsConfig|null} [kmsConfig] UpdateKmsConfigRequest kmsConfig
+ */
+
+ /**
+ * Constructs a new UpdateKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents an UpdateKmsConfigRequest.
+ * @implements IUpdateKmsConfigRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IUpdateKmsConfigRequest=} [properties] Properties to set
+ */
+ function UpdateKmsConfigRequest(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]];
+ }
+
+ /**
+ * UpdateKmsConfigRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @instance
+ */
+ UpdateKmsConfigRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateKmsConfigRequest kmsConfig.
+ * @member {google.cloud.netapp.v1.IKmsConfig|null|undefined} kmsConfig
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @instance
+ */
+ UpdateKmsConfigRequest.prototype.kmsConfig = null;
+
+ /**
+ * Creates a new UpdateKmsConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateKmsConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.UpdateKmsConfigRequest} UpdateKmsConfigRequest instance
+ */
+ UpdateKmsConfigRequest.create = function create(properties) {
+ return new UpdateKmsConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateKmsConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateKmsConfigRequest} message UpdateKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateKmsConfigRequest.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.kmsConfig != null && Object.hasOwnProperty.call(message, "kmsConfig"))
+ $root.google.cloud.netapp.v1.KmsConfig.encode(message.kmsConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateKmsConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateKmsConfigRequest} message UpdateKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateKmsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateKmsConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.UpdateKmsConfigRequest} UpdateKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateKmsConfigRequest.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.netapp.v1.UpdateKmsConfigRequest();
+ 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.kmsConfig = $root.google.cloud.netapp.v1.KmsConfig.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.UpdateKmsConfigRequest} UpdateKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateKmsConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateKmsConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateKmsConfigRequest.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.kmsConfig != null && message.hasOwnProperty("kmsConfig")) {
+ var error = $root.google.cloud.netapp.v1.KmsConfig.verify(message.kmsConfig);
+ if (error)
+ return "kmsConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.UpdateKmsConfigRequest} UpdateKmsConfigRequest
+ */
+ UpdateKmsConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.UpdateKmsConfigRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.UpdateKmsConfigRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateKmsConfigRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.kmsConfig != null) {
+ if (typeof object.kmsConfig !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateKmsConfigRequest.kmsConfig: object expected");
+ message.kmsConfig = $root.google.cloud.netapp.v1.KmsConfig.fromObject(object.kmsConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateKmsConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.UpdateKmsConfigRequest} message UpdateKmsConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateKmsConfigRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.kmsConfig = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig"))
+ object.kmsConfig = $root.google.cloud.netapp.v1.KmsConfig.toObject(message.kmsConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateKmsConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateKmsConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateKmsConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.UpdateKmsConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateKmsConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateKmsConfigRequest";
+ };
+
+ return UpdateKmsConfigRequest;
+ })();
+
+ v1.DeleteKmsConfigRequest = (function() {
+
+ /**
+ * Properties of a DeleteKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IDeleteKmsConfigRequest
+ * @property {string|null} [name] DeleteKmsConfigRequest name
+ */
+
+ /**
+ * Constructs a new DeleteKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a DeleteKmsConfigRequest.
+ * @implements IDeleteKmsConfigRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IDeleteKmsConfigRequest=} [properties] Properties to set
+ */
+ function DeleteKmsConfigRequest(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]];
+ }
+
+ /**
+ * DeleteKmsConfigRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @instance
+ */
+ DeleteKmsConfigRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteKmsConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteKmsConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.DeleteKmsConfigRequest} DeleteKmsConfigRequest instance
+ */
+ DeleteKmsConfigRequest.create = function create(properties) {
+ return new DeleteKmsConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteKmsConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteKmsConfigRequest} message DeleteKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteKmsConfigRequest.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 DeleteKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteKmsConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteKmsConfigRequest} message DeleteKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteKmsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteKmsConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.DeleteKmsConfigRequest} DeleteKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteKmsConfigRequest.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.netapp.v1.DeleteKmsConfigRequest();
+ 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 DeleteKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.DeleteKmsConfigRequest} DeleteKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteKmsConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteKmsConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteKmsConfigRequest.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 DeleteKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.DeleteKmsConfigRequest} DeleteKmsConfigRequest
+ */
+ DeleteKmsConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.DeleteKmsConfigRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.DeleteKmsConfigRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteKmsConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.DeleteKmsConfigRequest} message DeleteKmsConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteKmsConfigRequest.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 DeleteKmsConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteKmsConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteKmsConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.DeleteKmsConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteKmsConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteKmsConfigRequest";
+ };
+
+ return DeleteKmsConfigRequest;
+ })();
+
+ v1.EncryptVolumesRequest = (function() {
+
+ /**
+ * Properties of an EncryptVolumesRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IEncryptVolumesRequest
+ * @property {string|null} [name] EncryptVolumesRequest name
+ */
+
+ /**
+ * Constructs a new EncryptVolumesRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents an EncryptVolumesRequest.
+ * @implements IEncryptVolumesRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IEncryptVolumesRequest=} [properties] Properties to set
+ */
+ function EncryptVolumesRequest(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]];
+ }
+
+ /**
+ * EncryptVolumesRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @instance
+ */
+ EncryptVolumesRequest.prototype.name = "";
+
+ /**
+ * Creates a new EncryptVolumesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IEncryptVolumesRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.EncryptVolumesRequest} EncryptVolumesRequest instance
+ */
+ EncryptVolumesRequest.create = function create(properties) {
+ return new EncryptVolumesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified EncryptVolumesRequest message. Does not implicitly {@link google.cloud.netapp.v1.EncryptVolumesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IEncryptVolumesRequest} message EncryptVolumesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptVolumesRequest.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 EncryptVolumesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.EncryptVolumesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IEncryptVolumesRequest} message EncryptVolumesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptVolumesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EncryptVolumesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.EncryptVolumesRequest} EncryptVolumesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptVolumesRequest.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.netapp.v1.EncryptVolumesRequest();
+ 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 an EncryptVolumesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.EncryptVolumesRequest} EncryptVolumesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptVolumesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EncryptVolumesRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EncryptVolumesRequest.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 an EncryptVolumesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.EncryptVolumesRequest} EncryptVolumesRequest
+ */
+ EncryptVolumesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.EncryptVolumesRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.EncryptVolumesRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EncryptVolumesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {google.cloud.netapp.v1.EncryptVolumesRequest} message EncryptVolumesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EncryptVolumesRequest.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 EncryptVolumesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EncryptVolumesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EncryptVolumesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.EncryptVolumesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EncryptVolumesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.EncryptVolumesRequest";
+ };
+
+ return EncryptVolumesRequest;
+ })();
+
+ v1.VerifyKmsConfigRequest = (function() {
+
+ /**
+ * Properties of a VerifyKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IVerifyKmsConfigRequest
+ * @property {string|null} [name] VerifyKmsConfigRequest name
+ */
+
+ /**
+ * Constructs a new VerifyKmsConfigRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a VerifyKmsConfigRequest.
+ * @implements IVerifyKmsConfigRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigRequest=} [properties] Properties to set
+ */
+ function VerifyKmsConfigRequest(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]];
+ }
+
+ /**
+ * VerifyKmsConfigRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @instance
+ */
+ VerifyKmsConfigRequest.prototype.name = "";
+
+ /**
+ * Creates a new VerifyKmsConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigRequest} VerifyKmsConfigRequest instance
+ */
+ VerifyKmsConfigRequest.create = function create(properties) {
+ return new VerifyKmsConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified VerifyKmsConfigRequest message. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigRequest} message VerifyKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VerifyKmsConfigRequest.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 VerifyKmsConfigRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigRequest} message VerifyKmsConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VerifyKmsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VerifyKmsConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigRequest} VerifyKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VerifyKmsConfigRequest.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.netapp.v1.VerifyKmsConfigRequest();
+ 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 VerifyKmsConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigRequest} VerifyKmsConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VerifyKmsConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VerifyKmsConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VerifyKmsConfigRequest.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 VerifyKmsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigRequest} VerifyKmsConfigRequest
+ */
+ VerifyKmsConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.VerifyKmsConfigRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.VerifyKmsConfigRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VerifyKmsConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {google.cloud.netapp.v1.VerifyKmsConfigRequest} message VerifyKmsConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VerifyKmsConfigRequest.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 VerifyKmsConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VerifyKmsConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VerifyKmsConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VerifyKmsConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.VerifyKmsConfigRequest";
+ };
+
+ return VerifyKmsConfigRequest;
+ })();
+
+ v1.VerifyKmsConfigResponse = (function() {
+
+ /**
+ * Properties of a VerifyKmsConfigResponse.
+ * @memberof google.cloud.netapp.v1
+ * @interface IVerifyKmsConfigResponse
+ * @property {boolean|null} [healthy] VerifyKmsConfigResponse healthy
+ * @property {string|null} [healthError] VerifyKmsConfigResponse healthError
+ * @property {string|null} [instructions] VerifyKmsConfigResponse instructions
+ */
+
+ /**
+ * Constructs a new VerifyKmsConfigResponse.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a VerifyKmsConfigResponse.
+ * @implements IVerifyKmsConfigResponse
+ * @constructor
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigResponse=} [properties] Properties to set
+ */
+ function VerifyKmsConfigResponse(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]];
+ }
+
+ /**
+ * VerifyKmsConfigResponse healthy.
+ * @member {boolean} healthy
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @instance
+ */
+ VerifyKmsConfigResponse.prototype.healthy = false;
+
+ /**
+ * VerifyKmsConfigResponse healthError.
+ * @member {string} healthError
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @instance
+ */
+ VerifyKmsConfigResponse.prototype.healthError = "";
+
+ /**
+ * VerifyKmsConfigResponse instructions.
+ * @member {string} instructions
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @instance
+ */
+ VerifyKmsConfigResponse.prototype.instructions = "";
+
+ /**
+ * Creates a new VerifyKmsConfigResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigResponse=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigResponse} VerifyKmsConfigResponse instance
+ */
+ VerifyKmsConfigResponse.create = function create(properties) {
+ return new VerifyKmsConfigResponse(properties);
+ };
+
+ /**
+ * Encodes the specified VerifyKmsConfigResponse message. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigResponse} message VerifyKmsConfigResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VerifyKmsConfigResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.healthy != null && Object.hasOwnProperty.call(message, "healthy"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.healthy);
+ if (message.healthError != null && Object.hasOwnProperty.call(message, "healthError"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.healthError);
+ if (message.instructions != null && Object.hasOwnProperty.call(message, "instructions"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.instructions);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VerifyKmsConfigResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.VerifyKmsConfigResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IVerifyKmsConfigResponse} message VerifyKmsConfigResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VerifyKmsConfigResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VerifyKmsConfigResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigResponse} VerifyKmsConfigResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VerifyKmsConfigResponse.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.netapp.v1.VerifyKmsConfigResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.healthy = reader.bool();
+ break;
+ }
+ case 2: {
+ message.healthError = reader.string();
+ break;
+ }
+ case 3: {
+ message.instructions = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VerifyKmsConfigResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigResponse} VerifyKmsConfigResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VerifyKmsConfigResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VerifyKmsConfigResponse message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VerifyKmsConfigResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.healthy != null && message.hasOwnProperty("healthy"))
+ if (typeof message.healthy !== "boolean")
+ return "healthy: boolean expected";
+ if (message.healthError != null && message.hasOwnProperty("healthError"))
+ if (!$util.isString(message.healthError))
+ return "healthError: string expected";
+ if (message.instructions != null && message.hasOwnProperty("instructions"))
+ if (!$util.isString(message.instructions))
+ return "instructions: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a VerifyKmsConfigResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.VerifyKmsConfigResponse} VerifyKmsConfigResponse
+ */
+ VerifyKmsConfigResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.VerifyKmsConfigResponse)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.VerifyKmsConfigResponse();
+ if (object.healthy != null)
+ message.healthy = Boolean(object.healthy);
+ if (object.healthError != null)
+ message.healthError = String(object.healthError);
+ if (object.instructions != null)
+ message.instructions = String(object.instructions);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VerifyKmsConfigResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {google.cloud.netapp.v1.VerifyKmsConfigResponse} message VerifyKmsConfigResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VerifyKmsConfigResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.healthy = false;
+ object.healthError = "";
+ object.instructions = "";
+ }
+ if (message.healthy != null && message.hasOwnProperty("healthy"))
+ object.healthy = message.healthy;
+ if (message.healthError != null && message.hasOwnProperty("healthError"))
+ object.healthError = message.healthError;
+ if (message.instructions != null && message.hasOwnProperty("instructions"))
+ object.instructions = message.instructions;
+ return object;
+ };
+
+ /**
+ * Converts this VerifyKmsConfigResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VerifyKmsConfigResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VerifyKmsConfigResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.VerifyKmsConfigResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VerifyKmsConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.VerifyKmsConfigResponse";
+ };
+
+ return VerifyKmsConfigResponse;
+ })();
+
+ v1.KmsConfig = (function() {
+
+ /**
+ * Properties of a KmsConfig.
+ * @memberof google.cloud.netapp.v1
+ * @interface IKmsConfig
+ * @property {string|null} [name] KmsConfig name
+ * @property {string|null} [cryptoKeyName] KmsConfig cryptoKeyName
+ * @property {google.cloud.netapp.v1.KmsConfig.State|null} [state] KmsConfig state
+ * @property {string|null} [stateDetails] KmsConfig stateDetails
+ * @property {google.protobuf.ITimestamp|null} [createTime] KmsConfig createTime
+ * @property {string|null} [description] KmsConfig description
+ * @property {Object.|null} [labels] KmsConfig labels
+ * @property {string|null} [instructions] KmsConfig instructions
+ * @property {string|null} [serviceAccount] KmsConfig serviceAccount
+ */
+
+ /**
+ * Constructs a new KmsConfig.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a KmsConfig.
+ * @implements IKmsConfig
+ * @constructor
+ * @param {google.cloud.netapp.v1.IKmsConfig=} [properties] Properties to set
+ */
+ function KmsConfig(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]];
+ }
+
+ /**
+ * KmsConfig name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.name = "";
+
+ /**
+ * KmsConfig cryptoKeyName.
+ * @member {string} cryptoKeyName
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.cryptoKeyName = "";
+
+ /**
+ * KmsConfig state.
+ * @member {google.cloud.netapp.v1.KmsConfig.State} state
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.state = 0;
+
+ /**
+ * KmsConfig stateDetails.
+ * @member {string} stateDetails
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.stateDetails = "";
+
+ /**
+ * KmsConfig createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.createTime = null;
+
+ /**
+ * KmsConfig description.
+ * @member {string} description
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.description = "";
+
+ /**
+ * KmsConfig labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.labels = $util.emptyObject;
+
+ /**
+ * KmsConfig instructions.
+ * @member {string} instructions
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.instructions = "";
+
+ /**
+ * KmsConfig serviceAccount.
+ * @member {string} serviceAccount
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ */
+ KmsConfig.prototype.serviceAccount = "";
+
+ /**
+ * Creates a new KmsConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {google.cloud.netapp.v1.IKmsConfig=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.KmsConfig} KmsConfig instance
+ */
+ KmsConfig.create = function create(properties) {
+ return new KmsConfig(properties);
+ };
+
+ /**
+ * Encodes the specified KmsConfig message. Does not implicitly {@link google.cloud.netapp.v1.KmsConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {google.cloud.netapp.v1.IKmsConfig} message KmsConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ KmsConfig.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.cryptoKeyName != null && Object.hasOwnProperty.call(message, "cryptoKeyName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.cryptoKeyName);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
+ if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.stateDetails);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
+ 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 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.instructions != null && Object.hasOwnProperty.call(message, "instructions"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.instructions);
+ if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.serviceAccount);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified KmsConfig message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.KmsConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {google.cloud.netapp.v1.IKmsConfig} message KmsConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ KmsConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a KmsConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.KmsConfig} KmsConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ KmsConfig.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.netapp.v1.KmsConfig(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.cryptoKeyName = reader.string();
+ break;
+ }
+ case 3: {
+ message.state = reader.int32();
+ break;
+ }
+ case 4: {
+ message.stateDetails = reader.string();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.description = reader.string();
+ break;
+ }
+ case 7: {
+ 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 8: {
+ message.instructions = reader.string();
+ break;
+ }
+ case 9: {
+ message.serviceAccount = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a KmsConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.KmsConfig} KmsConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ KmsConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a KmsConfig message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ KmsConfig.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.cryptoKeyName != null && message.hasOwnProperty("cryptoKeyName"))
+ if (!$util.isString(message.cryptoKeyName))
+ return "cryptoKeyName: 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 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ break;
+ }
+ if (message.stateDetails != null && message.hasOwnProperty("stateDetails"))
+ if (!$util.isString(message.stateDetails))
+ return "stateDetails: 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.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ 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.instructions != null && message.hasOwnProperty("instructions"))
+ if (!$util.isString(message.instructions))
+ return "instructions: string expected";
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ if (!$util.isString(message.serviceAccount))
+ return "serviceAccount: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a KmsConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.KmsConfig} KmsConfig
+ */
+ KmsConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.KmsConfig)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.KmsConfig();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.cryptoKeyName != null)
+ message.cryptoKeyName = String(object.cryptoKeyName);
+ 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 "READY":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ case "DELETING":
+ case 3:
+ message.state = 3;
+ break;
+ case "UPDATING":
+ case 4:
+ message.state = 4;
+ break;
+ case "IN_USE":
+ case 5:
+ message.state = 5;
+ break;
+ case "ERROR":
+ case 6:
+ message.state = 6;
+ break;
+ case "KEY_CHECK_PENDING":
+ case 7:
+ message.state = 7;
+ break;
+ case "KEY_NOT_REACHABLE":
+ case 8:
+ message.state = 8;
+ break;
+ case "DISABLING":
+ case 9:
+ message.state = 9;
+ break;
+ case "DISABLED":
+ case 10:
+ message.state = 10;
+ break;
+ case "MIGRATING":
+ case 11:
+ message.state = 11;
+ break;
+ }
+ if (object.stateDetails != null)
+ message.stateDetails = String(object.stateDetails);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.netapp.v1.KmsConfig.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.netapp.v1.KmsConfig.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.instructions != null)
+ message.instructions = String(object.instructions);
+ if (object.serviceAccount != null)
+ message.serviceAccount = String(object.serviceAccount);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a KmsConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {google.cloud.netapp.v1.KmsConfig} message KmsConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ KmsConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.cryptoKeyName = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateDetails = "";
+ object.createTime = null;
+ object.description = "";
+ object.instructions = "";
+ object.serviceAccount = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.cryptoKeyName != null && message.hasOwnProperty("cryptoKeyName"))
+ object.cryptoKeyName = message.cryptoKeyName;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.netapp.v1.KmsConfig.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.KmsConfig.State[message.state] : message.state;
+ if (message.stateDetails != null && message.hasOwnProperty("stateDetails"))
+ object.stateDetails = message.stateDetails;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ 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.instructions != null && message.hasOwnProperty("instructions"))
+ object.instructions = message.instructions;
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ object.serviceAccount = message.serviceAccount;
+ return object;
+ };
+
+ /**
+ * Converts this KmsConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ KmsConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for KmsConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.KmsConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ KmsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.KmsConfig";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.netapp.v1.KmsConfig.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} READY=1 READY value
+ * @property {number} CREATING=2 CREATING value
+ * @property {number} DELETING=3 DELETING value
+ * @property {number} UPDATING=4 UPDATING value
+ * @property {number} IN_USE=5 IN_USE value
+ * @property {number} ERROR=6 ERROR value
+ * @property {number} KEY_CHECK_PENDING=7 KEY_CHECK_PENDING value
+ * @property {number} KEY_NOT_REACHABLE=8 KEY_NOT_REACHABLE value
+ * @property {number} DISABLING=9 DISABLING value
+ * @property {number} DISABLED=10 DISABLED value
+ * @property {number} MIGRATING=11 MIGRATING value
+ */
+ KmsConfig.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "READY"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ values[valuesById[3] = "DELETING"] = 3;
+ values[valuesById[4] = "UPDATING"] = 4;
+ values[valuesById[5] = "IN_USE"] = 5;
+ values[valuesById[6] = "ERROR"] = 6;
+ values[valuesById[7] = "KEY_CHECK_PENDING"] = 7;
+ values[valuesById[8] = "KEY_NOT_REACHABLE"] = 8;
+ values[valuesById[9] = "DISABLING"] = 9;
+ values[valuesById[10] = "DISABLED"] = 10;
+ values[valuesById[11] = "MIGRATING"] = 11;
+ return values;
+ })();
+
+ return KmsConfig;
+ })();
+
+ v1.TransferStats = (function() {
+
+ /**
+ * Properties of a TransferStats.
+ * @memberof google.cloud.netapp.v1
+ * @interface ITransferStats
+ * @property {number|Long|null} [transferBytes] TransferStats transferBytes
+ * @property {google.protobuf.IDuration|null} [totalTransferDuration] TransferStats totalTransferDuration
+ * @property {number|Long|null} [lastTransferBytes] TransferStats lastTransferBytes
+ * @property {google.protobuf.IDuration|null} [lastTransferDuration] TransferStats lastTransferDuration
+ * @property {google.protobuf.IDuration|null} [lagDuration] TransferStats lagDuration
+ * @property {google.protobuf.ITimestamp|null} [updateTime] TransferStats updateTime
+ * @property {google.protobuf.ITimestamp|null} [lastTransferEndTime] TransferStats lastTransferEndTime
+ * @property {string|null} [lastTransferError] TransferStats lastTransferError
+ */
+
+ /**
+ * Constructs a new TransferStats.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a TransferStats.
+ * @implements ITransferStats
+ * @constructor
+ * @param {google.cloud.netapp.v1.ITransferStats=} [properties] Properties to set
+ */
+ function TransferStats(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]];
+ }
+
+ /**
+ * TransferStats transferBytes.
+ * @member {number|Long|null|undefined} transferBytes
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.transferBytes = null;
+
+ /**
+ * TransferStats totalTransferDuration.
+ * @member {google.protobuf.IDuration|null|undefined} totalTransferDuration
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.totalTransferDuration = null;
+
+ /**
+ * TransferStats lastTransferBytes.
+ * @member {number|Long|null|undefined} lastTransferBytes
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.lastTransferBytes = null;
+
+ /**
+ * TransferStats lastTransferDuration.
+ * @member {google.protobuf.IDuration|null|undefined} lastTransferDuration
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.lastTransferDuration = null;
+
+ /**
+ * TransferStats lagDuration.
+ * @member {google.protobuf.IDuration|null|undefined} lagDuration
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.lagDuration = null;
+
+ /**
+ * TransferStats updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.updateTime = null;
+
+ /**
+ * TransferStats lastTransferEndTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} lastTransferEndTime
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.lastTransferEndTime = null;
+
+ /**
+ * TransferStats lastTransferError.
+ * @member {string|null|undefined} lastTransferError
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ TransferStats.prototype.lastTransferError = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * TransferStats _transferBytes.
+ * @member {"transferBytes"|undefined} _transferBytes
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_transferBytes", {
+ get: $util.oneOfGetter($oneOfFields = ["transferBytes"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TransferStats _totalTransferDuration.
+ * @member {"totalTransferDuration"|undefined} _totalTransferDuration
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_totalTransferDuration", {
+ get: $util.oneOfGetter($oneOfFields = ["totalTransferDuration"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TransferStats _lastTransferBytes.
+ * @member {"lastTransferBytes"|undefined} _lastTransferBytes
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_lastTransferBytes", {
+ get: $util.oneOfGetter($oneOfFields = ["lastTransferBytes"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TransferStats _lastTransferDuration.
+ * @member {"lastTransferDuration"|undefined} _lastTransferDuration
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_lastTransferDuration", {
+ get: $util.oneOfGetter($oneOfFields = ["lastTransferDuration"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TransferStats _lagDuration.
+ * @member {"lagDuration"|undefined} _lagDuration
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_lagDuration", {
+ get: $util.oneOfGetter($oneOfFields = ["lagDuration"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TransferStats _updateTime.
+ * @member {"updateTime"|undefined} _updateTime
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_updateTime", {
+ get: $util.oneOfGetter($oneOfFields = ["updateTime"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TransferStats _lastTransferEndTime.
+ * @member {"lastTransferEndTime"|undefined} _lastTransferEndTime
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_lastTransferEndTime", {
+ get: $util.oneOfGetter($oneOfFields = ["lastTransferEndTime"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * TransferStats _lastTransferError.
+ * @member {"lastTransferError"|undefined} _lastTransferError
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ */
+ Object.defineProperty(TransferStats.prototype, "_lastTransferError", {
+ get: $util.oneOfGetter($oneOfFields = ["lastTransferError"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new TransferStats instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {google.cloud.netapp.v1.ITransferStats=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.TransferStats} TransferStats instance
+ */
+ TransferStats.create = function create(properties) {
+ return new TransferStats(properties);
+ };
+
+ /**
+ * Encodes the specified TransferStats message. Does not implicitly {@link google.cloud.netapp.v1.TransferStats.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {google.cloud.netapp.v1.ITransferStats} message TransferStats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TransferStats.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.transferBytes != null && Object.hasOwnProperty.call(message, "transferBytes"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transferBytes);
+ if (message.totalTransferDuration != null && Object.hasOwnProperty.call(message, "totalTransferDuration"))
+ $root.google.protobuf.Duration.encode(message.totalTransferDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.lastTransferBytes != null && Object.hasOwnProperty.call(message, "lastTransferBytes"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastTransferBytes);
+ if (message.lastTransferDuration != null && Object.hasOwnProperty.call(message, "lastTransferDuration"))
+ $root.google.protobuf.Duration.encode(message.lastTransferDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.lagDuration != null && Object.hasOwnProperty.call(message, "lagDuration"))
+ $root.google.protobuf.Duration.encode(message.lagDuration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.lastTransferEndTime != null && Object.hasOwnProperty.call(message, "lastTransferEndTime"))
+ $root.google.protobuf.Timestamp.encode(message.lastTransferEndTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.lastTransferError != null && Object.hasOwnProperty.call(message, "lastTransferError"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastTransferError);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TransferStats message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.TransferStats.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {google.cloud.netapp.v1.ITransferStats} message TransferStats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TransferStats.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TransferStats message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.TransferStats} TransferStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TransferStats.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.netapp.v1.TransferStats();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.transferBytes = reader.int64();
+ break;
+ }
+ case 2: {
+ message.totalTransferDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.lastTransferBytes = reader.int64();
+ break;
+ }
+ case 4: {
+ message.lastTransferDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.lagDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.lastTransferEndTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.lastTransferError = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TransferStats message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.TransferStats} TransferStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TransferStats.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TransferStats message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TransferStats.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.transferBytes != null && message.hasOwnProperty("transferBytes")) {
+ properties._transferBytes = 1;
+ if (!$util.isInteger(message.transferBytes) && !(message.transferBytes && $util.isInteger(message.transferBytes.low) && $util.isInteger(message.transferBytes.high)))
+ return "transferBytes: integer|Long expected";
+ }
+ if (message.totalTransferDuration != null && message.hasOwnProperty("totalTransferDuration")) {
+ properties._totalTransferDuration = 1;
+ {
+ var error = $root.google.protobuf.Duration.verify(message.totalTransferDuration);
+ if (error)
+ return "totalTransferDuration." + error;
+ }
+ }
+ if (message.lastTransferBytes != null && message.hasOwnProperty("lastTransferBytes")) {
+ properties._lastTransferBytes = 1;
+ if (!$util.isInteger(message.lastTransferBytes) && !(message.lastTransferBytes && $util.isInteger(message.lastTransferBytes.low) && $util.isInteger(message.lastTransferBytes.high)))
+ return "lastTransferBytes: integer|Long expected";
+ }
+ if (message.lastTransferDuration != null && message.hasOwnProperty("lastTransferDuration")) {
+ properties._lastTransferDuration = 1;
+ {
+ var error = $root.google.protobuf.Duration.verify(message.lastTransferDuration);
+ if (error)
+ return "lastTransferDuration." + error;
+ }
+ }
+ if (message.lagDuration != null && message.hasOwnProperty("lagDuration")) {
+ properties._lagDuration = 1;
+ {
+ var error = $root.google.protobuf.Duration.verify(message.lagDuration);
+ if (error)
+ return "lagDuration." + error;
+ }
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ properties._updateTime = 1;
+ {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ }
+ if (message.lastTransferEndTime != null && message.hasOwnProperty("lastTransferEndTime")) {
+ properties._lastTransferEndTime = 1;
+ {
+ var error = $root.google.protobuf.Timestamp.verify(message.lastTransferEndTime);
+ if (error)
+ return "lastTransferEndTime." + error;
+ }
+ }
+ if (message.lastTransferError != null && message.hasOwnProperty("lastTransferError")) {
+ properties._lastTransferError = 1;
+ if (!$util.isString(message.lastTransferError))
+ return "lastTransferError: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TransferStats message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.TransferStats} TransferStats
+ */
+ TransferStats.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.TransferStats)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.TransferStats();
+ if (object.transferBytes != null)
+ if ($util.Long)
+ (message.transferBytes = $util.Long.fromValue(object.transferBytes)).unsigned = false;
+ else if (typeof object.transferBytes === "string")
+ message.transferBytes = parseInt(object.transferBytes, 10);
+ else if (typeof object.transferBytes === "number")
+ message.transferBytes = object.transferBytes;
+ else if (typeof object.transferBytes === "object")
+ message.transferBytes = new $util.LongBits(object.transferBytes.low >>> 0, object.transferBytes.high >>> 0).toNumber();
+ if (object.totalTransferDuration != null) {
+ if (typeof object.totalTransferDuration !== "object")
+ throw TypeError(".google.cloud.netapp.v1.TransferStats.totalTransferDuration: object expected");
+ message.totalTransferDuration = $root.google.protobuf.Duration.fromObject(object.totalTransferDuration);
+ }
+ if (object.lastTransferBytes != null)
+ if ($util.Long)
+ (message.lastTransferBytes = $util.Long.fromValue(object.lastTransferBytes)).unsigned = false;
+ else if (typeof object.lastTransferBytes === "string")
+ message.lastTransferBytes = parseInt(object.lastTransferBytes, 10);
+ else if (typeof object.lastTransferBytes === "number")
+ message.lastTransferBytes = object.lastTransferBytes;
+ else if (typeof object.lastTransferBytes === "object")
+ message.lastTransferBytes = new $util.LongBits(object.lastTransferBytes.low >>> 0, object.lastTransferBytes.high >>> 0).toNumber();
+ if (object.lastTransferDuration != null) {
+ if (typeof object.lastTransferDuration !== "object")
+ throw TypeError(".google.cloud.netapp.v1.TransferStats.lastTransferDuration: object expected");
+ message.lastTransferDuration = $root.google.protobuf.Duration.fromObject(object.lastTransferDuration);
+ }
+ if (object.lagDuration != null) {
+ if (typeof object.lagDuration !== "object")
+ throw TypeError(".google.cloud.netapp.v1.TransferStats.lagDuration: object expected");
+ message.lagDuration = $root.google.protobuf.Duration.fromObject(object.lagDuration);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.netapp.v1.TransferStats.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.lastTransferEndTime != null) {
+ if (typeof object.lastTransferEndTime !== "object")
+ throw TypeError(".google.cloud.netapp.v1.TransferStats.lastTransferEndTime: object expected");
+ message.lastTransferEndTime = $root.google.protobuf.Timestamp.fromObject(object.lastTransferEndTime);
+ }
+ if (object.lastTransferError != null)
+ message.lastTransferError = String(object.lastTransferError);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TransferStats message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {google.cloud.netapp.v1.TransferStats} message TransferStats
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TransferStats.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.transferBytes != null && message.hasOwnProperty("transferBytes")) {
+ if (typeof message.transferBytes === "number")
+ object.transferBytes = options.longs === String ? String(message.transferBytes) : message.transferBytes;
+ else
+ object.transferBytes = options.longs === String ? $util.Long.prototype.toString.call(message.transferBytes) : options.longs === Number ? new $util.LongBits(message.transferBytes.low >>> 0, message.transferBytes.high >>> 0).toNumber() : message.transferBytes;
+ if (options.oneofs)
+ object._transferBytes = "transferBytes";
+ }
+ if (message.totalTransferDuration != null && message.hasOwnProperty("totalTransferDuration")) {
+ object.totalTransferDuration = $root.google.protobuf.Duration.toObject(message.totalTransferDuration, options);
+ if (options.oneofs)
+ object._totalTransferDuration = "totalTransferDuration";
+ }
+ if (message.lastTransferBytes != null && message.hasOwnProperty("lastTransferBytes")) {
+ if (typeof message.lastTransferBytes === "number")
+ object.lastTransferBytes = options.longs === String ? String(message.lastTransferBytes) : message.lastTransferBytes;
+ else
+ object.lastTransferBytes = options.longs === String ? $util.Long.prototype.toString.call(message.lastTransferBytes) : options.longs === Number ? new $util.LongBits(message.lastTransferBytes.low >>> 0, message.lastTransferBytes.high >>> 0).toNumber() : message.lastTransferBytes;
+ if (options.oneofs)
+ object._lastTransferBytes = "lastTransferBytes";
+ }
+ if (message.lastTransferDuration != null && message.hasOwnProperty("lastTransferDuration")) {
+ object.lastTransferDuration = $root.google.protobuf.Duration.toObject(message.lastTransferDuration, options);
+ if (options.oneofs)
+ object._lastTransferDuration = "lastTransferDuration";
+ }
+ if (message.lagDuration != null && message.hasOwnProperty("lagDuration")) {
+ object.lagDuration = $root.google.protobuf.Duration.toObject(message.lagDuration, options);
+ if (options.oneofs)
+ object._lagDuration = "lagDuration";
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (options.oneofs)
+ object._updateTime = "updateTime";
+ }
+ if (message.lastTransferEndTime != null && message.hasOwnProperty("lastTransferEndTime")) {
+ object.lastTransferEndTime = $root.google.protobuf.Timestamp.toObject(message.lastTransferEndTime, options);
+ if (options.oneofs)
+ object._lastTransferEndTime = "lastTransferEndTime";
+ }
+ if (message.lastTransferError != null && message.hasOwnProperty("lastTransferError")) {
+ object.lastTransferError = message.lastTransferError;
+ if (options.oneofs)
+ object._lastTransferError = "lastTransferError";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TransferStats to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TransferStats.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TransferStats
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.TransferStats
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TransferStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.TransferStats";
+ };
+
+ return TransferStats;
+ })();
+
+ v1.Replication = (function() {
+
+ /**
+ * Properties of a Replication.
+ * @memberof google.cloud.netapp.v1
+ * @interface IReplication
+ * @property {string|null} [name] Replication name
+ * @property {google.cloud.netapp.v1.Replication.State|null} [state] Replication state
+ * @property {string|null} [stateDetails] Replication stateDetails
+ * @property {google.cloud.netapp.v1.Replication.ReplicationRole|null} [role] Replication role
+ * @property {google.cloud.netapp.v1.Replication.ReplicationSchedule|null} [replicationSchedule] Replication replicationSchedule
+ * @property {google.cloud.netapp.v1.Replication.MirrorState|null} [mirrorState] Replication mirrorState
+ * @property {boolean|null} [healthy] Replication healthy
+ * @property {google.protobuf.ITimestamp|null} [createTime] Replication createTime
+ * @property {string|null} [destinationVolume] Replication destinationVolume
+ * @property {google.cloud.netapp.v1.ITransferStats|null} [transferStats] Replication transferStats
+ * @property {Object.|null} [labels] Replication labels
+ * @property {string|null} [description] Replication description
+ * @property {google.cloud.netapp.v1.IDestinationVolumeParameters|null} [destinationVolumeParameters] Replication destinationVolumeParameters
+ * @property {string|null} [sourceVolume] Replication sourceVolume
+ */
+
+ /**
+ * Constructs a new Replication.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a Replication.
+ * @implements IReplication
+ * @constructor
+ * @param {google.cloud.netapp.v1.IReplication=} [properties] Properties to set
+ */
+ function Replication(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]];
+ }
+
+ /**
+ * Replication name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.name = "";
+
+ /**
+ * Replication state.
+ * @member {google.cloud.netapp.v1.Replication.State} state
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.state = 0;
+
+ /**
+ * Replication stateDetails.
+ * @member {string} stateDetails
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.stateDetails = "";
+
+ /**
+ * Replication role.
+ * @member {google.cloud.netapp.v1.Replication.ReplicationRole} role
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.role = 0;
+
+ /**
+ * Replication replicationSchedule.
+ * @member {google.cloud.netapp.v1.Replication.ReplicationSchedule} replicationSchedule
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.replicationSchedule = 0;
+
+ /**
+ * Replication mirrorState.
+ * @member {google.cloud.netapp.v1.Replication.MirrorState} mirrorState
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.mirrorState = 0;
+
+ /**
+ * Replication healthy.
+ * @member {boolean|null|undefined} healthy
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.healthy = null;
+
+ /**
+ * Replication createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.createTime = null;
+
+ /**
+ * Replication destinationVolume.
+ * @member {string} destinationVolume
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.destinationVolume = "";
+
+ /**
+ * Replication transferStats.
+ * @member {google.cloud.netapp.v1.ITransferStats|null|undefined} transferStats
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.transferStats = null;
+
+ /**
+ * Replication labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.labels = $util.emptyObject;
+
+ /**
+ * Replication description.
+ * @member {string|null|undefined} description
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.description = null;
+
+ /**
+ * Replication destinationVolumeParameters.
+ * @member {google.cloud.netapp.v1.IDestinationVolumeParameters|null|undefined} destinationVolumeParameters
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.destinationVolumeParameters = null;
+
+ /**
+ * Replication sourceVolume.
+ * @member {string} sourceVolume
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Replication.prototype.sourceVolume = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Replication _healthy.
+ * @member {"healthy"|undefined} _healthy
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Object.defineProperty(Replication.prototype, "_healthy", {
+ get: $util.oneOfGetter($oneOfFields = ["healthy"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Replication _description.
+ * @member {"description"|undefined} _description
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ */
+ Object.defineProperty(Replication.prototype, "_description", {
+ get: $util.oneOfGetter($oneOfFields = ["description"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Replication instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {google.cloud.netapp.v1.IReplication=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.Replication} Replication instance
+ */
+ Replication.create = function create(properties) {
+ return new Replication(properties);
+ };
+
+ /**
+ * Encodes the specified Replication message. Does not implicitly {@link google.cloud.netapp.v1.Replication.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {google.cloud.netapp.v1.IReplication} message Replication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Replication.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.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state);
+ if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.stateDetails);
+ if (message.role != null && Object.hasOwnProperty.call(message, "role"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.role);
+ if (message.replicationSchedule != null && Object.hasOwnProperty.call(message, "replicationSchedule"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.replicationSchedule);
+ if (message.mirrorState != null && Object.hasOwnProperty.call(message, "mirrorState"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.mirrorState);
+ if (message.healthy != null && Object.hasOwnProperty.call(message, "healthy"))
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.healthy);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.destinationVolume != null && Object.hasOwnProperty.call(message, "destinationVolume"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.destinationVolume);
+ if (message.transferStats != null && Object.hasOwnProperty.call(message, "transferStats"))
+ $root.google.cloud.netapp.v1.TransferStats.encode(message.transferStats, writer.uint32(/* id 11, wireType 2 =*/90).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 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.description);
+ if (message.destinationVolumeParameters != null && Object.hasOwnProperty.call(message, "destinationVolumeParameters"))
+ $root.google.cloud.netapp.v1.DestinationVolumeParameters.encode(message.destinationVolumeParameters, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.sourceVolume != null && Object.hasOwnProperty.call(message, "sourceVolume"))
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.sourceVolume);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Replication message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Replication.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {google.cloud.netapp.v1.IReplication} message Replication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Replication.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Replication message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.Replication} Replication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Replication.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.netapp.v1.Replication(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.state = reader.int32();
+ break;
+ }
+ case 3: {
+ message.stateDetails = reader.string();
+ break;
+ }
+ case 4: {
+ message.role = reader.int32();
+ break;
+ }
+ case 5: {
+ message.replicationSchedule = reader.int32();
+ break;
+ }
+ case 6: {
+ message.mirrorState = reader.int32();
+ break;
+ }
+ case 8: {
+ message.healthy = reader.bool();
+ break;
+ }
+ case 9: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.destinationVolume = reader.string();
+ break;
+ }
+ case 11: {
+ message.transferStats = $root.google.cloud.netapp.v1.TransferStats.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ 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 13: {
+ message.description = reader.string();
+ break;
+ }
+ case 14: {
+ message.destinationVolumeParameters = $root.google.cloud.netapp.v1.DestinationVolumeParameters.decode(reader, reader.uint32());
+ break;
+ }
+ case 15: {
+ message.sourceVolume = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Replication message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.Replication} Replication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Replication.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Replication message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Replication.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.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 5:
+ case 6:
+ break;
+ }
+ if (message.stateDetails != null && message.hasOwnProperty("stateDetails"))
+ if (!$util.isString(message.stateDetails))
+ return "stateDetails: string expected";
+ if (message.role != null && message.hasOwnProperty("role"))
+ switch (message.role) {
+ default:
+ return "role: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.replicationSchedule != null && message.hasOwnProperty("replicationSchedule"))
+ switch (message.replicationSchedule) {
+ default:
+ return "replicationSchedule: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.mirrorState != null && message.hasOwnProperty("mirrorState"))
+ switch (message.mirrorState) {
+ default:
+ return "mirrorState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.healthy != null && message.hasOwnProperty("healthy")) {
+ properties._healthy = 1;
+ if (typeof message.healthy !== "boolean")
+ return "healthy: boolean expected";
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.destinationVolume != null && message.hasOwnProperty("destinationVolume"))
+ if (!$util.isString(message.destinationVolume))
+ return "destinationVolume: string expected";
+ if (message.transferStats != null && message.hasOwnProperty("transferStats")) {
+ var error = $root.google.cloud.netapp.v1.TransferStats.verify(message.transferStats);
+ if (error)
+ return "transferStats." + 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.description != null && message.hasOwnProperty("description")) {
+ properties._description = 1;
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ }
+ if (message.destinationVolumeParameters != null && message.hasOwnProperty("destinationVolumeParameters")) {
+ var error = $root.google.cloud.netapp.v1.DestinationVolumeParameters.verify(message.destinationVolumeParameters);
+ if (error)
+ return "destinationVolumeParameters." + error;
+ }
+ if (message.sourceVolume != null && message.hasOwnProperty("sourceVolume"))
+ if (!$util.isString(message.sourceVolume))
+ return "sourceVolume: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Replication message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.Replication} Replication
+ */
+ Replication.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.Replication)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.Replication();
+ if (object.name != null)
+ message.name = String(object.name);
+ 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 "UPDATING":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 5:
+ message.state = 5;
+ break;
+ case "ERROR":
+ case 6:
+ message.state = 6;
+ break;
+ }
+ if (object.stateDetails != null)
+ message.stateDetails = String(object.stateDetails);
+ switch (object.role) {
+ default:
+ if (typeof object.role === "number") {
+ message.role = object.role;
+ break;
+ }
+ break;
+ case "REPLICATION_ROLE_UNSPECIFIED":
+ case 0:
+ message.role = 0;
+ break;
+ case "SOURCE":
+ case 1:
+ message.role = 1;
+ break;
+ case "DESTINATION":
+ case 2:
+ message.role = 2;
+ break;
+ }
+ switch (object.replicationSchedule) {
+ default:
+ if (typeof object.replicationSchedule === "number") {
+ message.replicationSchedule = object.replicationSchedule;
+ break;
+ }
+ break;
+ case "REPLICATION_SCHEDULE_UNSPECIFIED":
+ case 0:
+ message.replicationSchedule = 0;
+ break;
+ case "EVERY_10_MINUTES":
+ case 1:
+ message.replicationSchedule = 1;
+ break;
+ case "HOURLY":
+ case 2:
+ message.replicationSchedule = 2;
+ break;
+ case "DAILY":
+ case 3:
+ message.replicationSchedule = 3;
+ break;
+ }
+ switch (object.mirrorState) {
+ default:
+ if (typeof object.mirrorState === "number") {
+ message.mirrorState = object.mirrorState;
+ break;
+ }
+ break;
+ case "MIRROR_STATE_UNSPECIFIED":
+ case 0:
+ message.mirrorState = 0;
+ break;
+ case "PREPARING":
+ case 1:
+ message.mirrorState = 1;
+ break;
+ case "MIRRORED":
+ case 2:
+ message.mirrorState = 2;
+ break;
+ case "STOPPED":
+ case 3:
+ message.mirrorState = 3;
+ break;
+ case "TRANSFERRING":
+ case 4:
+ message.mirrorState = 4;
+ break;
+ }
+ if (object.healthy != null)
+ message.healthy = Boolean(object.healthy);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.netapp.v1.Replication.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.destinationVolume != null)
+ message.destinationVolume = String(object.destinationVolume);
+ if (object.transferStats != null) {
+ if (typeof object.transferStats !== "object")
+ throw TypeError(".google.cloud.netapp.v1.Replication.transferStats: object expected");
+ message.transferStats = $root.google.cloud.netapp.v1.TransferStats.fromObject(object.transferStats);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.netapp.v1.Replication.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.description != null)
+ message.description = String(object.description);
+ if (object.destinationVolumeParameters != null) {
+ if (typeof object.destinationVolumeParameters !== "object")
+ throw TypeError(".google.cloud.netapp.v1.Replication.destinationVolumeParameters: object expected");
+ message.destinationVolumeParameters = $root.google.cloud.netapp.v1.DestinationVolumeParameters.fromObject(object.destinationVolumeParameters);
+ }
+ if (object.sourceVolume != null)
+ message.sourceVolume = String(object.sourceVolume);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Replication message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {google.cloud.netapp.v1.Replication} message Replication
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Replication.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateDetails = "";
+ object.role = options.enums === String ? "REPLICATION_ROLE_UNSPECIFIED" : 0;
+ object.replicationSchedule = options.enums === String ? "REPLICATION_SCHEDULE_UNSPECIFIED" : 0;
+ object.mirrorState = options.enums === String ? "MIRROR_STATE_UNSPECIFIED" : 0;
+ object.createTime = null;
+ object.destinationVolume = "";
+ object.transferStats = null;
+ object.destinationVolumeParameters = null;
+ object.sourceVolume = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.netapp.v1.Replication.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.Replication.State[message.state] : message.state;
+ if (message.stateDetails != null && message.hasOwnProperty("stateDetails"))
+ object.stateDetails = message.stateDetails;
+ if (message.role != null && message.hasOwnProperty("role"))
+ object.role = options.enums === String ? $root.google.cloud.netapp.v1.Replication.ReplicationRole[message.role] === undefined ? message.role : $root.google.cloud.netapp.v1.Replication.ReplicationRole[message.role] : message.role;
+ if (message.replicationSchedule != null && message.hasOwnProperty("replicationSchedule"))
+ object.replicationSchedule = options.enums === String ? $root.google.cloud.netapp.v1.Replication.ReplicationSchedule[message.replicationSchedule] === undefined ? message.replicationSchedule : $root.google.cloud.netapp.v1.Replication.ReplicationSchedule[message.replicationSchedule] : message.replicationSchedule;
+ if (message.mirrorState != null && message.hasOwnProperty("mirrorState"))
+ object.mirrorState = options.enums === String ? $root.google.cloud.netapp.v1.Replication.MirrorState[message.mirrorState] === undefined ? message.mirrorState : $root.google.cloud.netapp.v1.Replication.MirrorState[message.mirrorState] : message.mirrorState;
+ if (message.healthy != null && message.hasOwnProperty("healthy")) {
+ object.healthy = message.healthy;
+ if (options.oneofs)
+ object._healthy = "healthy";
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.destinationVolume != null && message.hasOwnProperty("destinationVolume"))
+ object.destinationVolume = message.destinationVolume;
+ if (message.transferStats != null && message.hasOwnProperty("transferStats"))
+ object.transferStats = $root.google.cloud.netapp.v1.TransferStats.toObject(message.transferStats, 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.description != null && message.hasOwnProperty("description")) {
+ object.description = message.description;
+ if (options.oneofs)
+ object._description = "description";
+ }
+ if (message.destinationVolumeParameters != null && message.hasOwnProperty("destinationVolumeParameters"))
+ object.destinationVolumeParameters = $root.google.cloud.netapp.v1.DestinationVolumeParameters.toObject(message.destinationVolumeParameters, options);
+ if (message.sourceVolume != null && message.hasOwnProperty("sourceVolume"))
+ object.sourceVolume = message.sourceVolume;
+ return object;
+ };
+
+ /**
+ * Converts this Replication to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.Replication
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Replication.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Replication
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.Replication
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Replication.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.Replication";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.netapp.v1.Replication.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} UPDATING=3 UPDATING value
+ * @property {number} DELETING=5 DELETING value
+ * @property {number} ERROR=6 ERROR value
+ */
+ Replication.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] = "UPDATING"] = 3;
+ values[valuesById[5] = "DELETING"] = 5;
+ values[valuesById[6] = "ERROR"] = 6;
+ return values;
+ })();
+
+ /**
+ * ReplicationRole enum.
+ * @name google.cloud.netapp.v1.Replication.ReplicationRole
+ * @enum {number}
+ * @property {number} REPLICATION_ROLE_UNSPECIFIED=0 REPLICATION_ROLE_UNSPECIFIED value
+ * @property {number} SOURCE=1 SOURCE value
+ * @property {number} DESTINATION=2 DESTINATION value
+ */
+ Replication.ReplicationRole = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "REPLICATION_ROLE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "SOURCE"] = 1;
+ values[valuesById[2] = "DESTINATION"] = 2;
+ return values;
+ })();
+
+ /**
+ * ReplicationSchedule enum.
+ * @name google.cloud.netapp.v1.Replication.ReplicationSchedule
+ * @enum {number}
+ * @property {number} REPLICATION_SCHEDULE_UNSPECIFIED=0 REPLICATION_SCHEDULE_UNSPECIFIED value
+ * @property {number} EVERY_10_MINUTES=1 EVERY_10_MINUTES value
+ * @property {number} HOURLY=2 HOURLY value
+ * @property {number} DAILY=3 DAILY value
+ */
+ Replication.ReplicationSchedule = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "REPLICATION_SCHEDULE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "EVERY_10_MINUTES"] = 1;
+ values[valuesById[2] = "HOURLY"] = 2;
+ values[valuesById[3] = "DAILY"] = 3;
+ return values;
+ })();
+
+ /**
+ * MirrorState enum.
+ * @name google.cloud.netapp.v1.Replication.MirrorState
+ * @enum {number}
+ * @property {number} MIRROR_STATE_UNSPECIFIED=0 MIRROR_STATE_UNSPECIFIED value
+ * @property {number} PREPARING=1 PREPARING value
+ * @property {number} MIRRORED=2 MIRRORED value
+ * @property {number} STOPPED=3 STOPPED value
+ * @property {number} TRANSFERRING=4 TRANSFERRING value
+ */
+ Replication.MirrorState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "MIRROR_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PREPARING"] = 1;
+ values[valuesById[2] = "MIRRORED"] = 2;
+ values[valuesById[3] = "STOPPED"] = 3;
+ values[valuesById[4] = "TRANSFERRING"] = 4;
+ return values;
+ })();
+
+ return Replication;
+ })();
+
+ v1.ListReplicationsRequest = (function() {
+
+ /**
+ * Properties of a ListReplicationsRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListReplicationsRequest
+ * @property {string|null} [parent] ListReplicationsRequest parent
+ * @property {number|null} [pageSize] ListReplicationsRequest pageSize
+ * @property {string|null} [pageToken] ListReplicationsRequest pageToken
+ * @property {string|null} [orderBy] ListReplicationsRequest orderBy
+ * @property {string|null} [filter] ListReplicationsRequest filter
+ */
+
+ /**
+ * Constructs a new ListReplicationsRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListReplicationsRequest.
+ * @implements IListReplicationsRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListReplicationsRequest=} [properties] Properties to set
+ */
+ function ListReplicationsRequest(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]];
+ }
+
+ /**
+ * ListReplicationsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @instance
+ */
+ ListReplicationsRequest.prototype.parent = "";
+
+ /**
+ * ListReplicationsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @instance
+ */
+ ListReplicationsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListReplicationsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @instance
+ */
+ ListReplicationsRequest.prototype.pageToken = "";
+
+ /**
+ * ListReplicationsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @instance
+ */
+ ListReplicationsRequest.prototype.orderBy = "";
+
+ /**
+ * ListReplicationsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @instance
+ */
+ ListReplicationsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListReplicationsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListReplicationsRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListReplicationsRequest} ListReplicationsRequest instance
+ */
+ ListReplicationsRequest.create = function create(properties) {
+ return new ListReplicationsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListReplicationsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListReplicationsRequest} message ListReplicationsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReplicationsRequest.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 ListReplicationsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListReplicationsRequest} message ListReplicationsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReplicationsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListReplicationsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListReplicationsRequest} ListReplicationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReplicationsRequest.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.netapp.v1.ListReplicationsRequest();
+ 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 ListReplicationsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListReplicationsRequest} ListReplicationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReplicationsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListReplicationsRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListReplicationsRequest.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 ListReplicationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListReplicationsRequest} ListReplicationsRequest
+ */
+ ListReplicationsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListReplicationsRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListReplicationsRequest();
+ 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 ListReplicationsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ListReplicationsRequest} message ListReplicationsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListReplicationsRequest.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 ListReplicationsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListReplicationsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListReplicationsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListReplicationsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListReplicationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListReplicationsRequest";
+ };
+
+ return ListReplicationsRequest;
+ })();
+
+ v1.ListReplicationsResponse = (function() {
+
+ /**
+ * Properties of a ListReplicationsResponse.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListReplicationsResponse
+ * @property {Array.|null} [replications] ListReplicationsResponse replications
+ * @property {string|null} [nextPageToken] ListReplicationsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListReplicationsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListReplicationsResponse.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListReplicationsResponse.
+ * @implements IListReplicationsResponse
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListReplicationsResponse=} [properties] Properties to set
+ */
+ function ListReplicationsResponse(properties) {
+ this.replications = [];
+ 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]];
+ }
+
+ /**
+ * ListReplicationsResponse replications.
+ * @member {Array.} replications
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @instance
+ */
+ ListReplicationsResponse.prototype.replications = $util.emptyArray;
+
+ /**
+ * ListReplicationsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @instance
+ */
+ ListReplicationsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListReplicationsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @instance
+ */
+ ListReplicationsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListReplicationsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListReplicationsResponse=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListReplicationsResponse} ListReplicationsResponse instance
+ */
+ ListReplicationsResponse.create = function create(properties) {
+ return new ListReplicationsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListReplicationsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListReplicationsResponse} message ListReplicationsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReplicationsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.replications != null && message.replications.length)
+ for (var i = 0; i < message.replications.length; ++i)
+ $root.google.cloud.netapp.v1.Replication.encode(message.replications[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 ListReplicationsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListReplicationsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListReplicationsResponse} message ListReplicationsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListReplicationsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListReplicationsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListReplicationsResponse} ListReplicationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReplicationsResponse.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.netapp.v1.ListReplicationsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.replications && message.replications.length))
+ message.replications = [];
+ message.replications.push($root.google.cloud.netapp.v1.Replication.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 ListReplicationsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListReplicationsResponse} ListReplicationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListReplicationsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListReplicationsResponse message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListReplicationsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.replications != null && message.hasOwnProperty("replications")) {
+ if (!Array.isArray(message.replications))
+ return "replications: array expected";
+ for (var i = 0; i < message.replications.length; ++i) {
+ var error = $root.google.cloud.netapp.v1.Replication.verify(message.replications[i]);
+ if (error)
+ return "replications." + 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 ListReplicationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListReplicationsResponse} ListReplicationsResponse
+ */
+ ListReplicationsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListReplicationsResponse)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListReplicationsResponse();
+ if (object.replications) {
+ if (!Array.isArray(object.replications))
+ throw TypeError(".google.cloud.netapp.v1.ListReplicationsResponse.replications: array expected");
+ message.replications = [];
+ for (var i = 0; i < object.replications.length; ++i) {
+ if (typeof object.replications[i] !== "object")
+ throw TypeError(".google.cloud.netapp.v1.ListReplicationsResponse.replications: object expected");
+ message.replications[i] = $root.google.cloud.netapp.v1.Replication.fromObject(object.replications[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.netapp.v1.ListReplicationsResponse.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 ListReplicationsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.ListReplicationsResponse} message ListReplicationsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListReplicationsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.replications = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.replications && message.replications.length) {
+ object.replications = [];
+ for (var j = 0; j < message.replications.length; ++j)
+ object.replications[j] = $root.google.cloud.netapp.v1.Replication.toObject(message.replications[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 ListReplicationsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListReplicationsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListReplicationsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListReplicationsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListReplicationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListReplicationsResponse";
+ };
+
+ return ListReplicationsResponse;
+ })();
+
+ v1.GetReplicationRequest = (function() {
+
+ /**
+ * Properties of a GetReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IGetReplicationRequest
+ * @property {string|null} [name] GetReplicationRequest name
+ */
+
+ /**
+ * Constructs a new GetReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a GetReplicationRequest.
+ * @implements IGetReplicationRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IGetReplicationRequest=} [properties] Properties to set
+ */
+ function GetReplicationRequest(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]];
+ }
+
+ /**
+ * GetReplicationRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @instance
+ */
+ GetReplicationRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetReplicationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetReplicationRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.GetReplicationRequest} GetReplicationRequest instance
+ */
+ GetReplicationRequest.create = function create(properties) {
+ return new GetReplicationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetReplicationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetReplicationRequest} message GetReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetReplicationRequest.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 GetReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetReplicationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetReplicationRequest} message GetReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetReplicationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.GetReplicationRequest} GetReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetReplicationRequest.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.netapp.v1.GetReplicationRequest();
+ 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 GetReplicationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.GetReplicationRequest} GetReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetReplicationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetReplicationRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetReplicationRequest.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 GetReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.GetReplicationRequest} GetReplicationRequest
+ */
+ GetReplicationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.GetReplicationRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.GetReplicationRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetReplicationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.GetReplicationRequest} message GetReplicationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetReplicationRequest.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 GetReplicationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetReplicationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetReplicationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.GetReplicationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.GetReplicationRequest";
+ };
+
+ return GetReplicationRequest;
+ })();
+
+ v1.DestinationVolumeParameters = (function() {
+
+ /**
+ * Properties of a DestinationVolumeParameters.
+ * @memberof google.cloud.netapp.v1
+ * @interface IDestinationVolumeParameters
+ * @property {string|null} [storagePool] DestinationVolumeParameters storagePool
+ * @property {string|null} [volumeId] DestinationVolumeParameters volumeId
+ * @property {string|null} [shareName] DestinationVolumeParameters shareName
+ * @property {string|null} [description] DestinationVolumeParameters description
+ */
+
+ /**
+ * Constructs a new DestinationVolumeParameters.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a DestinationVolumeParameters.
+ * @implements IDestinationVolumeParameters
+ * @constructor
+ * @param {google.cloud.netapp.v1.IDestinationVolumeParameters=} [properties] Properties to set
+ */
+ function DestinationVolumeParameters(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]];
+ }
+
+ /**
+ * DestinationVolumeParameters storagePool.
+ * @member {string} storagePool
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @instance
+ */
+ DestinationVolumeParameters.prototype.storagePool = "";
+
+ /**
+ * DestinationVolumeParameters volumeId.
+ * @member {string} volumeId
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @instance
+ */
+ DestinationVolumeParameters.prototype.volumeId = "";
+
+ /**
+ * DestinationVolumeParameters shareName.
+ * @member {string} shareName
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @instance
+ */
+ DestinationVolumeParameters.prototype.shareName = "";
+
+ /**
+ * DestinationVolumeParameters description.
+ * @member {string|null|undefined} description
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @instance
+ */
+ DestinationVolumeParameters.prototype.description = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * DestinationVolumeParameters _description.
+ * @member {"description"|undefined} _description
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @instance
+ */
+ Object.defineProperty(DestinationVolumeParameters.prototype, "_description", {
+ get: $util.oneOfGetter($oneOfFields = ["description"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new DestinationVolumeParameters instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {google.cloud.netapp.v1.IDestinationVolumeParameters=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.DestinationVolumeParameters} DestinationVolumeParameters instance
+ */
+ DestinationVolumeParameters.create = function create(properties) {
+ return new DestinationVolumeParameters(properties);
+ };
+
+ /**
+ * Encodes the specified DestinationVolumeParameters message. Does not implicitly {@link google.cloud.netapp.v1.DestinationVolumeParameters.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {google.cloud.netapp.v1.IDestinationVolumeParameters} message DestinationVolumeParameters message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DestinationVolumeParameters.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.storagePool);
+ if (message.volumeId != null && Object.hasOwnProperty.call(message, "volumeId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.volumeId);
+ if (message.shareName != null && Object.hasOwnProperty.call(message, "shareName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.shareName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.description);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DestinationVolumeParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DestinationVolumeParameters.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {google.cloud.netapp.v1.IDestinationVolumeParameters} message DestinationVolumeParameters message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DestinationVolumeParameters.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DestinationVolumeParameters message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.DestinationVolumeParameters} DestinationVolumeParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DestinationVolumeParameters.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.netapp.v1.DestinationVolumeParameters();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.storagePool = reader.string();
+ break;
+ }
+ case 2: {
+ message.volumeId = reader.string();
+ break;
+ }
+ case 3: {
+ message.shareName = reader.string();
+ break;
+ }
+ case 4: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DestinationVolumeParameters message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.DestinationVolumeParameters} DestinationVolumeParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DestinationVolumeParameters.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DestinationVolumeParameters message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DestinationVolumeParameters.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.storagePool != null && message.hasOwnProperty("storagePool"))
+ if (!$util.isString(message.storagePool))
+ return "storagePool: string expected";
+ if (message.volumeId != null && message.hasOwnProperty("volumeId"))
+ if (!$util.isString(message.volumeId))
+ return "volumeId: string expected";
+ if (message.shareName != null && message.hasOwnProperty("shareName"))
+ if (!$util.isString(message.shareName))
+ return "shareName: string expected";
+ if (message.description != null && message.hasOwnProperty("description")) {
+ properties._description = 1;
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DestinationVolumeParameters message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.DestinationVolumeParameters} DestinationVolumeParameters
+ */
+ DestinationVolumeParameters.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.DestinationVolumeParameters)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.DestinationVolumeParameters();
+ if (object.storagePool != null)
+ message.storagePool = String(object.storagePool);
+ if (object.volumeId != null)
+ message.volumeId = String(object.volumeId);
+ if (object.shareName != null)
+ message.shareName = String(object.shareName);
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DestinationVolumeParameters message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {google.cloud.netapp.v1.DestinationVolumeParameters} message DestinationVolumeParameters
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DestinationVolumeParameters.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.storagePool = "";
+ object.volumeId = "";
+ object.shareName = "";
+ }
+ if (message.storagePool != null && message.hasOwnProperty("storagePool"))
+ object.storagePool = message.storagePool;
+ if (message.volumeId != null && message.hasOwnProperty("volumeId"))
+ object.volumeId = message.volumeId;
+ if (message.shareName != null && message.hasOwnProperty("shareName"))
+ object.shareName = message.shareName;
+ if (message.description != null && message.hasOwnProperty("description")) {
+ object.description = message.description;
+ if (options.oneofs)
+ object._description = "description";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DestinationVolumeParameters to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DestinationVolumeParameters.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DestinationVolumeParameters
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.DestinationVolumeParameters
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DestinationVolumeParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.DestinationVolumeParameters";
+ };
+
+ return DestinationVolumeParameters;
+ })();
+
+ v1.CreateReplicationRequest = (function() {
+
+ /**
+ * Properties of a CreateReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface ICreateReplicationRequest
+ * @property {string|null} [parent] CreateReplicationRequest parent
+ * @property {google.cloud.netapp.v1.IReplication|null} [replication] CreateReplicationRequest replication
+ * @property {string|null} [replicationId] CreateReplicationRequest replicationId
+ */
+
+ /**
+ * Constructs a new CreateReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a CreateReplicationRequest.
+ * @implements ICreateReplicationRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.ICreateReplicationRequest=} [properties] Properties to set
+ */
+ function CreateReplicationRequest(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]];
+ }
+
+ /**
+ * CreateReplicationRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @instance
+ */
+ CreateReplicationRequest.prototype.parent = "";
+
+ /**
+ * CreateReplicationRequest replication.
+ * @member {google.cloud.netapp.v1.IReplication|null|undefined} replication
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @instance
+ */
+ CreateReplicationRequest.prototype.replication = null;
+
+ /**
+ * CreateReplicationRequest replicationId.
+ * @member {string} replicationId
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @instance
+ */
+ CreateReplicationRequest.prototype.replicationId = "";
+
+ /**
+ * Creates a new CreateReplicationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateReplicationRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.CreateReplicationRequest} CreateReplicationRequest instance
+ */
+ CreateReplicationRequest.create = function create(properties) {
+ return new CreateReplicationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateReplicationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateReplicationRequest} message CreateReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateReplicationRequest.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.replication != null && Object.hasOwnProperty.call(message, "replication"))
+ $root.google.cloud.netapp.v1.Replication.encode(message.replication, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.replicationId != null && Object.hasOwnProperty.call(message, "replicationId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.replicationId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateReplicationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateReplicationRequest} message CreateReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateReplicationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.CreateReplicationRequest} CreateReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateReplicationRequest.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.netapp.v1.CreateReplicationRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.replication = $root.google.cloud.netapp.v1.Replication.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.replicationId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateReplicationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.CreateReplicationRequest} CreateReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateReplicationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateReplicationRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateReplicationRequest.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.replication != null && message.hasOwnProperty("replication")) {
+ var error = $root.google.cloud.netapp.v1.Replication.verify(message.replication);
+ if (error)
+ return "replication." + error;
+ }
+ if (message.replicationId != null && message.hasOwnProperty("replicationId"))
+ if (!$util.isString(message.replicationId))
+ return "replicationId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.CreateReplicationRequest} CreateReplicationRequest
+ */
+ CreateReplicationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.CreateReplicationRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.CreateReplicationRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.replication != null) {
+ if (typeof object.replication !== "object")
+ throw TypeError(".google.cloud.netapp.v1.CreateReplicationRequest.replication: object expected");
+ message.replication = $root.google.cloud.netapp.v1.Replication.fromObject(object.replication);
+ }
+ if (object.replicationId != null)
+ message.replicationId = String(object.replicationId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateReplicationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.CreateReplicationRequest} message CreateReplicationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateReplicationRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.replication = null;
+ object.replicationId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.replication != null && message.hasOwnProperty("replication"))
+ object.replication = $root.google.cloud.netapp.v1.Replication.toObject(message.replication, options);
+ if (message.replicationId != null && message.hasOwnProperty("replicationId"))
+ object.replicationId = message.replicationId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateReplicationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateReplicationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateReplicationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.CreateReplicationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.CreateReplicationRequest";
+ };
+
+ return CreateReplicationRequest;
+ })();
+
+ v1.DeleteReplicationRequest = (function() {
+
+ /**
+ * Properties of a DeleteReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IDeleteReplicationRequest
+ * @property {string|null} [name] DeleteReplicationRequest name
+ */
+
+ /**
+ * Constructs a new DeleteReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a DeleteReplicationRequest.
+ * @implements IDeleteReplicationRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IDeleteReplicationRequest=} [properties] Properties to set
+ */
+ function DeleteReplicationRequest(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]];
+ }
+
+ /**
+ * DeleteReplicationRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @instance
+ */
+ DeleteReplicationRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteReplicationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteReplicationRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.DeleteReplicationRequest} DeleteReplicationRequest instance
+ */
+ DeleteReplicationRequest.create = function create(properties) {
+ return new DeleteReplicationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteReplicationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteReplicationRequest} message DeleteReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteReplicationRequest.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 DeleteReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteReplicationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteReplicationRequest} message DeleteReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteReplicationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.DeleteReplicationRequest} DeleteReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteReplicationRequest.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.netapp.v1.DeleteReplicationRequest();
+ 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 DeleteReplicationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.DeleteReplicationRequest} DeleteReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteReplicationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteReplicationRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteReplicationRequest.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 DeleteReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.DeleteReplicationRequest} DeleteReplicationRequest
+ */
+ DeleteReplicationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.DeleteReplicationRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.DeleteReplicationRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteReplicationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.DeleteReplicationRequest} message DeleteReplicationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteReplicationRequest.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 DeleteReplicationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteReplicationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteReplicationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.DeleteReplicationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteReplicationRequest";
+ };
+
+ return DeleteReplicationRequest;
+ })();
+
+ v1.UpdateReplicationRequest = (function() {
+
+ /**
+ * Properties of an UpdateReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IUpdateReplicationRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateReplicationRequest updateMask
+ * @property {google.cloud.netapp.v1.IReplication|null} [replication] UpdateReplicationRequest replication
+ */
+
+ /**
+ * Constructs a new UpdateReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents an UpdateReplicationRequest.
+ * @implements IUpdateReplicationRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IUpdateReplicationRequest=} [properties] Properties to set
+ */
+ function UpdateReplicationRequest(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]];
+ }
+
+ /**
+ * UpdateReplicationRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @instance
+ */
+ UpdateReplicationRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateReplicationRequest replication.
+ * @member {google.cloud.netapp.v1.IReplication|null|undefined} replication
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @instance
+ */
+ UpdateReplicationRequest.prototype.replication = null;
+
+ /**
+ * Creates a new UpdateReplicationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateReplicationRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.UpdateReplicationRequest} UpdateReplicationRequest instance
+ */
+ UpdateReplicationRequest.create = function create(properties) {
+ return new UpdateReplicationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateReplicationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateReplicationRequest} message UpdateReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateReplicationRequest.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.replication != null && Object.hasOwnProperty.call(message, "replication"))
+ $root.google.cloud.netapp.v1.Replication.encode(message.replication, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateReplicationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateReplicationRequest} message UpdateReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateReplicationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.UpdateReplicationRequest} UpdateReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateReplicationRequest.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.netapp.v1.UpdateReplicationRequest();
+ 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.replication = $root.google.cloud.netapp.v1.Replication.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateReplicationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.UpdateReplicationRequest} UpdateReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateReplicationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateReplicationRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateReplicationRequest.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.replication != null && message.hasOwnProperty("replication")) {
+ var error = $root.google.cloud.netapp.v1.Replication.verify(message.replication);
+ if (error)
+ return "replication." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.UpdateReplicationRequest} UpdateReplicationRequest
+ */
+ UpdateReplicationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.UpdateReplicationRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.UpdateReplicationRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateReplicationRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.replication != null) {
+ if (typeof object.replication !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateReplicationRequest.replication: object expected");
+ message.replication = $root.google.cloud.netapp.v1.Replication.fromObject(object.replication);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateReplicationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.UpdateReplicationRequest} message UpdateReplicationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateReplicationRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.replication = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.replication != null && message.hasOwnProperty("replication"))
+ object.replication = $root.google.cloud.netapp.v1.Replication.toObject(message.replication, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateReplicationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateReplicationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateReplicationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.UpdateReplicationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateReplicationRequest";
+ };
+
+ return UpdateReplicationRequest;
+ })();
+
+ v1.StopReplicationRequest = (function() {
+
+ /**
+ * Properties of a StopReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IStopReplicationRequest
+ * @property {string|null} [name] StopReplicationRequest name
+ * @property {boolean|null} [force] StopReplicationRequest force
+ */
+
+ /**
+ * Constructs a new StopReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a StopReplicationRequest.
+ * @implements IStopReplicationRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IStopReplicationRequest=} [properties] Properties to set
+ */
+ function StopReplicationRequest(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]];
+ }
+
+ /**
+ * StopReplicationRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @instance
+ */
+ StopReplicationRequest.prototype.name = "";
+
+ /**
+ * StopReplicationRequest force.
+ * @member {boolean} force
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @instance
+ */
+ StopReplicationRequest.prototype.force = false;
+
+ /**
+ * Creates a new StopReplicationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IStopReplicationRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.StopReplicationRequest} StopReplicationRequest instance
+ */
+ StopReplicationRequest.create = function create(properties) {
+ return new StopReplicationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified StopReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.StopReplicationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StopReplicationRequest.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 StopReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.StopReplicationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IStopReplicationRequest} message StopReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StopReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StopReplicationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.StopReplicationRequest} StopReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StopReplicationRequest.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.netapp.v1.StopReplicationRequest();
+ 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 StopReplicationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.StopReplicationRequest} StopReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StopReplicationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StopReplicationRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StopReplicationRequest.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 StopReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.StopReplicationRequest} StopReplicationRequest
+ */
+ StopReplicationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.StopReplicationRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.StopReplicationRequest();
+ 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 StopReplicationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.StopReplicationRequest} message StopReplicationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StopReplicationRequest.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 StopReplicationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StopReplicationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for StopReplicationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.StopReplicationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ StopReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.StopReplicationRequest";
+ };
+
+ return StopReplicationRequest;
+ })();
+
+ v1.ResumeReplicationRequest = (function() {
+
+ /**
+ * Properties of a ResumeReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IResumeReplicationRequest
+ * @property {string|null} [name] ResumeReplicationRequest name
+ */
+
+ /**
+ * Constructs a new ResumeReplicationRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ResumeReplicationRequest.
+ * @implements IResumeReplicationRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IResumeReplicationRequest=} [properties] Properties to set
+ */
+ function ResumeReplicationRequest(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]];
+ }
+
+ /**
+ * ResumeReplicationRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @instance
+ */
+ ResumeReplicationRequest.prototype.name = "";
+
+ /**
+ * Creates a new ResumeReplicationRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IResumeReplicationRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ResumeReplicationRequest} ResumeReplicationRequest instance
+ */
+ ResumeReplicationRequest.create = function create(properties) {
+ return new ResumeReplicationRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ResumeReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.ResumeReplicationRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IResumeReplicationRequest} message ResumeReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResumeReplicationRequest.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 ResumeReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ResumeReplicationRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IResumeReplicationRequest} message ResumeReplicationRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResumeReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResumeReplicationRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ResumeReplicationRequest} ResumeReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResumeReplicationRequest.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.netapp.v1.ResumeReplicationRequest();
+ 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 ResumeReplicationRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ResumeReplicationRequest} ResumeReplicationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResumeReplicationRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResumeReplicationRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResumeReplicationRequest.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 ResumeReplicationRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ResumeReplicationRequest} ResumeReplicationRequest
+ */
+ ResumeReplicationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ResumeReplicationRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ResumeReplicationRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResumeReplicationRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ResumeReplicationRequest} message ResumeReplicationRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResumeReplicationRequest.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 ResumeReplicationRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResumeReplicationRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResumeReplicationRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ResumeReplicationRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResumeReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ResumeReplicationRequest";
+ };
+
+ return ResumeReplicationRequest;
+ })();
+
+ v1.ReverseReplicationDirectionRequest = (function() {
+
+ /**
+ * Properties of a ReverseReplicationDirectionRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IReverseReplicationDirectionRequest
+ * @property {string|null} [name] ReverseReplicationDirectionRequest name
+ */
+
+ /**
+ * Constructs a new ReverseReplicationDirectionRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ReverseReplicationDirectionRequest.
+ * @implements IReverseReplicationDirectionRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IReverseReplicationDirectionRequest=} [properties] Properties to set
+ */
+ function ReverseReplicationDirectionRequest(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]];
+ }
+
+ /**
+ * ReverseReplicationDirectionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @instance
+ */
+ ReverseReplicationDirectionRequest.prototype.name = "";
+
+ /**
+ * Creates a new ReverseReplicationDirectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IReverseReplicationDirectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ReverseReplicationDirectionRequest} ReverseReplicationDirectionRequest instance
+ */
+ ReverseReplicationDirectionRequest.create = function create(properties) {
+ return new ReverseReplicationDirectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ReverseReplicationDirectionRequest message. Does not implicitly {@link google.cloud.netapp.v1.ReverseReplicationDirectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IReverseReplicationDirectionRequest} message ReverseReplicationDirectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReverseReplicationDirectionRequest.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 ReverseReplicationDirectionRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ReverseReplicationDirectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IReverseReplicationDirectionRequest} message ReverseReplicationDirectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReverseReplicationDirectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReverseReplicationDirectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ReverseReplicationDirectionRequest} ReverseReplicationDirectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReverseReplicationDirectionRequest.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.netapp.v1.ReverseReplicationDirectionRequest();
+ 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 ReverseReplicationDirectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ReverseReplicationDirectionRequest} ReverseReplicationDirectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReverseReplicationDirectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReverseReplicationDirectionRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReverseReplicationDirectionRequest.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 ReverseReplicationDirectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ReverseReplicationDirectionRequest} ReverseReplicationDirectionRequest
+ */
+ ReverseReplicationDirectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ReverseReplicationDirectionRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ReverseReplicationDirectionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ReverseReplicationDirectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ReverseReplicationDirectionRequest} message ReverseReplicationDirectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReverseReplicationDirectionRequest.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 ReverseReplicationDirectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReverseReplicationDirectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ReverseReplicationDirectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ReverseReplicationDirectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReverseReplicationDirectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ReverseReplicationDirectionRequest";
+ };
+
+ return ReverseReplicationDirectionRequest;
+ })();
+
+ v1.ListSnapshotsRequest = (function() {
+
+ /**
+ * Properties of a ListSnapshotsRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListSnapshotsRequest
+ * @property {string|null} [parent] ListSnapshotsRequest parent
+ * @property {number|null} [pageSize] ListSnapshotsRequest pageSize
+ * @property {string|null} [pageToken] ListSnapshotsRequest pageToken
+ * @property {string|null} [orderBy] ListSnapshotsRequest orderBy
+ * @property {string|null} [filter] ListSnapshotsRequest filter
+ */
+
+ /**
+ * Constructs a new ListSnapshotsRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListSnapshotsRequest.
+ * @implements IListSnapshotsRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListSnapshotsRequest=} [properties] Properties to set
+ */
+ function ListSnapshotsRequest(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]];
+ }
+
+ /**
+ * ListSnapshotsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @instance
+ */
+ ListSnapshotsRequest.prototype.parent = "";
+
+ /**
+ * ListSnapshotsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @instance
+ */
+ ListSnapshotsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListSnapshotsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @instance
+ */
+ ListSnapshotsRequest.prototype.pageToken = "";
+
+ /**
+ * ListSnapshotsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @instance
+ */
+ ListSnapshotsRequest.prototype.orderBy = "";
+
+ /**
+ * ListSnapshotsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @instance
+ */
+ ListSnapshotsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListSnapshotsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListSnapshotsRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest instance
+ */
+ ListSnapshotsRequest.create = function create(properties) {
+ return new ListSnapshotsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSnapshotsRequest.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 ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSnapshotsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSnapshotsRequest.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.netapp.v1.ListSnapshotsRequest();
+ 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 ListSnapshotsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSnapshotsRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSnapshotsRequest.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 ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest
+ */
+ ListSnapshotsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListSnapshotsRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListSnapshotsRequest();
+ 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 ListSnapshotsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ListSnapshotsRequest} message ListSnapshotsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSnapshotsRequest.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 ListSnapshotsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSnapshotsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSnapshotsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListSnapshotsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListSnapshotsRequest";
+ };
+
+ return ListSnapshotsRequest;
+ })();
+
+ v1.ListSnapshotsResponse = (function() {
+
+ /**
+ * Properties of a ListSnapshotsResponse.
+ * @memberof google.cloud.netapp.v1
+ * @interface IListSnapshotsResponse
+ * @property {Array.|null} [snapshots] ListSnapshotsResponse snapshots
+ * @property {string|null} [nextPageToken] ListSnapshotsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListSnapshotsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListSnapshotsResponse.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a ListSnapshotsResponse.
+ * @implements IListSnapshotsResponse
+ * @constructor
+ * @param {google.cloud.netapp.v1.IListSnapshotsResponse=} [properties] Properties to set
+ */
+ function ListSnapshotsResponse(properties) {
+ this.snapshots = [];
+ 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]];
+ }
+
+ /**
+ * ListSnapshotsResponse snapshots.
+ * @member {Array.} snapshots
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @instance
+ */
+ ListSnapshotsResponse.prototype.snapshots = $util.emptyArray;
+
+ /**
+ * ListSnapshotsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @instance
+ */
+ ListSnapshotsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListSnapshotsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @instance
+ */
+ ListSnapshotsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListSnapshotsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListSnapshotsResponse=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse instance
+ */
+ ListSnapshotsResponse.create = function create(properties) {
+ return new ListSnapshotsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListSnapshotsResponse} message ListSnapshotsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSnapshotsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.snapshots != null && message.snapshots.length)
+ for (var i = 0; i < message.snapshots.length; ++i)
+ $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshots[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 ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.IListSnapshotsResponse} message ListSnapshotsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSnapshotsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSnapshotsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSnapshotsResponse.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.netapp.v1.ListSnapshotsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.snapshots && message.snapshots.length))
+ message.snapshots = [];
+ message.snapshots.push($root.google.cloud.netapp.v1.Snapshot.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 ListSnapshotsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSnapshotsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSnapshotsResponse message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSnapshotsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.snapshots != null && message.hasOwnProperty("snapshots")) {
+ if (!Array.isArray(message.snapshots))
+ return "snapshots: array expected";
+ for (var i = 0; i < message.snapshots.length; ++i) {
+ var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshots[i]);
+ if (error)
+ return "snapshots." + 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 ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse
+ */
+ ListSnapshotsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.ListSnapshotsResponse)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.ListSnapshotsResponse();
+ if (object.snapshots) {
+ if (!Array.isArray(object.snapshots))
+ throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.snapshots: array expected");
+ message.snapshots = [];
+ for (var i = 0; i < object.snapshots.length; ++i) {
+ if (typeof object.snapshots[i] !== "object")
+ throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.snapshots: object expected");
+ message.snapshots[i] = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshots[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.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 ListSnapshotsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {google.cloud.netapp.v1.ListSnapshotsResponse} message ListSnapshotsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSnapshotsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.snapshots = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.snapshots && message.snapshots.length) {
+ object.snapshots = [];
+ for (var j = 0; j < message.snapshots.length; ++j)
+ object.snapshots[j] = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshots[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 ListSnapshotsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSnapshotsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSnapshotsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.ListSnapshotsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSnapshotsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.ListSnapshotsResponse";
+ };
+
+ return ListSnapshotsResponse;
+ })();
+
+ v1.GetSnapshotRequest = (function() {
+
+ /**
+ * Properties of a GetSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IGetSnapshotRequest
+ * @property {string|null} [name] GetSnapshotRequest name
+ */
+
+ /**
+ * Constructs a new GetSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a GetSnapshotRequest.
+ * @implements IGetSnapshotRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IGetSnapshotRequest=} [properties] Properties to set
+ */
+ function GetSnapshotRequest(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]];
+ }
+
+ /**
+ * GetSnapshotRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @instance
+ */
+ GetSnapshotRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetSnapshotRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetSnapshotRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest instance
+ */
+ GetSnapshotRequest.create = function create(properties) {
+ return new GetSnapshotRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetSnapshotRequest} message GetSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetSnapshotRequest.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 GetSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IGetSnapshotRequest} message GetSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetSnapshotRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetSnapshotRequest.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.netapp.v1.GetSnapshotRequest();
+ 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 GetSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetSnapshotRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetSnapshotRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetSnapshotRequest.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 GetSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest
+ */
+ GetSnapshotRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.GetSnapshotRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.GetSnapshotRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.GetSnapshotRequest} message GetSnapshotRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetSnapshotRequest.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 GetSnapshotRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetSnapshotRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetSnapshotRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.GetSnapshotRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.GetSnapshotRequest";
+ };
+
+ return GetSnapshotRequest;
+ })();
+
+ v1.CreateSnapshotRequest = (function() {
+
+ /**
+ * Properties of a CreateSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface ICreateSnapshotRequest
+ * @property {string|null} [parent] CreateSnapshotRequest parent
+ * @property {google.cloud.netapp.v1.ISnapshot|null} [snapshot] CreateSnapshotRequest snapshot
+ * @property {string|null} [snapshotId] CreateSnapshotRequest snapshotId
+ */
+
+ /**
+ * Constructs a new CreateSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a CreateSnapshotRequest.
+ * @implements ICreateSnapshotRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.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.netapp.v1.CreateSnapshotRequest
+ * @instance
+ */
+ CreateSnapshotRequest.prototype.parent = "";
+
+ /**
+ * CreateSnapshotRequest snapshot.
+ * @member {google.cloud.netapp.v1.ISnapshot|null|undefined} snapshot
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @instance
+ */
+ CreateSnapshotRequest.prototype.snapshot = null;
+
+ /**
+ * CreateSnapshotRequest snapshotId.
+ * @member {string} snapshotId
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @instance
+ */
+ CreateSnapshotRequest.prototype.snapshotId = "";
+
+ /**
+ * Creates a new CreateSnapshotRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.ICreateSnapshotRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest instance
+ */
+ CreateSnapshotRequest.create = function create(properties) {
+ return new CreateSnapshotRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.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.snapshot != null && Object.hasOwnProperty.call(message, "snapshot"))
+ $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshot, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.snapshotId != null && Object.hasOwnProperty.call(message, "snapshotId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.snapshotId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.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.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.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.netapp.v1.CreateSnapshotRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.snapshot = $root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.snapshotId = reader.string();
+ 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.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.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.netapp.v1.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.snapshot != null && message.hasOwnProperty("snapshot")) {
+ var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshot);
+ if (error)
+ return "snapshot." + error;
+ }
+ if (message.snapshotId != null && message.hasOwnProperty("snapshotId"))
+ if (!$util.isString(message.snapshotId))
+ return "snapshotId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest
+ */
+ CreateSnapshotRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.CreateSnapshotRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.CreateSnapshotRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.snapshot != null) {
+ if (typeof object.snapshot !== "object")
+ throw TypeError(".google.cloud.netapp.v1.CreateSnapshotRequest.snapshot: object expected");
+ message.snapshot = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshot);
+ }
+ if (object.snapshotId != null)
+ message.snapshotId = String(object.snapshotId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.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.snapshot = null;
+ object.snapshotId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.snapshot != null && message.hasOwnProperty("snapshot"))
+ object.snapshot = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshot, options);
+ if (message.snapshotId != null && message.hasOwnProperty("snapshotId"))
+ object.snapshotId = message.snapshotId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateSnapshotRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateSnapshotRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateSnapshotRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.CreateSnapshotRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.CreateSnapshotRequest";
+ };
+
+ return CreateSnapshotRequest;
+ })();
+
+ v1.DeleteSnapshotRequest = (function() {
+
+ /**
+ * Properties of a DeleteSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IDeleteSnapshotRequest
+ * @property {string|null} [name] DeleteSnapshotRequest name
+ */
+
+ /**
+ * Constructs a new DeleteSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a DeleteSnapshotRequest.
+ * @implements IDeleteSnapshotRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest=} [properties] Properties to set
+ */
+ function DeleteSnapshotRequest(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]];
+ }
+
+ /**
+ * DeleteSnapshotRequest name.
+ * @member {string} name
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @instance
+ */
+ DeleteSnapshotRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteSnapshotRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest instance
+ */
+ DeleteSnapshotRequest.create = function create(properties) {
+ return new DeleteSnapshotRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} message DeleteSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteSnapshotRequest.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 DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} message DeleteSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteSnapshotRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteSnapshotRequest.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.netapp.v1.DeleteSnapshotRequest();
+ 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 DeleteSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteSnapshotRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteSnapshotRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteSnapshotRequest.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 DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest
+ */
+ DeleteSnapshotRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.DeleteSnapshotRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.DeleteSnapshotRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.DeleteSnapshotRequest} message DeleteSnapshotRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteSnapshotRequest.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 DeleteSnapshotRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteSnapshotRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteSnapshotRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteSnapshotRequest";
+ };
+
+ return DeleteSnapshotRequest;
+ })();
+
+ v1.UpdateSnapshotRequest = (function() {
+
+ /**
+ * Properties of an UpdateSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @interface IUpdateSnapshotRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSnapshotRequest updateMask
+ * @property {google.cloud.netapp.v1.ISnapshot|null} [snapshot] UpdateSnapshotRequest snapshot
+ */
+
+ /**
+ * Constructs a new UpdateSnapshotRequest.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents an UpdateSnapshotRequest.
+ * @implements IUpdateSnapshotRequest
+ * @constructor
+ * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest=} [properties] Properties to set
+ */
+ function UpdateSnapshotRequest(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]];
+ }
+
+ /**
+ * UpdateSnapshotRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @instance
+ */
+ UpdateSnapshotRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateSnapshotRequest snapshot.
+ * @member {google.cloud.netapp.v1.ISnapshot|null|undefined} snapshot
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @instance
+ */
+ UpdateSnapshotRequest.prototype.snapshot = null;
+
+ /**
+ * Creates a new UpdateSnapshotRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest=} [properties] Properties to set
+ * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest instance
+ */
+ UpdateSnapshotRequest.create = function create(properties) {
+ return new UpdateSnapshotRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} message UpdateSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateSnapshotRequest.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.snapshot != null && Object.hasOwnProperty.call(message, "snapshot"))
+ $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshot, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} message UpdateSnapshotRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateSnapshotRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateSnapshotRequest.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.netapp.v1.UpdateSnapshotRequest();
+ 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.snapshot = $root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateSnapshotRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateSnapshotRequest message.
+ * @function verify
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateSnapshotRequest.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.snapshot != null && message.hasOwnProperty("snapshot")) {
+ var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshot);
+ if (error)
+ return "snapshot." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest
+ */
+ UpdateSnapshotRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.netapp.v1.UpdateSnapshotRequest)
+ return object;
+ var message = new $root.google.cloud.netapp.v1.UpdateSnapshotRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateSnapshotRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.snapshot != null) {
+ if (typeof object.snapshot !== "object")
+ throw TypeError(".google.cloud.netapp.v1.UpdateSnapshotRequest.snapshot: object expected");
+ message.snapshot = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshot);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {google.cloud.netapp.v1.UpdateSnapshotRequest} message UpdateSnapshotRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateSnapshotRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.snapshot = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.snapshot != null && message.hasOwnProperty("snapshot"))
+ object.snapshot = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshot, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateSnapshotRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateSnapshotRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateSnapshotRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateSnapshotRequest";
+ };
+
+ return UpdateSnapshotRequest;
+ })();
+
+ v1.Snapshot = (function() {
+
+ /**
+ * Properties of a Snapshot.
+ * @memberof google.cloud.netapp.v1
+ * @interface ISnapshot
+ * @property {string|null} [name] Snapshot name
+ * @property {google.cloud.netapp.v1.Snapshot.State|null} [state] Snapshot state
+ * @property {string|null} [stateDetails] Snapshot stateDetails
+ * @property {string|null} [description] Snapshot description
+ * @property {number|null} [usedBytes] Snapshot usedBytes
+ * @property {google.protobuf.ITimestamp|null} [createTime] Snapshot createTime
+ * @property {Object.|null} [labels] Snapshot labels
+ */
+
+ /**
+ * Constructs a new Snapshot.
+ * @memberof google.cloud.netapp.v1
+ * @classdesc Represents a Snapshot.
+ * @implements ISnapshot
+ * @constructor
+ * @param {google.cloud.netapp.v1.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.netapp.v1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.name = "";
+
+ /**
+ * Snapshot state.
+ * @member {google.cloud.netapp.v1.Snapshot.State} state
+ * @memberof google.cloud.netapp.v1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.state = 0;
+
+ /**
+ * Snapshot stateDetails.
+ * @member {string} stateDetails
+ * @memberof google.cloud.netapp.v1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.stateDetails = "";
+
+ /**
+ * Snapshot description.
+ * @member {string} description
+ * @memberof google.cloud.netapp.v1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.description = "";
+
+ /**
+ * Snapshot usedBytes.
+ * @member {number} usedBytes
+ * @memberof google.cloud.netapp.v1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.usedBytes = 0;
+
+ /**
+ * Snapshot createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.netapp.v1.Snapshot
+ * @instance
+ */
+ Snapshot.prototype.createTime = null;
+
+ /**
+ * Snapshot labels.
+ * @member {Object.